From 90d9020e5190e8077f6fe2aa23ff3b567f8480f1 Mon Sep 17 00:00:00 2001 From: Cedric Vivier Date: Wed, 26 Oct 2011 17:02:08 +0800 Subject: [PATCH] Bug 583041 - Style Editor integration; part 3; 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 | 4 + browser/devtools/styleeditor/Makefile.in | 54 + browser/devtools/styleeditor/SplitView.jsm | 488 ++++++++ browser/devtools/styleeditor/StyleEditor.jsm | 1093 +++++++++++++++++ .../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 + .../gnomestripe/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../themes/gnomestripe/devtools/splitview.css | 137 +++ .../gnomestripe/devtools/styleeditor.css | 177 +++ browser/themes/gnomestripe/jar.mn | 4 +- .../themes/pinstripe/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../themes/pinstripe/devtools/splitview.css | 137 +++ .../themes/pinstripe/devtools/styleeditor.css | 177 +++ browser/themes/pinstripe/jar.mn | 4 +- .../themes/winstripe/devtools/eye-toggle.png | Bin 0 -> 784 bytes .../themes/winstripe/devtools/splitview.css | 137 +++ .../themes/winstripe/devtools/styleeditor.css | 177 +++ browser/themes/winstripe/jar.mn | 8 +- 31 files changed, 3726 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/devtools/eye-toggle.png create mode 100644 browser/themes/gnomestripe/devtools/splitview.css create mode 100644 browser/themes/gnomestripe/devtools/styleeditor.css create mode 100644 browser/themes/pinstripe/devtools/eye-toggle.png create mode 100644 browser/themes/pinstripe/devtools/splitview.css create mode 100644 browser/themes/pinstripe/devtools/styleeditor.css create mode 100644 browser/themes/winstripe/devtools/eye-toggle.png create mode 100644 browser/themes/winstripe/devtools/splitview.css create mode 100644 browser/themes/winstripe/devtools/styleeditor.css diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index d40e53377fb..98097dd2829 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1018,6 +1018,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 72f320b228b..54f382b624a 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"/> +