From 6bf4f0220977d24ef5ff352facef38293fe3171b Mon Sep 17 00:00:00 2001 From: Rob Campbell Date: Thu, 13 May 2010 17:08:34 -0300 Subject: [PATCH] inspector-0.1 --- browser/base/content/browser-menubar.inc | 7 + browser/base/content/browser-sets.inc | 5 +- browser/base/content/browser.css | 7 + browser/base/content/browser.js | 2 + browser/base/content/browser.xul | 32 + browser/base/content/inspector.js | 758 ++++++++++++++++++ browser/base/content/test/Makefile.in | 3 + .../test/browser_inspector_highlighter.js | 123 +++ .../test/browser_inspector_initialization.js | 87 ++ .../test/browser_inspector_treeSelection.js | 114 +++ .../locales/en-US/chrome/browser/browser.dtd | 4 + browser/themes/pinstripe/browser/browser.css | 1 + 12 files changed, 1141 insertions(+), 2 deletions(-) create mode 100644 browser/base/content/inspector.js create mode 100644 browser/base/content/test/browser_inspector_highlighter.js create mode 100644 browser/base/content/test/browser_inspector_initialization.js create mode 100644 browser/base/content/test/browser_inspector_treeSelection.js diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc index 1d19c0c4dde..3096ef23c04 100644 --- a/browser/base/content/browser-menubar.inc +++ b/browser/base/content/browser-menubar.inc @@ -21,6 +21,7 @@ # # Contributor(s): # Ehsan Akhgari +# Rob Campbell # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -598,6 +599,12 @@ accesskey="&addons.accesskey;" command="Tools:Addons"/> + # Shawn Wilsher # Ehsan Akhgari +# Rob Campbell # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -124,6 +125,7 @@ + @@ -205,8 +207,6 @@ # system setting to use emacs emulation, and we should respect it. Focus-Search-Box # is a fundamental keybinding and we are maintaining a XP binding so that it is easy # for people to switch to Linux. -# -# Do *not* tamper with these values without talking to ben@mozilla.org # #ifdef XP_MACOSX @@ -222,6 +222,7 @@ #endif + diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css index 65579e8ad48..0a12ce223fb 100644 --- a/browser/base/content/browser.css +++ b/browser/base/content/browser.css @@ -256,3 +256,10 @@ window[chromehidden~="toolbar"] toolbar:not(.toolbar-primary):not(.chromeclass-m -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image"); margin: 0; } + +/* Inspector / Highlighter */ + +#highlighter-panel { + -moz-appearance: none; + -moz-window-shadow: none; +} diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 646fe9d9850..3d6f214a200 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -51,6 +51,7 @@ # Dietrich Ayala # Gavin Sharp # Justin Dolske +# Rob Campbell # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -128,6 +129,7 @@ let gInitialPages = [ ]; #include browser-fullZoom.js +#include inspector.js #include browser-places.js #include browser-tabPreviews.js diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index feb34e6e21f..7dd4afec4e5 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -33,6 +33,7 @@ # Dão Gottwald # Ehsan Akhgari # Robert Strong +# Rob Campbell # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -218,6 +219,35 @@ +