From 92f0b2bf9c684d63da2549febc25fe8027b3a7c8 Mon Sep 17 00:00:00 2001 From: Cedric Vivier Date: Wed, 26 Oct 2011 17:02:08 +0800 Subject: [PATCH 01/21] Bug 583041 - Style Editor integration, part 1/2; r=rcampbell,dao,l10n --- browser/app/profile/firefox.js | 3 + browser/base/content/browser-appmenu.inc | 5 + browser/base/content/browser-menubar.inc | 6 + browser/base/content/browser-sets.inc | 3 + browser/base/content/browser.js | 38 + browser/devtools/Makefile.in | 1 + browser/devtools/jar.mn | 3 + browser/devtools/styleeditor/Makefile.in | 54 + browser/devtools/styleeditor/SplitView.jsm | 485 +++++++ browser/devtools/styleeditor/StyleEditor.jsm | 1112 +++++++++++++++++ .../styleeditor/StyleEditorChrome.jsm | 488 ++++++++ .../devtools/styleeditor/StyleEditorUtil.jsm | 196 +++ browser/devtools/styleeditor/splitview.css | 96 ++ browser/devtools/styleeditor/styleeditor.css | 43 + browser/devtools/styleeditor/styleeditor.xul | 130 ++ .../locales/en-US/chrome/browser/browser.dtd | 7 + .../chrome/browser/devtools/styleeditor.dtd | 62 + .../browser/devtools/styleeditor.properties | 53 + browser/locales/jar.mn | 2 + .../browser/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../browser/devtools/splitview.css | 137 ++ .../browser/devtools/styleeditor.css | 177 +++ browser/themes/gnomestripe/browser/jar.mn | 4 +- .../pinstripe/browser/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../pinstripe/browser/devtools/splitview.css | 137 ++ .../browser/devtools/styleeditor.css | 177 +++ browser/themes/pinstripe/browser/jar.mn | 4 +- .../winstripe/browser/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../winstripe/browser/devtools/splitview.css | 137 ++ .../browser/devtools/styleeditor.css | 177 +++ browser/themes/winstripe/browser/jar.mn | 8 +- 31 files changed, 3741 insertions(+), 4 deletions(-) create mode 100644 browser/devtools/styleeditor/Makefile.in create mode 100644 browser/devtools/styleeditor/SplitView.jsm create mode 100644 browser/devtools/styleeditor/StyleEditor.jsm create mode 100644 browser/devtools/styleeditor/StyleEditorChrome.jsm create mode 100644 browser/devtools/styleeditor/StyleEditorUtil.jsm create mode 100644 browser/devtools/styleeditor/splitview.css create mode 100644 browser/devtools/styleeditor/styleeditor.css create mode 100644 browser/devtools/styleeditor/styleeditor.xul create mode 100644 browser/locales/en-US/chrome/browser/devtools/styleeditor.dtd create mode 100644 browser/locales/en-US/chrome/browser/devtools/styleeditor.properties create mode 100644 browser/themes/gnomestripe/browser/devtools/eye-toggle.png create mode 100644 browser/themes/gnomestripe/browser/devtools/splitview.css create mode 100644 browser/themes/gnomestripe/browser/devtools/styleeditor.css create mode 100644 browser/themes/pinstripe/browser/devtools/eye-toggle.png create mode 100644 browser/themes/pinstripe/browser/devtools/splitview.css create mode 100644 browser/themes/pinstripe/browser/devtools/styleeditor.css create mode 100644 browser/themes/winstripe/browser/devtools/eye-toggle.png create mode 100644 browser/themes/winstripe/browser/devtools/splitview.css create mode 100644 browser/themes/winstripe/browser/devtools/styleeditor.css diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index e4b30bf3703e..46922b55e85b 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1014,6 +1014,9 @@ pref("devtools.ruleview.enabled", true); // Enable the Scratchpad tool. pref("devtools.scratchpad.enabled", true); +// Enable the Style Editor. +pref("devtools.styleeditor.enabled", true); + // Enable tools for Chrome development. pref("devtools.chrome.enabled", false); diff --git a/browser/base/content/browser-appmenu.inc b/browser/base/content/browser-appmenu.inc index 72f320b228bd..54f382b624aa 100644 --- a/browser/base/content/browser-appmenu.inc +++ b/browser/base/content/browser-appmenu.inc @@ -192,6 +192,11 @@ label="&scratchpad.label;" key="key_scratchpad" command="Tools:Scratchpad"/> +