Bug 912121 - Create shims for popular DevTools themes in add-ons. rs=devtools
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 10 Sep 2015 23:34:42 -0500
changeset 263578 b0a086cc8fa96130f904338f3d5efb149c8b8580
parent 263577 ab023cef6c94e29a01c270bfbab7aa8461b37988
child 263579 8648bb20f9560a3168a02f4955767d1980558333
push id29414
push usercbook@mozilla.com
push dateTue, 22 Sep 2015 10:19:39 +0000
treeherdermozilla-central@f4f27148d24c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdevtools
bugs912121
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 912121 - Create shims for popular DevTools themes in add-ons. rs=devtools For popular themes used by many DevTools add-ons, add shim files which wrap the themes and make them available at their previous location.
devtools/client/moz.build
devtools/client/themes/shims/common.css
devtools/client/themes/shims/jar.mn
devtools/client/themes/shims/moz.build
--- a/devtools/client/moz.build
+++ b/devtools/client/moz.build
@@ -33,16 +33,20 @@ DIRS += [
     'styleeditor',
     'styleinspector',
     'tilt',
     'webaudioeditor',
     'webconsole',
     'webide',
 ]
 
+# Shim old theme paths used by DevTools add-ons
+if CONFIG['MOZ_BUILD_APP'] == 'browser':
+    DIRS += ['themes/shims']
+
 EXTRA_COMPONENTS += [
     'devtools-clhandler.js',
     'devtools-clhandler.manifest',
 ]
 
 JAR_MANIFESTS += ['jar.mn']
 
 DevToolsModules(
new file mode 100644
--- /dev/null
+++ b/devtools/client/themes/shims/common.css
@@ -0,0 +1,10 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+ /**
+  * This file only exists to support add-ons which import this style sheet at a
+  * specific path.
+  */
+
+@import url("chrome://devtools/skin/themes/common.css");
new file mode 100644
--- /dev/null
+++ b/devtools/client/themes/shims/jar.mn
@@ -0,0 +1,6 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+browser.jar:
+    skin/classic/browser/devtools/common.css (common.css)
new file mode 100644
--- /dev/null
+++ b/devtools/client/themes/shims/moz.build
@@ -0,0 +1,8 @@
+# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Shim old theme paths used by DevTools add-ons
+JAR_MANIFESTS += ['jar.mn']