Bug 1041208 - Flatten chrome/{public,src}/ directories. r=mossop
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Sat, 19 Jul 2014 12:43:38 -0700
changeset 217210 76be62e9944c0ff34e9a30258fa48b2c73b8cc32
parent 217209 ea01a75b73b1472cfdfce863d08bb850a3fab436
child 217211 12285ae78c93b17e7b5676c5655061b34ea63445
push idunknown
push userunknown
push dateunknown
reviewersmossop
bugs1041208
milestone34.0a1
Bug 1041208 - Flatten chrome/{public,src}/ directories. r=mossop
chrome/Makefile.in
chrome/RegistryMessageUtils.h
chrome/moz.build
chrome/nsChromeProtocolHandler.cpp
chrome/nsChromeProtocolHandler.h
chrome/nsChromeRegistry.cpp
chrome/nsChromeRegistry.h
chrome/nsChromeRegistryChrome.cpp
chrome/nsChromeRegistryChrome.h
chrome/nsChromeRegistryContent.cpp
chrome/nsChromeRegistryContent.h
chrome/nsIChromeRegistry.idl
chrome/nsIToolkitChromeRegistry.idl
chrome/public/moz.build
chrome/public/nsIChromeRegistry.idl
chrome/public/nsIToolkitChromeRegistry.idl
chrome/src/Makefile.in
chrome/src/RegistryMessageUtils.h
chrome/src/moz.build
chrome/src/nsChromeProtocolHandler.cpp
chrome/src/nsChromeProtocolHandler.h
chrome/src/nsChromeRegistry.cpp
chrome/src/nsChromeRegistry.h
chrome/src/nsChromeRegistryChrome.cpp
chrome/src/nsChromeRegistryChrome.h
chrome/src/nsChromeRegistryContent.cpp
chrome/src/nsChromeRegistryContent.h
dom/ipc/moz.build
xpcom/build/moz.build
xpcom/components/moz.build
rename from chrome/src/Makefile.in
rename to chrome/Makefile.in
rename from chrome/src/RegistryMessageUtils.h
rename to chrome/RegistryMessageUtils.h
--- a/chrome/moz.build
+++ b/chrome/moz.build
@@ -1,8 +1,41 @@
 # -*- 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/.
 
-DIRS += ['public', 'src']
 TEST_DIRS += ['test']
+
+XPIDL_SOURCES += [
+    'nsIChromeRegistry.idl',
+    'nsIToolkitChromeRegistry.idl',
+]
+
+XPIDL_MODULE = 'chrome'
+
+EXPORTS.mozilla.chrome += [
+    'RegistryMessageUtils.h',
+]
+
+UNIFIED_SOURCES += [
+    'nsChromeProtocolHandler.cpp',
+    'nsChromeRegistry.cpp',
+    'nsChromeRegistryChrome.cpp',
+    'nsChromeRegistryContent.cpp',
+]
+
+MSVC_ENABLE_PGO = True
+
+include('/ipc/chromium/chromium-config.mozbuild')
+
+FINAL_LIBRARY = 'xpcom_core'
+
+GENERATED_INCLUDES += [
+    '/xpcom',
+]
+
+LOCAL_INCLUDES += [
+    '/netwerk/base/src',
+    '/netwerk/protocol/res',
+    '/xpcom/components'
+]
rename from chrome/src/nsChromeProtocolHandler.cpp
rename to chrome/nsChromeProtocolHandler.cpp
rename from chrome/src/nsChromeProtocolHandler.h
rename to chrome/nsChromeProtocolHandler.h
rename from chrome/src/nsChromeRegistry.cpp
rename to chrome/nsChromeRegistry.cpp
rename from chrome/src/nsChromeRegistry.h
rename to chrome/nsChromeRegistry.h
rename from chrome/src/nsChromeRegistryChrome.cpp
rename to chrome/nsChromeRegistryChrome.cpp
rename from chrome/src/nsChromeRegistryChrome.h
rename to chrome/nsChromeRegistryChrome.h
rename from chrome/src/nsChromeRegistryContent.cpp
rename to chrome/nsChromeRegistryContent.cpp
rename from chrome/src/nsChromeRegistryContent.h
rename to chrome/nsChromeRegistryContent.h
rename from chrome/public/nsIChromeRegistry.idl
rename to chrome/nsIChromeRegistry.idl
rename from chrome/public/nsIToolkitChromeRegistry.idl
rename to chrome/nsIToolkitChromeRegistry.idl
deleted file mode 100644
--- a/chrome/public/moz.build
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- 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/.
-
-XPIDL_SOURCES += [
-    'nsIChromeRegistry.idl',
-    'nsIToolkitChromeRegistry.idl',
-]
-
-XPIDL_MODULE = 'chrome'
-
deleted file mode 100644
--- a/chrome/src/moz.build
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- 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/.
-
-EXPORTS.mozilla.chrome += [
-    'RegistryMessageUtils.h',
-]
-
-UNIFIED_SOURCES += [
-    'nsChromeProtocolHandler.cpp',
-    'nsChromeRegistry.cpp',
-    'nsChromeRegistryChrome.cpp',
-    'nsChromeRegistryContent.cpp',
-]
-
-MSVC_ENABLE_PGO = True
-
-include('/ipc/chromium/chromium-config.mozbuild')
-
-FINAL_LIBRARY = 'xpcom_core'
-
-GENERATED_INCLUDES += [
-    '/xpcom',
-]
-
-LOCAL_INCLUDES += [
-    '/netwerk/base/src',
-    '/netwerk/protocol/res',
-    '/xpcom/components'
-]
--- a/dom/ipc/moz.build
+++ b/dom/ipc/moz.build
@@ -101,17 +101,17 @@ FAIL_ON_WARNINGS = True
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
 FINAL_LIBRARY = 'xul'
 LOCAL_INCLUDES += [
     '../src/base',
     '../src/geolocation',
     '../src/storage',
-    '/chrome/src',
+    '/chrome',
     '/content/base/src',
     '/content/media/webspeech/synth/ipc',
     '/docshell/base',
     '/dom/base',
     '/dom/bluetooth',
     '/dom/bluetooth/ipc',
     '/dom/devicestorage',
     '/dom/filesystem',
--- a/xpcom/build/moz.build
+++ b/xpcom/build/moz.build
@@ -86,16 +86,16 @@ GENERATED_INCLUDES += ['..']
 LOCAL_INCLUDES += [
     '../base',
     '../components',
     '../ds',
     '../glue',
     '../io',
     '../reflect/xptinfo',
     '../threads',
-    '/chrome/src',
+    '/chrome',
     '/docshell/base',
 ]
 
 if CONFIG['MOZ_VPX']:
     LOCAL_INCLUDES += [
         '/media/libvpx',
     ]
--- a/xpcom/components/moz.build
+++ b/xpcom/components/moz.build
@@ -45,11 +45,11 @@ MSVC_ENABLE_PGO = True
 FINAL_LIBRARY = 'xpcom_core'
 
 GENERATED_INCLUDES += ['..']
 LOCAL_INCLUDES += [
     '../base',
     '../build',
     '../ds',
     '../reflect/xptinfo',
-    '/chrome/src',
+    '/chrome',
     '/modules/libjar',
 ]