From 21862537be7cf7da341a1eb5bffa36c854eb0cf2 Mon Sep 17 00:00:00 2001 From: B2G Bumper Bot Date: Fri, 28 Aug 2015 05:52:28 -0700 Subject: [PATCH 01/12] Bumping gaia.json for 2 gaia revision(s) a=gaia-bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ======== https://hg.mozilla.org/integration/gaia-central/rev/78e928de90f9 Author: Yura Zenevich Desc: Merge pull request #31521 from yzen/bug-1196645 Bug 1196645 - adding add-on obsolete notification for add-ons with ol… ======== https://hg.mozilla.org/integration/gaia-central/rev/49b4c7f9efe8 Author: Yura Zenevich Desc: Bug 1196645 - adding add-on obsolete notification for add-ons with old format. --- b2g/config/gaia.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2g/config/gaia.json b/b2g/config/gaia.json index 0b9873f05d01..a12fbac5c971 100644 --- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,9 +1,9 @@ { "git": { - "git_revision": "fa15462b29258fdec8329bfc367e590022dbc9e5", + "git_revision": "9cad0f6b5e42cb79927dff937fbd6ca510a1cbe0", "remote": "https://git.mozilla.org/releases/gaia.git", "branch": "" }, - "revision": "b575200962cb9cc340aa6b704b8f1cc1ac680176", + "revision": "78e928de90f92202a83f924bac1d37c17929645f", "repo_path": "integration/gaia-central" } From 29a831db77951a53c7f947a66de97871e2cba281 Mon Sep 17 00:00:00 2001 From: B2G Bumper Bot Date: Fri, 28 Aug 2015 05:54:06 -0700 Subject: [PATCH 02/12] Bumping manifests a=b2g-bump --- b2g/config/aries/sources.xml | 2 +- b2g/config/dolphin/sources.xml | 2 +- b2g/config/emulator-ics/sources.xml | 2 +- b2g/config/emulator-jb/sources.xml | 2 +- b2g/config/emulator-kk/sources.xml | 2 +- b2g/config/emulator-l/sources.xml | 2 +- b2g/config/emulator/sources.xml | 2 +- b2g/config/flame-kk/sources.xml | 2 +- b2g/config/nexus-4/sources.xml | 2 +- b2g/config/nexus-5-l/sources.xml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/b2g/config/aries/sources.xml b/b2g/config/aries/sources.xml index 688939b8145f..3aff483fad72 100644 --- a/b2g/config/aries/sources.xml +++ b/b2g/config/aries/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/dolphin/sources.xml b/b2g/config/dolphin/sources.xml index 50e0d9baac98..95829def9632 100644 --- a/b2g/config/dolphin/sources.xml +++ b/b2g/config/dolphin/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator-ics/sources.xml b/b2g/config/emulator-ics/sources.xml index 2c18ad41f713..a4cada1bffdd 100644 --- a/b2g/config/emulator-ics/sources.xml +++ b/b2g/config/emulator-ics/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/emulator-jb/sources.xml b/b2g/config/emulator-jb/sources.xml index f44223f5d2d9..a43291a940e2 100644 --- a/b2g/config/emulator-jb/sources.xml +++ b/b2g/config/emulator-jb/sources.xml @@ -17,7 +17,7 @@ - + diff --git a/b2g/config/emulator-kk/sources.xml b/b2g/config/emulator-kk/sources.xml index 0f4702273c18..36f67028389b 100644 --- a/b2g/config/emulator-kk/sources.xml +++ b/b2g/config/emulator-kk/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator-l/sources.xml b/b2g/config/emulator-l/sources.xml index e09091c4dae8..e9b611d3d204 100644 --- a/b2g/config/emulator-l/sources.xml +++ b/b2g/config/emulator-l/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator/sources.xml b/b2g/config/emulator/sources.xml index 2c18ad41f713..a4cada1bffdd 100644 --- a/b2g/config/emulator/sources.xml +++ b/b2g/config/emulator/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/flame-kk/sources.xml b/b2g/config/flame-kk/sources.xml index 77286abd34f8..79e640ba9ddc 100644 --- a/b2g/config/flame-kk/sources.xml +++ b/b2g/config/flame-kk/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/nexus-4/sources.xml b/b2g/config/nexus-4/sources.xml index 25702c4cab4f..cf769858092b 100644 --- a/b2g/config/nexus-4/sources.xml +++ b/b2g/config/nexus-4/sources.xml @@ -17,7 +17,7 @@ - + diff --git a/b2g/config/nexus-5-l/sources.xml b/b2g/config/nexus-5-l/sources.xml index de3eb8ce9aa3..798979ad771a 100644 --- a/b2g/config/nexus-5-l/sources.xml +++ b/b2g/config/nexus-5-l/sources.xml @@ -15,7 +15,7 @@ - + From f1367d5c1ec61922a89a3d71f9fc6906eedec32d Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Tue, 25 Aug 2015 17:57:09 +0800 Subject: [PATCH 03/12] Bug 1193379 - Move ipc and tests folders out from dom/bluetooth/bluetooth2. r=joliu --HG-- rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp => dom/bluetooth/ipc/BluetoothChild.cpp rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.h => dom/bluetooth/ipc/BluetoothChild.h rename : dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h => dom/bluetooth/ipc/BluetoothMessageUtils.h rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp => dom/bluetooth/ipc/BluetoothParent.cpp rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.h => dom/bluetooth/ipc/BluetoothParent.h rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/ipc/BluetoothServiceChildProcess.h rename : dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh => dom/bluetooth/ipc/BluetoothTypes.ipdlh rename : dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl => dom/bluetooth/ipc/PBluetooth.ipdl rename : dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl => dom/bluetooth/ipc/PBluetoothRequest.ipdl rename : dom/bluetooth/bluetooth2/tests/marionette/head.js => dom/bluetooth/tests/marionette/head.js rename : dom/bluetooth/bluetooth2/tests/marionette/manifest.ini => dom/bluetooth/tests/marionette/manifest.ini rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_enable.js rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothDevice.js rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothManager.js --- .../{bluetooth2 => }/ipc/BluetoothChild.cpp | 0 .../{bluetooth2 => }/ipc/BluetoothChild.h | 0 .../{bluetooth2 => }/ipc/BluetoothMessageUtils.h | 0 .../{bluetooth2 => }/ipc/BluetoothParent.cpp | 0 .../{bluetooth2 => }/ipc/BluetoothParent.h | 0 .../ipc/BluetoothServiceChildProcess.cpp | 0 .../ipc/BluetoothServiceChildProcess.h | 0 .../{bluetooth2 => }/ipc/BluetoothTypes.ipdlh | 0 .../{bluetooth2 => }/ipc/PBluetooth.ipdl | 0 .../{bluetooth2 => }/ipc/PBluetoothRequest.ipdl | 0 dom/bluetooth/moz.build | 16 ++++++++-------- .../{bluetooth2 => }/tests/marionette/head.js | 0 .../tests/marionette/manifest.ini | 0 .../test_dom_BluetoothAdapter_discovery.js} | 0 .../test_dom_BluetoothAdapter_enable.js} | 0 .../test_dom_BluetoothAdapter_pair.js} | 0 .../test_dom_BluetoothAdapter_setters.js} | 0 .../marionette/test_dom_BluetoothDevice.js} | 0 .../marionette/test_dom_BluetoothManager.js} | 0 dom/ipc/moz.build | 2 +- .../client/marionette/tests/webapi-tests.ini | 2 +- 21 files changed, 10 insertions(+), 10 deletions(-) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothChild.cpp (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothChild.h (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothMessageUtils.h (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothParent.cpp (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothParent.h (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothServiceChildProcess.cpp (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothServiceChildProcess.h (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/BluetoothTypes.ipdlh (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/PBluetooth.ipdl (100%) rename dom/bluetooth/{bluetooth2 => }/ipc/PBluetoothRequest.ipdl (100%) rename dom/bluetooth/{bluetooth2 => }/tests/marionette/head.js (100%) rename dom/bluetooth/{bluetooth2 => }/tests/marionette/manifest.ini (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js => tests/marionette/test_dom_BluetoothAdapter_discovery.js} (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js => tests/marionette/test_dom_BluetoothAdapter_enable.js} (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js => tests/marionette/test_dom_BluetoothAdapter_pair.js} (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js => tests/marionette/test_dom_BluetoothAdapter_setters.js} (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js => tests/marionette/test_dom_BluetoothDevice.js} (100%) rename dom/bluetooth/{bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js => tests/marionette/test_dom_BluetoothManager.js} (100%) diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp b/dom/bluetooth/ipc/BluetoothChild.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp rename to dom/bluetooth/ipc/BluetoothChild.cpp diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothChild.h b/dom/bluetooth/ipc/BluetoothChild.h similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothChild.h rename to dom/bluetooth/ipc/BluetoothChild.h diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h b/dom/bluetooth/ipc/BluetoothMessageUtils.h similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h rename to dom/bluetooth/ipc/BluetoothMessageUtils.h diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp b/dom/bluetooth/ipc/BluetoothParent.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp rename to dom/bluetooth/ipc/BluetoothParent.cpp diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothParent.h b/dom/bluetooth/ipc/BluetoothParent.h similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothParent.h rename to dom/bluetooth/ipc/BluetoothParent.h diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp b/dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp rename to dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h b/dom/bluetooth/ipc/BluetoothServiceChildProcess.h similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h rename to dom/bluetooth/ipc/BluetoothServiceChildProcess.h diff --git a/dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh b/dom/bluetooth/ipc/BluetoothTypes.ipdlh similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh rename to dom/bluetooth/ipc/BluetoothTypes.ipdlh diff --git a/dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl b/dom/bluetooth/ipc/PBluetooth.ipdl similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl rename to dom/bluetooth/ipc/PBluetooth.ipdl diff --git a/dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl b/dom/bluetooth/ipc/PBluetoothRequest.ipdl similarity index 100% rename from dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl rename to dom/bluetooth/ipc/PBluetoothRequest.ipdl diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index 6b74098238ca..607347094741 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -41,13 +41,13 @@ if CONFIG['MOZ_B2G_BT']: 'bluetooth2/BluetoothProfileController.cpp', 'bluetooth2/BluetoothReplyRunnable.cpp', 'bluetooth2/BluetoothService.cpp', - 'bluetooth2/ipc/BluetoothChild.cpp', - 'bluetooth2/ipc/BluetoothParent.cpp', - 'bluetooth2/ipc/BluetoothServiceChildProcess.cpp', + 'ipc/BluetoothChild.cpp', + 'ipc/BluetoothParent.cpp', + 'ipc/BluetoothServiceChildProcess.cpp', ] LOCAL_INCLUDES += [ 'bluetooth2', - 'bluetooth2/ipc', + 'ipc', ] # @@ -129,7 +129,7 @@ if CONFIG['MOZ_B2G_BT']: # EXPORTS.mozilla.dom.bluetooth.ipc += [ - 'bluetooth2/ipc/BluetoothMessageUtils.h', + 'ipc/BluetoothMessageUtils.h', ] EXPORTS.mozilla.dom.bluetooth += [ 'bluetooth2/BluetoothAdapter.h', @@ -149,9 +149,9 @@ EXPORTS.mozilla.dom.bluetooth += [ 'BluetoothPbapRequestHandle.h', ] IPDL_SOURCES += [ - 'bluetooth2/ipc/BluetoothTypes.ipdlh', - 'bluetooth2/ipc/PBluetooth.ipdl', - 'bluetooth2/ipc/PBluetoothRequest.ipdl', + 'ipc/BluetoothTypes.ipdlh', + 'ipc/PBluetooth.ipdl', + 'ipc/PBluetoothRequest.ipdl', ] FAIL_ON_WARNINGS = True diff --git a/dom/bluetooth/bluetooth2/tests/marionette/head.js b/dom/bluetooth/tests/marionette/head.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/head.js rename to dom/bluetooth/tests/marionette/head.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/manifest.ini b/dom/bluetooth/tests/marionette/manifest.ini similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/manifest.ini rename to dom/bluetooth/tests/marionette/manifest.ini diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_enable.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_enable.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothDevice.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothDevice.js diff --git a/dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothManager.js similarity index 100% rename from dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js rename to dom/bluetooth/tests/marionette/test_dom_BluetoothManager.js diff --git a/dom/ipc/moz.build b/dom/ipc/moz.build index 112250e0edf8..a2ba63b2848c 100644 --- a/dom/ipc/moz.build +++ b/dom/ipc/moz.build @@ -130,7 +130,7 @@ LOCAL_INCLUDES += [ '/dom/base', '/dom/bluetooth', '/dom/bluetooth/bluetooth2', - '/dom/bluetooth/bluetooth2/ipc', + '/dom/bluetooth/ipc', '/dom/devicestorage', '/dom/filesystem', '/dom/fmradio/ipc', diff --git a/testing/marionette/client/marionette/tests/webapi-tests.ini b/testing/marionette/client/marionette/tests/webapi-tests.ini index 7868a4d0df1f..a0cfcb946109 100644 --- a/testing/marionette/client/marionette/tests/webapi-tests.ini +++ b/testing/marionette/client/marionette/tests/webapi-tests.ini @@ -12,7 +12,7 @@ b2g = true skip = false ; webapi tests -[include:../../../../../dom/bluetooth/bluetooth2/tests/marionette/manifest.ini] +[include:../../../../../dom/bluetooth/tests/marionette/manifest.ini] [include:../../../../../dom/telephony/test/marionette/manifest.ini] [include:../../../../../dom/voicemail/test/marionette/manifest.ini] [include:../../../../../dom/battery/test/marionette/manifest.ini] From 44c939383c7331640c08c382720211b05cbbd1e5 Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Fri, 21 Aug 2015 15:19:12 +0800 Subject: [PATCH 04/12] Bug 1193379 - Rename bluetooth2 folder to common. r=joliu --HG-- rename : dom/bluetooth/bluetooth2/BluetoothAdapter.cpp => dom/bluetooth/common/BluetoothAdapter.cpp rename : dom/bluetooth/bluetooth2/BluetoothAdapter.h => dom/bluetooth/common/BluetoothAdapter.h rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp => dom/bluetooth/common/BluetoothClassOfDevice.cpp rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h => dom/bluetooth/common/BluetoothClassOfDevice.h rename : dom/bluetooth/bluetooth2/BluetoothDevice.cpp => dom/bluetooth/common/BluetoothDevice.cpp rename : dom/bluetooth/bluetooth2/BluetoothDevice.h => dom/bluetooth/common/BluetoothDevice.h rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/BluetoothDiscoveryHandle.cpp rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h => dom/bluetooth/common/BluetoothDiscoveryHandle.h rename : dom/bluetooth/bluetooth2/BluetoothGatt.cpp => dom/bluetooth/common/BluetoothGatt.cpp rename : dom/bluetooth/bluetooth2/BluetoothGatt.h => dom/bluetooth/common/BluetoothGatt.h rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/BluetoothGattCharacteristic.cpp rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h => dom/bluetooth/common/BluetoothGattCharacteristic.h rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp => dom/bluetooth/common/BluetoothGattDescriptor.cpp rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h => dom/bluetooth/common/BluetoothGattDescriptor.h rename : dom/bluetooth/bluetooth2/BluetoothGattServer.cpp => dom/bluetooth/common/BluetoothGattServer.cpp rename : dom/bluetooth/bluetooth2/BluetoothGattServer.h => dom/bluetooth/common/BluetoothGattServer.h rename : dom/bluetooth/bluetooth2/BluetoothGattService.cpp => dom/bluetooth/common/BluetoothGattService.cpp rename : dom/bluetooth/bluetooth2/BluetoothGattService.h => dom/bluetooth/common/BluetoothGattService.h rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/BluetoothLeDeviceEvent.cpp rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.h => dom/bluetooth/common/BluetoothLeDeviceEvent.h rename : dom/bluetooth/bluetooth2/BluetoothManager.cpp => dom/bluetooth/common/BluetoothManager.cpp rename : dom/bluetooth/bluetooth2/BluetoothManager.h => dom/bluetooth/common/BluetoothManager.h rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp => dom/bluetooth/common/BluetoothPairingHandle.cpp rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.h => dom/bluetooth/common/BluetoothPairingHandle.h rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp => dom/bluetooth/common/BluetoothPairingListener.cpp rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.h => dom/bluetooth/common/BluetoothPairingListener.h rename : dom/bluetooth/bluetooth2/BluetoothProfileController.cpp => dom/bluetooth/common/BluetoothProfileController.cpp rename : dom/bluetooth/bluetooth2/BluetoothProfileController.h => dom/bluetooth/common/BluetoothProfileController.h rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp => dom/bluetooth/common/BluetoothReplyRunnable.cpp rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h => dom/bluetooth/common/BluetoothReplyRunnable.h rename : dom/bluetooth/bluetooth2/BluetoothService.cpp => dom/bluetooth/common/BluetoothService.cpp rename : dom/bluetooth/bluetooth2/BluetoothService.h => dom/bluetooth/common/BluetoothService.h --- dom/base/moz.build | 2 +- dom/bindings/moz.build | 2 +- .../bluetooth2/BluetoothRilListener.cpp | 457 ------------------ .../BluetoothAdapter.cpp | 0 .../{bluetooth2 => common}/BluetoothAdapter.h | 0 .../BluetoothClassOfDevice.cpp | 0 .../BluetoothClassOfDevice.h | 0 .../BluetoothDevice.cpp | 0 .../{bluetooth2 => common}/BluetoothDevice.h | 0 .../BluetoothDiscoveryHandle.cpp | 0 .../BluetoothDiscoveryHandle.h | 0 .../{bluetooth2 => common}/BluetoothGatt.cpp | 0 .../{bluetooth2 => common}/BluetoothGatt.h | 0 .../BluetoothGattCharacteristic.cpp | 0 .../BluetoothGattCharacteristic.h | 0 .../BluetoothGattDescriptor.cpp | 0 .../BluetoothGattDescriptor.h | 0 .../BluetoothGattServer.cpp | 0 .../BluetoothGattServer.h | 0 .../BluetoothGattService.cpp | 0 .../BluetoothGattService.h | 0 .../BluetoothLeDeviceEvent.cpp | 0 .../BluetoothLeDeviceEvent.h | 0 .../BluetoothManager.cpp | 0 .../{bluetooth2 => common}/BluetoothManager.h | 0 .../BluetoothPairingHandle.cpp | 0 .../BluetoothPairingHandle.h | 0 .../BluetoothPairingListener.cpp | 0 .../BluetoothPairingListener.h | 0 .../BluetoothProfileController.cpp | 0 .../BluetoothProfileController.h | 0 .../BluetoothReplyRunnable.cpp | 0 .../BluetoothReplyRunnable.h | 0 .../BluetoothService.cpp | 0 .../{bluetooth2 => common}/BluetoothService.h | 0 dom/bluetooth/moz.build | 60 +-- dom/ipc/moz.build | 2 +- dom/system/gonk/moz.build | 2 +- js/xpconnect/src/moz.build | 2 +- layout/build/moz.build | 2 +- 40 files changed, 36 insertions(+), 493 deletions(-) delete mode 100644 dom/bluetooth/bluetooth2/BluetoothRilListener.cpp rename dom/bluetooth/{bluetooth2 => common}/BluetoothAdapter.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothAdapter.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothClassOfDevice.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothClassOfDevice.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothDevice.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothDevice.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothDiscoveryHandle.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothDiscoveryHandle.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGatt.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGatt.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattCharacteristic.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattCharacteristic.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattDescriptor.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattDescriptor.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattServer.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattServer.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattService.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothGattService.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothLeDeviceEvent.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothLeDeviceEvent.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothManager.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothManager.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothPairingHandle.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothPairingHandle.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothPairingListener.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothPairingListener.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothProfileController.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothProfileController.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothReplyRunnable.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothReplyRunnable.h (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothService.cpp (100%) rename dom/bluetooth/{bluetooth2 => common}/BluetoothService.h (100%) diff --git a/dom/base/moz.build b/dom/base/moz.build index fc4bae3054eb..18ab93532668 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -414,7 +414,7 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '../battery', '../bluetooth', - '../bluetooth/bluetooth2', + '../bluetooth/common', '../events', '../media', '../network', diff --git a/dom/bindings/moz.build b/dom/bindings/moz.build index 584631143f4c..c390ae569337 100644 --- a/dom/bindings/moz.build +++ b/dom/bindings/moz.build @@ -45,7 +45,7 @@ LOCAL_INCLUDES += [ '/dom/base', '/dom/battery', '/dom/bluetooth', - '/dom/bluetooth/bluetooth2', + '/dom/bluetooth/common', '/dom/camera', '/dom/canvas', '/dom/geolocation', diff --git a/dom/bluetooth/bluetooth2/BluetoothRilListener.cpp b/dom/bluetooth/bluetooth2/BluetoothRilListener.cpp deleted file mode 100644 index 06d1c3482e7d..000000000000 --- a/dom/bluetooth/bluetooth2/BluetoothRilListener.cpp +++ /dev/null @@ -1,457 +0,0 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* 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/. */ - -#include "BluetoothRilListener.h" - -#include "BluetoothHfpManager.h" -#include "nsIIccService.h" -#include "nsIMobileConnectionInfo.h" -#include "nsIMobileConnectionService.h" -#include "nsITelephonyService.h" -#include "nsServiceManagerUtils.h" -#include "nsString.h" -#include "nsQueryObject.h" - -USING_BLUETOOTH_NAMESPACE - -/** - * IccListener - */ -NS_IMPL_ISUPPORTS(IccListener, nsIIccListener) - -NS_IMETHODIMP -IccListener::NotifyIccInfoChanged() -{ - // mOwner would be set to nullptr only in the dtor of BluetoothRilListener - NS_ENSURE_TRUE(mOwner, NS_ERROR_FAILURE); - - BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); - NS_ENSURE_TRUE(hfp, NS_ERROR_FAILURE); - - hfp->HandleIccInfoChanged(mOwner->mClientId); - - return NS_OK; -} - -NS_IMETHODIMP -IccListener::NotifyStkCommand(nsIStkProactiveCmd *aStkProactiveCmd) -{ - return NS_OK; -} - -NS_IMETHODIMP -IccListener::NotifyStkSessionEnd() -{ - return NS_OK; -} - -NS_IMETHODIMP -IccListener::NotifyCardStateChanged() -{ - return NS_OK; -} - -bool -IccListener::Listen(bool aStart) -{ - NS_ENSURE_TRUE(mOwner, false); - - nsCOMPtr service = - do_GetService(ICC_SERVICE_CONTRACTID); - NS_ENSURE_TRUE(service, false); - - nsCOMPtr icc; - service->GetIccByServiceId(mOwner->mClientId, getter_AddRefs(icc)); - NS_ENSURE_TRUE(icc, false); - - nsresult rv; - if (aStart) { - rv = icc->RegisterListener(this); - } else { - rv = icc->UnregisterListener(this); - } - - return NS_SUCCEEDED(rv); -} - -void -IccListener::SetOwner(BluetoothRilListener *aOwner) -{ - mOwner = aOwner; -} - -/** - * MobileConnectionListener - */ -NS_IMPL_ISUPPORTS(MobileConnectionListener, nsIMobileConnectionListener) - -NS_IMETHODIMP -MobileConnectionListener::NotifyVoiceChanged() -{ - BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); - NS_ENSURE_TRUE(hfp, NS_OK); - - hfp->HandleVoiceConnectionChanged(mClientId); - - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyDataChanged() -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyDataError(const nsAString & message) -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyCFStateChanged(uint16_t action, - uint16_t reason, - const nsAString& number, - uint16_t timeSeconds, - uint16_t serviceClass) -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyEmergencyCbModeChanged(bool active, - uint32_t timeoutMs) -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyOtaStatusChanged(const nsAString & status) -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyRadioStateChanged() -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyClirModeChanged(uint32_t aMode) -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyLastKnownNetworkChanged() -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyLastKnownHomeNetworkChanged() -{ - return NS_OK; -} - -NS_IMETHODIMP -MobileConnectionListener::NotifyNetworkSelectionModeChanged() -{ - return NS_OK; -} - -bool -MobileConnectionListener::Listen(bool aStart) -{ - nsCOMPtr service = - do_GetService(NS_MOBILE_CONNECTION_SERVICE_CONTRACTID); - NS_ENSURE_TRUE(service, false); - - nsCOMPtr connection; - service->GetItemByServiceId(mClientId, getter_AddRefs(connection)); - NS_ENSURE_TRUE(connection, false); - - nsresult rv; - if (aStart) { - rv = connection->RegisterListener(this); - } else { - rv = connection->UnregisterListener(this); - } - - return NS_SUCCEEDED(rv); -} - -/** - * TelephonyListener Implementation - */ -NS_IMPL_ISUPPORTS(TelephonyListener, nsITelephonyListener) - -/** - * @param aSend A boolean indicates whether we need to notify headset or not - */ -nsresult -TelephonyListener::HandleCallInfo(nsITelephonyCallInfo* aInfo, bool aSend) -{ - BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); - NS_ENSURE_TRUE(hfp, NS_ERROR_FAILURE); - - uint32_t callIndex; - uint16_t callState; - nsAutoString number; - bool isOutgoing; - bool isConference; - - aInfo->GetCallIndex(&callIndex); - aInfo->GetCallState(&callState); - aInfo->GetNumber(number); - aInfo->GetIsOutgoing(&isOutgoing); - aInfo->GetIsConference(&isConference); - - hfp->HandleCallStateChanged(callIndex, callState, EmptyString(), number, - isOutgoing, isConference, aSend); - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::CallStateChanged(uint32_t aLength, - nsITelephonyCallInfo** aAllInfo) -{ - for (uint32_t i = 0; i < aLength; ++i) { - HandleCallInfo(aAllInfo[i], true); - } - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::EnumerateCallState(nsITelephonyCallInfo* aInfo) -{ - return HandleCallInfo(aInfo, false); -} - -NS_IMETHODIMP -TelephonyListener::NotifyError(uint32_t aServiceId, - int32_t aCallIndex, - const nsAString& aError) -{ - BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); - NS_ENSURE_TRUE(hfp, NS_ERROR_FAILURE); - - if (aCallIndex > 0) { - // In order to not miss any related call state transition. - // It's possible that 3G network signal lost for unknown reason. - // If a call is released abnormally, NotifyError() will be called, - // instead of CallStateChanged(). We need to reset the call array state - // via setting CALL_STATE_DISCONNECTED - hfp->HandleCallStateChanged(aCallIndex, - nsITelephonyService::CALL_STATE_DISCONNECTED, - aError, EmptyString(), false, false, true); - BT_WARNING("Reset the call state due to call transition ends abnormally"); - } - - BT_WARNING(NS_ConvertUTF16toUTF8(aError).get()); - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::ConferenceCallStateChanged(uint16_t aCallState) -{ - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::EnumerateCallStateComplete() -{ - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::SupplementaryServiceNotification(uint32_t aServiceId, - int32_t aCallIndex, - uint16_t aNotification) -{ - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::NotifyConferenceError(const nsAString& aName, - const nsAString& aMessage) -{ - BT_WARNING(NS_ConvertUTF16toUTF8(aName).get()); - BT_WARNING(NS_ConvertUTF16toUTF8(aMessage).get()); - - return NS_OK; -} - -NS_IMETHODIMP -TelephonyListener::NotifyCdmaCallWaiting(uint32_t aServiceId, - const nsAString& aNumber, - uint16_t aNumberPresentation, - const nsAString& aName, - uint16_t aNamePresentation) -{ - BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); - NS_ENSURE_TRUE(hfp, NS_ERROR_FAILURE); - - hfp->UpdateSecondNumber(aNumber); - - return NS_OK; -} - -bool -TelephonyListener::Listen(bool aStart) -{ - nsCOMPtr service = - do_GetService(TELEPHONY_SERVICE_CONTRACTID); - NS_ENSURE_TRUE(service, false); - - nsresult rv; - if (aStart) { - rv = service->RegisterListener(this); - } else { - rv = service->UnregisterListener(this); - } - - return NS_SUCCEEDED(rv); -} - -/** - * BluetoothRilListener - */ -BluetoothRilListener::BluetoothRilListener() -{ - nsCOMPtr service = - do_GetService(NS_MOBILE_CONNECTION_SERVICE_CONTRACTID); - NS_ENSURE_TRUE_VOID(service); - - // Query number of total clients (sim slots) - uint32_t numItems = 0; - if (NS_SUCCEEDED(service->GetNumItems(&numItems))) { - // Init MobileConnectionListener array and IccInfoListener - for (uint32_t i = 0; i < numItems; i++) { - mMobileConnListeners.AppendElement(new MobileConnectionListener(i)); - } - } - - mTelephonyListener = new TelephonyListener(); - mIccListener = new IccListener(); - mIccListener->SetOwner(this); - - // Probe for available client - SelectClient(); -} - -BluetoothRilListener::~BluetoothRilListener() -{ - mIccListener->SetOwner(nullptr); -} - -bool -BluetoothRilListener::Listen(bool aStart) -{ - NS_ENSURE_TRUE(ListenMobileConnAndIccInfo(aStart), false); - NS_ENSURE_TRUE(mTelephonyListener->Listen(aStart), false); - - return true; -} - -void -BluetoothRilListener::SelectClient() -{ - // Reset mClientId - mClientId = mMobileConnListeners.Length(); - - nsCOMPtr service = - do_GetService(NS_MOBILE_CONNECTION_SERVICE_CONTRACTID); - NS_ENSURE_TRUE_VOID(service); - - for (uint32_t i = 0; i < mMobileConnListeners.Length(); i++) { - nsCOMPtr connection; - service->GetItemByServiceId(i, getter_AddRefs(connection)); - if (!connection) { - BT_WARNING("%s: Failed to get mobile connection", __FUNCTION__); - continue; - } - - nsCOMPtr voiceInfo; - connection->GetVoice(getter_AddRefs(voiceInfo)); - if (!voiceInfo) { - BT_WARNING("%s: Failed to get voice connection info", __FUNCTION__); - continue; - } - - nsString regState; - voiceInfo->GetState(regState); - if (regState.EqualsLiteral("registered")) { - // Found available client - mClientId = i; - return; - } - } -} - -void -BluetoothRilListener::ServiceChanged(uint32_t aClientId, bool aRegistered) -{ - // Stop listening - ListenMobileConnAndIccInfo(false); - - /** - * aRegistered: - * - TRUE: service becomes registered. We were listening to all clients - * and one of them becomes available. Select it to listen. - * - FALSE: service becomes un-registered. The client we were listening - * becomes unavailable. Select another registered one to listen. - */ - if (aRegistered) { - mClientId = aClientId; - } else { - SelectClient(); - } - - // Restart listening - ListenMobileConnAndIccInfo(true); - - BT_LOGR("%d client %d. new mClientId %d", aRegistered, aClientId, - (mClientId < mMobileConnListeners.Length()) ? mClientId : -1); -} - -void -BluetoothRilListener::EnumerateCalls() -{ - nsCOMPtr service = - do_GetService(TELEPHONY_SERVICE_CONTRACTID); - NS_ENSURE_TRUE_VOID(service); - - nsCOMPtr listener( - do_QueryObject(mTelephonyListener)); - - service->EnumerateCalls(listener); -} - -bool -BluetoothRilListener::ListenMobileConnAndIccInfo(bool aStart) -{ - /** - * mClientId < number of total clients: - * The client with mClientId is available. Start/Stop listening - * mobile connection and icc info of this client only. - * - * mClientId >= number of total clients: - * All clients are unavailable. Start/Stop listening mobile - * connections of all clients. - */ - if (mClientId < mMobileConnListeners.Length()) { - NS_ENSURE_TRUE(mMobileConnListeners[mClientId]->Listen(aStart), false); - NS_ENSURE_TRUE(mIccListener->Listen(aStart), false); - } else { - for (uint32_t i = 0; i < mMobileConnListeners.Length(); i++) { - NS_ENSURE_TRUE(mMobileConnListeners[i]->Listen(aStart), false); - } - } - - return true; -} diff --git a/dom/bluetooth/bluetooth2/BluetoothAdapter.cpp b/dom/bluetooth/common/BluetoothAdapter.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothAdapter.cpp rename to dom/bluetooth/common/BluetoothAdapter.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothAdapter.h b/dom/bluetooth/common/BluetoothAdapter.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothAdapter.h rename to dom/bluetooth/common/BluetoothAdapter.h diff --git a/dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp b/dom/bluetooth/common/BluetoothClassOfDevice.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp rename to dom/bluetooth/common/BluetoothClassOfDevice.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h b/dom/bluetooth/common/BluetoothClassOfDevice.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h rename to dom/bluetooth/common/BluetoothClassOfDevice.h diff --git a/dom/bluetooth/bluetooth2/BluetoothDevice.cpp b/dom/bluetooth/common/BluetoothDevice.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothDevice.cpp rename to dom/bluetooth/common/BluetoothDevice.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothDevice.h b/dom/bluetooth/common/BluetoothDevice.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothDevice.h rename to dom/bluetooth/common/BluetoothDevice.h diff --git a/dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp b/dom/bluetooth/common/BluetoothDiscoveryHandle.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp rename to dom/bluetooth/common/BluetoothDiscoveryHandle.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h b/dom/bluetooth/common/BluetoothDiscoveryHandle.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h rename to dom/bluetooth/common/BluetoothDiscoveryHandle.h diff --git a/dom/bluetooth/bluetooth2/BluetoothGatt.cpp b/dom/bluetooth/common/BluetoothGatt.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGatt.cpp rename to dom/bluetooth/common/BluetoothGatt.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothGatt.h b/dom/bluetooth/common/BluetoothGatt.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGatt.h rename to dom/bluetooth/common/BluetoothGatt.h diff --git a/dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp b/dom/bluetooth/common/BluetoothGattCharacteristic.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp rename to dom/bluetooth/common/BluetoothGattCharacteristic.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h b/dom/bluetooth/common/BluetoothGattCharacteristic.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h rename to dom/bluetooth/common/BluetoothGattCharacteristic.h diff --git a/dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp b/dom/bluetooth/common/BluetoothGattDescriptor.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp rename to dom/bluetooth/common/BluetoothGattDescriptor.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h b/dom/bluetooth/common/BluetoothGattDescriptor.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h rename to dom/bluetooth/common/BluetoothGattDescriptor.h diff --git a/dom/bluetooth/bluetooth2/BluetoothGattServer.cpp b/dom/bluetooth/common/BluetoothGattServer.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattServer.cpp rename to dom/bluetooth/common/BluetoothGattServer.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothGattServer.h b/dom/bluetooth/common/BluetoothGattServer.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattServer.h rename to dom/bluetooth/common/BluetoothGattServer.h diff --git a/dom/bluetooth/bluetooth2/BluetoothGattService.cpp b/dom/bluetooth/common/BluetoothGattService.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattService.cpp rename to dom/bluetooth/common/BluetoothGattService.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothGattService.h b/dom/bluetooth/common/BluetoothGattService.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothGattService.h rename to dom/bluetooth/common/BluetoothGattService.h diff --git a/dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.cpp b/dom/bluetooth/common/BluetoothLeDeviceEvent.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.cpp rename to dom/bluetooth/common/BluetoothLeDeviceEvent.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.h b/dom/bluetooth/common/BluetoothLeDeviceEvent.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.h rename to dom/bluetooth/common/BluetoothLeDeviceEvent.h diff --git a/dom/bluetooth/bluetooth2/BluetoothManager.cpp b/dom/bluetooth/common/BluetoothManager.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothManager.cpp rename to dom/bluetooth/common/BluetoothManager.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothManager.h b/dom/bluetooth/common/BluetoothManager.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothManager.h rename to dom/bluetooth/common/BluetoothManager.h diff --git a/dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp b/dom/bluetooth/common/BluetoothPairingHandle.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp rename to dom/bluetooth/common/BluetoothPairingHandle.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothPairingHandle.h b/dom/bluetooth/common/BluetoothPairingHandle.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothPairingHandle.h rename to dom/bluetooth/common/BluetoothPairingHandle.h diff --git a/dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp b/dom/bluetooth/common/BluetoothPairingListener.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp rename to dom/bluetooth/common/BluetoothPairingListener.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothPairingListener.h b/dom/bluetooth/common/BluetoothPairingListener.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothPairingListener.h rename to dom/bluetooth/common/BluetoothPairingListener.h diff --git a/dom/bluetooth/bluetooth2/BluetoothProfileController.cpp b/dom/bluetooth/common/BluetoothProfileController.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothProfileController.cpp rename to dom/bluetooth/common/BluetoothProfileController.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothProfileController.h b/dom/bluetooth/common/BluetoothProfileController.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothProfileController.h rename to dom/bluetooth/common/BluetoothProfileController.h diff --git a/dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp b/dom/bluetooth/common/BluetoothReplyRunnable.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp rename to dom/bluetooth/common/BluetoothReplyRunnable.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h b/dom/bluetooth/common/BluetoothReplyRunnable.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h rename to dom/bluetooth/common/BluetoothReplyRunnable.h diff --git a/dom/bluetooth/bluetooth2/BluetoothService.cpp b/dom/bluetooth/common/BluetoothService.cpp similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothService.cpp rename to dom/bluetooth/common/BluetoothService.cpp diff --git a/dom/bluetooth/bluetooth2/BluetoothService.h b/dom/bluetooth/common/BluetoothService.h similarity index 100% rename from dom/bluetooth/bluetooth2/BluetoothService.h rename to dom/bluetooth/common/BluetoothService.h diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index 607347094741..b79aa16d97c3 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -25,28 +25,28 @@ if CONFIG['MOZ_B2G_BT']: ] SOURCES += [ - 'bluetooth2/BluetoothAdapter.cpp', - 'bluetooth2/BluetoothClassOfDevice.cpp', - 'bluetooth2/BluetoothDevice.cpp', - 'bluetooth2/BluetoothDiscoveryHandle.cpp', - 'bluetooth2/BluetoothGatt.cpp', - 'bluetooth2/BluetoothGattCharacteristic.cpp', - 'bluetooth2/BluetoothGattDescriptor.cpp', - 'bluetooth2/BluetoothGattServer.cpp', - 'bluetooth2/BluetoothGattService.cpp', - 'bluetooth2/BluetoothLeDeviceEvent.cpp', - 'bluetooth2/BluetoothManager.cpp', - 'bluetooth2/BluetoothPairingHandle.cpp', - 'bluetooth2/BluetoothPairingListener.cpp', - 'bluetooth2/BluetoothProfileController.cpp', - 'bluetooth2/BluetoothReplyRunnable.cpp', - 'bluetooth2/BluetoothService.cpp', + 'common/BluetoothAdapter.cpp', + 'common/BluetoothClassOfDevice.cpp', + 'common/BluetoothDevice.cpp', + 'common/BluetoothDiscoveryHandle.cpp', + 'common/BluetoothGatt.cpp', + 'common/BluetoothGattCharacteristic.cpp', + 'common/BluetoothGattDescriptor.cpp', + 'common/BluetoothGattServer.cpp', + 'common/BluetoothGattService.cpp', + 'common/BluetoothLeDeviceEvent.cpp', + 'common/BluetoothManager.cpp', + 'common/BluetoothPairingHandle.cpp', + 'common/BluetoothPairingListener.cpp', + 'common/BluetoothProfileController.cpp', + 'common/BluetoothReplyRunnable.cpp', + 'common/BluetoothService.cpp', 'ipc/BluetoothChild.cpp', 'ipc/BluetoothParent.cpp', 'ipc/BluetoothServiceChildProcess.cpp', ] LOCAL_INCLUDES += [ - 'bluetooth2', + 'common', 'ipc', ] @@ -132,21 +132,21 @@ EXPORTS.mozilla.dom.bluetooth.ipc += [ 'ipc/BluetoothMessageUtils.h', ] EXPORTS.mozilla.dom.bluetooth += [ - 'bluetooth2/BluetoothAdapter.h', - 'bluetooth2/BluetoothClassOfDevice.h', - 'bluetooth2/BluetoothDevice.h', - 'bluetooth2/BluetoothDiscoveryHandle.h', - 'bluetooth2/BluetoothGatt.h', - 'bluetooth2/BluetoothGattCharacteristic.h', - 'bluetooth2/BluetoothGattDescriptor.h', - 'bluetooth2/BluetoothGattServer.h', - 'bluetooth2/BluetoothGattService.h', - 'bluetooth2/BluetoothLeDeviceEvent.h', - 'bluetooth2/BluetoothManager.h', - 'bluetooth2/BluetoothPairingHandle.h', - 'bluetooth2/BluetoothPairingListener.h', 'BluetoothCommon.h', 'BluetoothPbapRequestHandle.h', + 'common/BluetoothAdapter.h', + 'common/BluetoothClassOfDevice.h', + 'common/BluetoothDevice.h', + 'common/BluetoothDiscoveryHandle.h', + 'common/BluetoothGatt.h', + 'common/BluetoothGattCharacteristic.h', + 'common/BluetoothGattDescriptor.h', + 'common/BluetoothGattServer.h', + 'common/BluetoothGattService.h', + 'common/BluetoothLeDeviceEvent.h', + 'common/BluetoothManager.h', + 'common/BluetoothPairingHandle.h', + 'common/BluetoothPairingListener.h', ] IPDL_SOURCES += [ 'ipc/BluetoothTypes.ipdlh', diff --git a/dom/ipc/moz.build b/dom/ipc/moz.build index a2ba63b2848c..0ac8a949630d 100644 --- a/dom/ipc/moz.build +++ b/dom/ipc/moz.build @@ -129,7 +129,7 @@ LOCAL_INCLUDES += [ '/docshell/base', '/dom/base', '/dom/bluetooth', - '/dom/bluetooth/bluetooth2', + '/dom/bluetooth/common', '/dom/bluetooth/ipc', '/dom/devicestorage', '/dom/filesystem', diff --git a/dom/system/gonk/moz.build b/dom/system/gonk/moz.build index 1e3d11d57228..a5871d1b144d 100644 --- a/dom/system/gonk/moz.build +++ b/dom/system/gonk/moz.build @@ -120,7 +120,7 @@ include('/ipc/chromium/chromium-config.mozbuild') LOCAL_INCLUDES += [ '/dom/base', '/dom/bluetooth', - '/dom/bluetooth/bluetooth2', + '/dom/bluetooth/common', '/dom/geolocation', '/dom/wifi', ] diff --git a/js/xpconnect/src/moz.build b/js/xpconnect/src/moz.build index 90198b2d0cca..d0e4d7db8884 100644 --- a/js/xpconnect/src/moz.build +++ b/js/xpconnect/src/moz.build @@ -73,5 +73,5 @@ LOCAL_INCLUDES += [ if CONFIG['MOZ_B2G_BT']: LOCAL_INCLUDES += [ '/dom/bluetooth', - '/dom/bluetooth/bluetooth2', + '/dom/bluetooth/common', ] diff --git a/layout/build/moz.build b/layout/build/moz.build index dfc3583298ec..4805cd5fbca6 100644 --- a/layout/build/moz.build +++ b/layout/build/moz.build @@ -107,7 +107,7 @@ if CONFIG['MOZ_B2G_FM']: if CONFIG['MOZ_B2G_BT']: LOCAL_INCLUDES += [ '/dom/bluetooth', - '/dom/bluetooth/bluetooth2', + '/dom/bluetooth/common', ] if CONFIG['MOZ_WEBSPEECH']: From 8ddbe69e4f31e9946f553973930fed5a8c0358e9 Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Fri, 21 Aug 2015 15:17:44 +0800 Subject: [PATCH 05/12] Bug 1193379 - Move backend-neutral files into dom/bluetooth/common. r=joliu --HG-- rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/common/BluetoothCommon.h rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/common/BluetoothHfpManagerBase.h rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/common/BluetoothHidManager.cpp rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/common/BluetoothHidManager.h rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/common/BluetoothInterface.cpp rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/common/BluetoothInterface.h rename : dom/bluetooth/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/BluetoothPbapRequestHandle.cpp rename : dom/bluetooth/BluetoothPbapRequestHandle.h => dom/bluetooth/common/BluetoothPbapRequestHandle.h rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/common/BluetoothProfileManagerBase.h rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/common/BluetoothRilListener.cpp rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/common/BluetoothRilListener.h rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/common/BluetoothSocketObserver.h rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/common/BluetoothUtils.cpp rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/common/BluetoothUtils.h rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuid.cpp rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuid.h rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/common/ObexBase.cpp rename : dom/bluetooth/ObexBase.h => dom/bluetooth/common/ObexBase.h --- dom/bluetooth/{ => common}/BluetoothCommon.h | 0 .../{ => common}/BluetoothHfpManagerBase.h | 0 .../{ => common}/BluetoothHidManager.cpp | 0 .../{ => common}/BluetoothHidManager.h | 0 .../{ => common}/BluetoothInterface.cpp | 0 .../{ => common}/BluetoothInterface.h | 0 .../BluetoothPbapRequestHandle.cpp | 0 .../{ => common}/BluetoothPbapRequestHandle.h | 0 .../BluetoothProfileManagerBase.h | 0 .../{ => common}/BluetoothRilListener.cpp | 0 .../{ => common}/BluetoothRilListener.h | 0 .../{ => common}/BluetoothSocketObserver.h | 0 dom/bluetooth/{ => common}/BluetoothUtils.cpp | 0 dom/bluetooth/{ => common}/BluetoothUtils.h | 0 dom/bluetooth/{ => common}/BluetoothUuid.cpp | 0 dom/bluetooth/{ => common}/BluetoothUuid.h | 0 dom/bluetooth/{ => common}/ObexBase.cpp | 0 dom/bluetooth/{ => common}/ObexBase.h | 0 dom/bluetooth/moz.build | 21 ++++++++----------- 19 files changed, 9 insertions(+), 12 deletions(-) rename dom/bluetooth/{ => common}/BluetoothCommon.h (100%) rename dom/bluetooth/{ => common}/BluetoothHfpManagerBase.h (100%) rename dom/bluetooth/{ => common}/BluetoothHidManager.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothHidManager.h (100%) rename dom/bluetooth/{ => common}/BluetoothInterface.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothInterface.h (100%) rename dom/bluetooth/{ => common}/BluetoothPbapRequestHandle.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothPbapRequestHandle.h (100%) rename dom/bluetooth/{ => common}/BluetoothProfileManagerBase.h (100%) rename dom/bluetooth/{ => common}/BluetoothRilListener.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothRilListener.h (100%) rename dom/bluetooth/{ => common}/BluetoothSocketObserver.h (100%) rename dom/bluetooth/{ => common}/BluetoothUtils.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothUtils.h (100%) rename dom/bluetooth/{ => common}/BluetoothUuid.cpp (100%) rename dom/bluetooth/{ => common}/BluetoothUuid.h (100%) rename dom/bluetooth/{ => common}/ObexBase.cpp (100%) rename dom/bluetooth/{ => common}/ObexBase.h (100%) diff --git a/dom/bluetooth/BluetoothCommon.h b/dom/bluetooth/common/BluetoothCommon.h similarity index 100% rename from dom/bluetooth/BluetoothCommon.h rename to dom/bluetooth/common/BluetoothCommon.h diff --git a/dom/bluetooth/BluetoothHfpManagerBase.h b/dom/bluetooth/common/BluetoothHfpManagerBase.h similarity index 100% rename from dom/bluetooth/BluetoothHfpManagerBase.h rename to dom/bluetooth/common/BluetoothHfpManagerBase.h diff --git a/dom/bluetooth/BluetoothHidManager.cpp b/dom/bluetooth/common/BluetoothHidManager.cpp similarity index 100% rename from dom/bluetooth/BluetoothHidManager.cpp rename to dom/bluetooth/common/BluetoothHidManager.cpp diff --git a/dom/bluetooth/BluetoothHidManager.h b/dom/bluetooth/common/BluetoothHidManager.h similarity index 100% rename from dom/bluetooth/BluetoothHidManager.h rename to dom/bluetooth/common/BluetoothHidManager.h diff --git a/dom/bluetooth/BluetoothInterface.cpp b/dom/bluetooth/common/BluetoothInterface.cpp similarity index 100% rename from dom/bluetooth/BluetoothInterface.cpp rename to dom/bluetooth/common/BluetoothInterface.cpp diff --git a/dom/bluetooth/BluetoothInterface.h b/dom/bluetooth/common/BluetoothInterface.h similarity index 100% rename from dom/bluetooth/BluetoothInterface.h rename to dom/bluetooth/common/BluetoothInterface.h diff --git a/dom/bluetooth/BluetoothPbapRequestHandle.cpp b/dom/bluetooth/common/BluetoothPbapRequestHandle.cpp similarity index 100% rename from dom/bluetooth/BluetoothPbapRequestHandle.cpp rename to dom/bluetooth/common/BluetoothPbapRequestHandle.cpp diff --git a/dom/bluetooth/BluetoothPbapRequestHandle.h b/dom/bluetooth/common/BluetoothPbapRequestHandle.h similarity index 100% rename from dom/bluetooth/BluetoothPbapRequestHandle.h rename to dom/bluetooth/common/BluetoothPbapRequestHandle.h diff --git a/dom/bluetooth/BluetoothProfileManagerBase.h b/dom/bluetooth/common/BluetoothProfileManagerBase.h similarity index 100% rename from dom/bluetooth/BluetoothProfileManagerBase.h rename to dom/bluetooth/common/BluetoothProfileManagerBase.h diff --git a/dom/bluetooth/BluetoothRilListener.cpp b/dom/bluetooth/common/BluetoothRilListener.cpp similarity index 100% rename from dom/bluetooth/BluetoothRilListener.cpp rename to dom/bluetooth/common/BluetoothRilListener.cpp diff --git a/dom/bluetooth/BluetoothRilListener.h b/dom/bluetooth/common/BluetoothRilListener.h similarity index 100% rename from dom/bluetooth/BluetoothRilListener.h rename to dom/bluetooth/common/BluetoothRilListener.h diff --git a/dom/bluetooth/BluetoothSocketObserver.h b/dom/bluetooth/common/BluetoothSocketObserver.h similarity index 100% rename from dom/bluetooth/BluetoothSocketObserver.h rename to dom/bluetooth/common/BluetoothSocketObserver.h diff --git a/dom/bluetooth/BluetoothUtils.cpp b/dom/bluetooth/common/BluetoothUtils.cpp similarity index 100% rename from dom/bluetooth/BluetoothUtils.cpp rename to dom/bluetooth/common/BluetoothUtils.cpp diff --git a/dom/bluetooth/BluetoothUtils.h b/dom/bluetooth/common/BluetoothUtils.h similarity index 100% rename from dom/bluetooth/BluetoothUtils.h rename to dom/bluetooth/common/BluetoothUtils.h diff --git a/dom/bluetooth/BluetoothUuid.cpp b/dom/bluetooth/common/BluetoothUuid.cpp similarity index 100% rename from dom/bluetooth/BluetoothUuid.cpp rename to dom/bluetooth/common/BluetoothUuid.cpp diff --git a/dom/bluetooth/BluetoothUuid.h b/dom/bluetooth/common/BluetoothUuid.h similarity index 100% rename from dom/bluetooth/BluetoothUuid.h rename to dom/bluetooth/common/BluetoothUuid.h diff --git a/dom/bluetooth/ObexBase.cpp b/dom/bluetooth/common/ObexBase.cpp similarity index 100% rename from dom/bluetooth/ObexBase.cpp rename to dom/bluetooth/common/ObexBase.cpp diff --git a/dom/bluetooth/ObexBase.h b/dom/bluetooth/common/ObexBase.h similarity index 100% rename from dom/bluetooth/ObexBase.h rename to dom/bluetooth/common/ObexBase.h diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index b79aa16d97c3..9ee3ed0e2173 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -10,18 +10,9 @@ if CONFIG['MOZ_B2G_BT']: # Generic code # - SOURCES += [ - 'BluetoothHidManager.cpp', - 'BluetoothInterface.cpp', - 'BluetoothPbapRequestHandle.cpp', - 'BluetoothUtils.cpp', - 'BluetoothUuid.cpp', - 'ObexBase.cpp' - ] - if CONFIG['MOZ_B2G_RIL']: SOURCES += [ - 'BluetoothRilListener.cpp' + 'common/BluetoothRilListener.cpp' ] SOURCES += [ @@ -34,13 +25,19 @@ if CONFIG['MOZ_B2G_BT']: 'common/BluetoothGattDescriptor.cpp', 'common/BluetoothGattServer.cpp', 'common/BluetoothGattService.cpp', + 'common/BluetoothHidManager.cpp', + 'common/BluetoothInterface.cpp', 'common/BluetoothLeDeviceEvent.cpp', 'common/BluetoothManager.cpp', 'common/BluetoothPairingHandle.cpp', 'common/BluetoothPairingListener.cpp', + 'common/BluetoothPbapRequestHandle.cpp', 'common/BluetoothProfileController.cpp', 'common/BluetoothReplyRunnable.cpp', 'common/BluetoothService.cpp', + 'common/BluetoothUtils.cpp', + 'common/BluetoothUuid.cpp', + 'common/ObexBase.cpp', 'ipc/BluetoothChild.cpp', 'ipc/BluetoothParent.cpp', 'ipc/BluetoothServiceChildProcess.cpp', @@ -132,10 +129,9 @@ EXPORTS.mozilla.dom.bluetooth.ipc += [ 'ipc/BluetoothMessageUtils.h', ] EXPORTS.mozilla.dom.bluetooth += [ - 'BluetoothCommon.h', - 'BluetoothPbapRequestHandle.h', 'common/BluetoothAdapter.h', 'common/BluetoothClassOfDevice.h', + 'common/BluetoothCommon.h', 'common/BluetoothDevice.h', 'common/BluetoothDiscoveryHandle.h', 'common/BluetoothGatt.h', @@ -147,6 +143,7 @@ EXPORTS.mozilla.dom.bluetooth += [ 'common/BluetoothManager.h', 'common/BluetoothPairingHandle.h', 'common/BluetoothPairingListener.h', + 'common/BluetoothPbapRequestHandle.h', ] IPDL_SOURCES += [ 'ipc/BluetoothTypes.ipdlh', From f9389ddddfa6d0f1667c0878db3c31995965d69a Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Fri, 21 Aug 2015 15:15:41 +0800 Subject: [PATCH 06/12] Bug 1193379 - Create dom/bluetooth/common/webapi folder. r=joliu --HG-- rename : dom/bluetooth/common/BluetoothAdapter.cpp => dom/bluetooth/common/webapi/BluetoothAdapter.cpp rename : dom/bluetooth/common/BluetoothAdapter.h => dom/bluetooth/common/webapi/BluetoothAdapter.h rename : dom/bluetooth/common/BluetoothClassOfDevice.cpp => dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp rename : dom/bluetooth/common/BluetoothClassOfDevice.h => dom/bluetooth/common/webapi/BluetoothClassOfDevice.h rename : dom/bluetooth/common/BluetoothDevice.cpp => dom/bluetooth/common/webapi/BluetoothDevice.cpp rename : dom/bluetooth/common/BluetoothDevice.h => dom/bluetooth/common/webapi/BluetoothDevice.h rename : dom/bluetooth/common/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp rename : dom/bluetooth/common/BluetoothDiscoveryHandle.h => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h rename : dom/bluetooth/common/BluetoothGatt.cpp => dom/bluetooth/common/webapi/BluetoothGatt.cpp rename : dom/bluetooth/common/BluetoothGatt.h => dom/bluetooth/common/webapi/BluetoothGatt.h rename : dom/bluetooth/common/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp rename : dom/bluetooth/common/BluetoothGattCharacteristic.h => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h rename : dom/bluetooth/common/BluetoothGattDescriptor.cpp => dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp rename : dom/bluetooth/common/BluetoothGattDescriptor.h => dom/bluetooth/common/webapi/BluetoothGattDescriptor.h rename : dom/bluetooth/common/BluetoothGattServer.cpp => dom/bluetooth/common/webapi/BluetoothGattServer.cpp rename : dom/bluetooth/common/BluetoothGattServer.h => dom/bluetooth/common/webapi/BluetoothGattServer.h rename : dom/bluetooth/common/BluetoothGattService.cpp => dom/bluetooth/common/webapi/BluetoothGattService.cpp rename : dom/bluetooth/common/BluetoothGattService.h => dom/bluetooth/common/webapi/BluetoothGattService.h rename : dom/bluetooth/common/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp rename : dom/bluetooth/common/BluetoothLeDeviceEvent.h => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h rename : dom/bluetooth/common/BluetoothManager.cpp => dom/bluetooth/common/webapi/BluetoothManager.cpp rename : dom/bluetooth/common/BluetoothManager.h => dom/bluetooth/common/webapi/BluetoothManager.h rename : dom/bluetooth/common/BluetoothPairingHandle.cpp => dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp rename : dom/bluetooth/common/BluetoothPairingHandle.h => dom/bluetooth/common/webapi/BluetoothPairingHandle.h rename : dom/bluetooth/common/BluetoothPairingListener.cpp => dom/bluetooth/common/webapi/BluetoothPairingListener.cpp rename : dom/bluetooth/common/BluetoothPairingListener.h => dom/bluetooth/common/webapi/BluetoothPairingListener.h rename : dom/bluetooth/common/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp rename : dom/bluetooth/common/BluetoothPbapRequestHandle.h => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h --- dom/base/moz.build | 2 +- dom/bindings/moz.build | 3 +- .../bluedroid/BluetoothPbapManager.cpp | 1 + dom/bluetooth/common/BluetoothService.h | 1 - .../common/{ => webapi}/BluetoothAdapter.cpp | 0 .../common/{ => webapi}/BluetoothAdapter.h | 0 .../{ => webapi}/BluetoothClassOfDevice.cpp | 0 .../{ => webapi}/BluetoothClassOfDevice.h | 0 .../common/{ => webapi}/BluetoothDevice.cpp | 0 .../common/{ => webapi}/BluetoothDevice.h | 0 .../{ => webapi}/BluetoothDiscoveryHandle.cpp | 0 .../{ => webapi}/BluetoothDiscoveryHandle.h | 0 .../common/{ => webapi}/BluetoothGatt.cpp | 0 .../common/{ => webapi}/BluetoothGatt.h | 0 .../BluetoothGattCharacteristic.cpp | 0 .../BluetoothGattCharacteristic.h | 0 .../{ => webapi}/BluetoothGattDescriptor.cpp | 0 .../{ => webapi}/BluetoothGattDescriptor.h | 0 .../{ => webapi}/BluetoothGattServer.cpp | 0 .../common/{ => webapi}/BluetoothGattServer.h | 0 .../{ => webapi}/BluetoothGattService.cpp | 0 .../{ => webapi}/BluetoothGattService.h | 0 .../{ => webapi}/BluetoothLeDeviceEvent.cpp | 0 .../{ => webapi}/BluetoothLeDeviceEvent.h | 0 .../common/{ => webapi}/BluetoothManager.cpp | 0 .../common/{ => webapi}/BluetoothManager.h | 0 .../{ => webapi}/BluetoothPairingHandle.cpp | 0 .../{ => webapi}/BluetoothPairingHandle.h | 0 .../{ => webapi}/BluetoothPairingListener.cpp | 0 .../{ => webapi}/BluetoothPairingListener.h | 0 .../BluetoothPbapRequestHandle.cpp | 0 .../{ => webapi}/BluetoothPbapRequestHandle.h | 0 dom/bluetooth/moz.build | 65 ++++++++++--------- dom/ipc/moz.build | 1 - dom/system/gonk/moz.build | 1 - js/xpconnect/src/moz.build | 1 - layout/build/moz.build | 1 - 37 files changed, 36 insertions(+), 40 deletions(-) rename dom/bluetooth/common/{ => webapi}/BluetoothAdapter.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothAdapter.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothClassOfDevice.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothClassOfDevice.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothDevice.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothDevice.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothDiscoveryHandle.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothDiscoveryHandle.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGatt.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGatt.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattCharacteristic.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattCharacteristic.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattDescriptor.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattDescriptor.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattServer.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattServer.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattService.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothGattService.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothLeDeviceEvent.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothLeDeviceEvent.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothManager.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothManager.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPairingHandle.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPairingHandle.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPairingListener.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPairingListener.h (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPbapRequestHandle.cpp (100%) rename dom/bluetooth/common/{ => webapi}/BluetoothPbapRequestHandle.h (100%) diff --git a/dom/base/moz.build b/dom/base/moz.build index 18ab93532668..52120811432e 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -413,8 +413,8 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '../battery', - '../bluetooth', '../bluetooth/common', + '../bluetooth/common/webapi', '../events', '../media', '../network', diff --git a/dom/bindings/moz.build b/dom/bindings/moz.build index c390ae569337..6087a81d64c5 100644 --- a/dom/bindings/moz.build +++ b/dom/bindings/moz.build @@ -44,8 +44,7 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '/dom/base', '/dom/battery', - '/dom/bluetooth', - '/dom/bluetooth/common', + '/dom/bluetooth/common/webapi', '/dom/camera', '/dom/canvas', '/dom/geolocation', diff --git a/dom/bluetooth/bluedroid/BluetoothPbapManager.cpp b/dom/bluetooth/bluedroid/BluetoothPbapManager.cpp index aee40aa6ad9c..6ac9ac7013e3 100644 --- a/dom/bluetooth/bluedroid/BluetoothPbapManager.cpp +++ b/dom/bluetooth/bluedroid/BluetoothPbapManager.cpp @@ -12,6 +12,7 @@ #include "BluetoothUuid.h" #include "ObexBase.h" +#include "mozilla/dom/File.h" #include "mozilla/dom/ipc/BlobParent.h" #include "mozilla/RefPtr.h" #include "mozilla/Services.h" diff --git a/dom/bluetooth/common/BluetoothService.h b/dom/bluetooth/common/BluetoothService.h index 8b2b18f74040..0c3429a9701a 100644 --- a/dom/bluetooth/common/BluetoothService.h +++ b/dom/bluetooth/common/BluetoothService.h @@ -9,7 +9,6 @@ #include "BluetoothCommon.h" #include "BluetoothInterface.h" -#include "BluetoothPbapRequestHandle.h" #include "BluetoothProfileManagerBase.h" #include "nsAutoPtr.h" #include "nsClassHashtable.h" diff --git a/dom/bluetooth/common/BluetoothAdapter.cpp b/dom/bluetooth/common/webapi/BluetoothAdapter.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothAdapter.cpp rename to dom/bluetooth/common/webapi/BluetoothAdapter.cpp diff --git a/dom/bluetooth/common/BluetoothAdapter.h b/dom/bluetooth/common/webapi/BluetoothAdapter.h similarity index 100% rename from dom/bluetooth/common/BluetoothAdapter.h rename to dom/bluetooth/common/webapi/BluetoothAdapter.h diff --git a/dom/bluetooth/common/BluetoothClassOfDevice.cpp b/dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothClassOfDevice.cpp rename to dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp diff --git a/dom/bluetooth/common/BluetoothClassOfDevice.h b/dom/bluetooth/common/webapi/BluetoothClassOfDevice.h similarity index 100% rename from dom/bluetooth/common/BluetoothClassOfDevice.h rename to dom/bluetooth/common/webapi/BluetoothClassOfDevice.h diff --git a/dom/bluetooth/common/BluetoothDevice.cpp b/dom/bluetooth/common/webapi/BluetoothDevice.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothDevice.cpp rename to dom/bluetooth/common/webapi/BluetoothDevice.cpp diff --git a/dom/bluetooth/common/BluetoothDevice.h b/dom/bluetooth/common/webapi/BluetoothDevice.h similarity index 100% rename from dom/bluetooth/common/BluetoothDevice.h rename to dom/bluetooth/common/webapi/BluetoothDevice.h diff --git a/dom/bluetooth/common/BluetoothDiscoveryHandle.cpp b/dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothDiscoveryHandle.cpp rename to dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp diff --git a/dom/bluetooth/common/BluetoothDiscoveryHandle.h b/dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h similarity index 100% rename from dom/bluetooth/common/BluetoothDiscoveryHandle.h rename to dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h diff --git a/dom/bluetooth/common/BluetoothGatt.cpp b/dom/bluetooth/common/webapi/BluetoothGatt.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothGatt.cpp rename to dom/bluetooth/common/webapi/BluetoothGatt.cpp diff --git a/dom/bluetooth/common/BluetoothGatt.h b/dom/bluetooth/common/webapi/BluetoothGatt.h similarity index 100% rename from dom/bluetooth/common/BluetoothGatt.h rename to dom/bluetooth/common/webapi/BluetoothGatt.h diff --git a/dom/bluetooth/common/BluetoothGattCharacteristic.cpp b/dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothGattCharacteristic.cpp rename to dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp diff --git a/dom/bluetooth/common/BluetoothGattCharacteristic.h b/dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h similarity index 100% rename from dom/bluetooth/common/BluetoothGattCharacteristic.h rename to dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h diff --git a/dom/bluetooth/common/BluetoothGattDescriptor.cpp b/dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothGattDescriptor.cpp rename to dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp diff --git a/dom/bluetooth/common/BluetoothGattDescriptor.h b/dom/bluetooth/common/webapi/BluetoothGattDescriptor.h similarity index 100% rename from dom/bluetooth/common/BluetoothGattDescriptor.h rename to dom/bluetooth/common/webapi/BluetoothGattDescriptor.h diff --git a/dom/bluetooth/common/BluetoothGattServer.cpp b/dom/bluetooth/common/webapi/BluetoothGattServer.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothGattServer.cpp rename to dom/bluetooth/common/webapi/BluetoothGattServer.cpp diff --git a/dom/bluetooth/common/BluetoothGattServer.h b/dom/bluetooth/common/webapi/BluetoothGattServer.h similarity index 100% rename from dom/bluetooth/common/BluetoothGattServer.h rename to dom/bluetooth/common/webapi/BluetoothGattServer.h diff --git a/dom/bluetooth/common/BluetoothGattService.cpp b/dom/bluetooth/common/webapi/BluetoothGattService.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothGattService.cpp rename to dom/bluetooth/common/webapi/BluetoothGattService.cpp diff --git a/dom/bluetooth/common/BluetoothGattService.h b/dom/bluetooth/common/webapi/BluetoothGattService.h similarity index 100% rename from dom/bluetooth/common/BluetoothGattService.h rename to dom/bluetooth/common/webapi/BluetoothGattService.h diff --git a/dom/bluetooth/common/BluetoothLeDeviceEvent.cpp b/dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothLeDeviceEvent.cpp rename to dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp diff --git a/dom/bluetooth/common/BluetoothLeDeviceEvent.h b/dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h similarity index 100% rename from dom/bluetooth/common/BluetoothLeDeviceEvent.h rename to dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h diff --git a/dom/bluetooth/common/BluetoothManager.cpp b/dom/bluetooth/common/webapi/BluetoothManager.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothManager.cpp rename to dom/bluetooth/common/webapi/BluetoothManager.cpp diff --git a/dom/bluetooth/common/BluetoothManager.h b/dom/bluetooth/common/webapi/BluetoothManager.h similarity index 100% rename from dom/bluetooth/common/BluetoothManager.h rename to dom/bluetooth/common/webapi/BluetoothManager.h diff --git a/dom/bluetooth/common/BluetoothPairingHandle.cpp b/dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothPairingHandle.cpp rename to dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp diff --git a/dom/bluetooth/common/BluetoothPairingHandle.h b/dom/bluetooth/common/webapi/BluetoothPairingHandle.h similarity index 100% rename from dom/bluetooth/common/BluetoothPairingHandle.h rename to dom/bluetooth/common/webapi/BluetoothPairingHandle.h diff --git a/dom/bluetooth/common/BluetoothPairingListener.cpp b/dom/bluetooth/common/webapi/BluetoothPairingListener.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothPairingListener.cpp rename to dom/bluetooth/common/webapi/BluetoothPairingListener.cpp diff --git a/dom/bluetooth/common/BluetoothPairingListener.h b/dom/bluetooth/common/webapi/BluetoothPairingListener.h similarity index 100% rename from dom/bluetooth/common/BluetoothPairingListener.h rename to dom/bluetooth/common/webapi/BluetoothPairingListener.h diff --git a/dom/bluetooth/common/BluetoothPbapRequestHandle.cpp b/dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp similarity index 100% rename from dom/bluetooth/common/BluetoothPbapRequestHandle.cpp rename to dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp diff --git a/dom/bluetooth/common/BluetoothPbapRequestHandle.h b/dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h similarity index 100% rename from dom/bluetooth/common/BluetoothPbapRequestHandle.h rename to dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index 9ee3ed0e2173..efbb51269420 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -16,35 +16,36 @@ if CONFIG['MOZ_B2G_BT']: ] SOURCES += [ - 'common/BluetoothAdapter.cpp', - 'common/BluetoothClassOfDevice.cpp', - 'common/BluetoothDevice.cpp', - 'common/BluetoothDiscoveryHandle.cpp', - 'common/BluetoothGatt.cpp', - 'common/BluetoothGattCharacteristic.cpp', - 'common/BluetoothGattDescriptor.cpp', - 'common/BluetoothGattServer.cpp', - 'common/BluetoothGattService.cpp', 'common/BluetoothHidManager.cpp', 'common/BluetoothInterface.cpp', - 'common/BluetoothLeDeviceEvent.cpp', - 'common/BluetoothManager.cpp', - 'common/BluetoothPairingHandle.cpp', - 'common/BluetoothPairingListener.cpp', - 'common/BluetoothPbapRequestHandle.cpp', 'common/BluetoothProfileController.cpp', 'common/BluetoothReplyRunnable.cpp', 'common/BluetoothService.cpp', 'common/BluetoothUtils.cpp', 'common/BluetoothUuid.cpp', 'common/ObexBase.cpp', + 'common/webapi/BluetoothAdapter.cpp', + 'common/webapi/BluetoothClassOfDevice.cpp', + 'common/webapi/BluetoothDevice.cpp', + 'common/webapi/BluetoothDiscoveryHandle.cpp', + 'common/webapi/BluetoothGatt.cpp', + 'common/webapi/BluetoothGattCharacteristic.cpp', + 'common/webapi/BluetoothGattDescriptor.cpp', + 'common/webapi/BluetoothGattServer.cpp', + 'common/webapi/BluetoothGattService.cpp', + 'common/webapi/BluetoothLeDeviceEvent.cpp', + 'common/webapi/BluetoothManager.cpp', + 'common/webapi/BluetoothPairingHandle.cpp', + 'common/webapi/BluetoothPairingListener.cpp', + 'common/webapi/BluetoothPbapRequestHandle.cpp', 'ipc/BluetoothChild.cpp', 'ipc/BluetoothParent.cpp', - 'ipc/BluetoothServiceChildProcess.cpp', + 'ipc/BluetoothServiceChildProcess.cpp' ] LOCAL_INCLUDES += [ 'common', - 'ipc', + 'common/webapi', + 'ipc' ] # @@ -129,26 +130,26 @@ EXPORTS.mozilla.dom.bluetooth.ipc += [ 'ipc/BluetoothMessageUtils.h', ] EXPORTS.mozilla.dom.bluetooth += [ - 'common/BluetoothAdapter.h', - 'common/BluetoothClassOfDevice.h', 'common/BluetoothCommon.h', - 'common/BluetoothDevice.h', - 'common/BluetoothDiscoveryHandle.h', - 'common/BluetoothGatt.h', - 'common/BluetoothGattCharacteristic.h', - 'common/BluetoothGattDescriptor.h', - 'common/BluetoothGattServer.h', - 'common/BluetoothGattService.h', - 'common/BluetoothLeDeviceEvent.h', - 'common/BluetoothManager.h', - 'common/BluetoothPairingHandle.h', - 'common/BluetoothPairingListener.h', - 'common/BluetoothPbapRequestHandle.h', + 'common/webapi/BluetoothAdapter.h', + 'common/webapi/BluetoothClassOfDevice.h', + 'common/webapi/BluetoothDevice.h', + 'common/webapi/BluetoothDiscoveryHandle.h', + 'common/webapi/BluetoothGatt.h', + 'common/webapi/BluetoothGattCharacteristic.h', + 'common/webapi/BluetoothGattDescriptor.h', + 'common/webapi/BluetoothGattServer.h', + 'common/webapi/BluetoothGattService.h', + 'common/webapi/BluetoothLeDeviceEvent.h', + 'common/webapi/BluetoothManager.h', + 'common/webapi/BluetoothPairingHandle.h', + 'common/webapi/BluetoothPairingListener.h', + 'common/webapi/BluetoothPbapRequestHandle.h' ] IPDL_SOURCES += [ 'ipc/BluetoothTypes.ipdlh', 'ipc/PBluetooth.ipdl', - 'ipc/PBluetoothRequest.ipdl', + 'ipc/PBluetoothRequest.ipdl' ] FAIL_ON_WARNINGS = True @@ -156,7 +157,7 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '../base', '../network', - '../system/gonk', + '../system/gonk' ] include('/ipc/chromium/chromium-config.mozbuild') diff --git a/dom/ipc/moz.build b/dom/ipc/moz.build index 0ac8a949630d..cfc0b2763d89 100644 --- a/dom/ipc/moz.build +++ b/dom/ipc/moz.build @@ -128,7 +128,6 @@ LOCAL_INCLUDES += [ '/chrome', '/docshell/base', '/dom/base', - '/dom/bluetooth', '/dom/bluetooth/common', '/dom/bluetooth/ipc', '/dom/devicestorage', diff --git a/dom/system/gonk/moz.build b/dom/system/gonk/moz.build index a5871d1b144d..55705325bec3 100644 --- a/dom/system/gonk/moz.build +++ b/dom/system/gonk/moz.build @@ -119,7 +119,6 @@ include('/ipc/chromium/chromium-config.mozbuild') LOCAL_INCLUDES += [ '/dom/base', - '/dom/bluetooth', '/dom/bluetooth/common', '/dom/geolocation', '/dom/wifi', diff --git a/js/xpconnect/src/moz.build b/js/xpconnect/src/moz.build index d0e4d7db8884..399da1ddbcd3 100644 --- a/js/xpconnect/src/moz.build +++ b/js/xpconnect/src/moz.build @@ -72,6 +72,5 @@ LOCAL_INCLUDES += [ if CONFIG['MOZ_B2G_BT']: LOCAL_INCLUDES += [ - '/dom/bluetooth', '/dom/bluetooth/common', ] diff --git a/layout/build/moz.build b/layout/build/moz.build index 4805cd5fbca6..ca320d21b91c 100644 --- a/layout/build/moz.build +++ b/layout/build/moz.build @@ -106,7 +106,6 @@ if CONFIG['MOZ_B2G_FM']: if CONFIG['MOZ_B2G_BT']: LOCAL_INCLUDES += [ - '/dom/bluetooth', '/dom/bluetooth/common', ] From a5323beb29dacd9e3fd80be89132237407e83113 Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Fri, 21 Aug 2015 16:49:51 +0800 Subject: [PATCH 07/12] Bug 1193379 - Touch clobber for file relocation. r=joliu --- CLOBBER | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CLOBBER b/CLOBBER index bfe96ef82ffa..13c625b9c9a0 100644 --- a/CLOBBER +++ b/CLOBBER @@ -22,5 +22,4 @@ # changes to stick? As of bug 928195, this shouldn't be necessary! Please # don't change CLOBBER for WebIDL changes any more. -Bug 1195388 - Moving location of generated R.java files requires a -clobber. \ No newline at end of file +Bug 1193379 - Moving location of files under dom/bluetooth requires a clobber From e63f8dd3e4e11193c2b315b9b9e24fbe29256e43 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Thu, 27 Aug 2015 16:55:33 -0400 Subject: [PATCH 08/12] Bug 1197739 - Do not change focus too early unless the frame is selectable. r=roc Split |ChangeFocus| into two separate functions: |GetFocusableFrame| and |ChangeFocusToOrClearOldFocus|. We should only change the focus to the focusable frame until AccessibleCaretManager is going to: 1) Dispatch CaretStateChangedEvent on an empty editable field. 2) Select a word on a selectable frame. --HG-- extra : transplant_source : %C9v%F6%9B%EE%85y%9B0%AD8%CB%1B%E1%22%98%DE%D5%B9e --- layout/base/AccessibleCaretManager.cpp | 45 ++++++++++++++++---------- layout/base/AccessibleCaretManager.h | 8 +++-- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/layout/base/AccessibleCaretManager.cpp b/layout/base/AccessibleCaretManager.cpp index 94c4a83af462..1f50d6716ce9 100644 --- a/layout/base/AccessibleCaretManager.cpp +++ b/layout/base/AccessibleCaretManager.cpp @@ -335,20 +335,21 @@ AccessibleCaretManager::SelectWordOrShortcut(const nsPoint& aPoint) return NS_ERROR_FAILURE; } - nsIFrame* focusedFrame = ChangeFocus(ptFrame); + nsIFrame* focusableFrame = GetFocusableFrame(ptFrame); #ifdef DEBUG_FRAME_DUMP AC_LOG("%s: Found %s under (%d, %d)", __FUNCTION__, ptFrame->ListTag().get(), aPoint.x, aPoint.y); - AC_LOG("%s: Focused on %s", __FUNCTION__, - focusedFrame ? focusedFrame->ListTag().get() : "no frame"); + AC_LOG("%s: Found %s focusable", __FUNCTION__, + focusableFrame ? focusableFrame->ListTag().get() : "no frame"); #endif // Firstly check long press on an empty editable content. Element* newFocusEditingHost = ptFrame->GetContent()->GetEditingHost(); - if (focusedFrame && newFocusEditingHost && + if (focusableFrame && newFocusEditingHost && !nsContentUtils::HasNonEmptyTextContent( newFocusEditingHost, nsContentUtils::eRecurseIntoChildren)) { + ChangeFocusToOrClearOldFocus(focusableFrame); // We need to update carets to get correct information before dispatching // CaretStateChangedEvent. UpdateCarets(); @@ -356,6 +357,21 @@ AccessibleCaretManager::SelectWordOrShortcut(const nsPoint& aPoint) return NS_OK; } + bool selectable = false; + ptFrame->IsSelectable(&selectable, nullptr); + +#ifdef DEBUG_FRAME_DUMP + AC_LOG("%s: %s %s selectable.", __FUNCTION__, ptFrame->ListTag().get(), + selectable ? "is" : "is NOT"); +#endif + + if (!selectable) { + return NS_ERROR_FAILURE; + } + + // ptFrame is selectable. Now change the focus. + ChangeFocusToOrClearOldFocus(focusableFrame); + // Then try select a word under point. nsPoint ptInFrame = aPoint; nsLayoutUtils::TransformPoint(rootFrame, ptFrame, ptInFrame); @@ -508,7 +524,7 @@ AccessibleCaretManager::GetCaretMode() const } nsIFrame* -AccessibleCaretManager::ChangeFocus(nsIFrame* aFrame) const +AccessibleCaretManager::GetFocusableFrame(nsIFrame* aFrame) const { // This implementation is similar to EventStateManager::PostHandleEvent(). // Look for the nearest enclosing focusable frame. @@ -519,14 +535,17 @@ AccessibleCaretManager::ChangeFocus(nsIFrame* aFrame) const } focusableFrame = focusableFrame->GetParent(); } + return focusableFrame; +} - // If a focusable frame is found, move focus to it. Otherwise, clear the old - // focus then re-focus the window. +void +AccessibleCaretManager::ChangeFocusToOrClearOldFocus(nsIFrame* aFrame) const +{ nsFocusManager* fm = nsFocusManager::GetFocusManager(); MOZ_ASSERT(fm); - if (focusableFrame) { - nsIContent* focusableContent = focusableFrame->GetContent(); + if (aFrame) { + nsIContent* focusableContent = aFrame->GetContent(); MOZ_ASSERT(focusableContent, "Focusable frame must have content!"); nsCOMPtr focusableElement = do_QueryInterface(focusableContent); fm->SetFocus(focusableElement, nsIFocusManager::FLAG_BYMOUSE); @@ -537,19 +556,11 @@ AccessibleCaretManager::ChangeFocus(nsIFrame* aFrame) const fm->SetFocusedWindow(win); } } - - return focusableFrame; } nsresult AccessibleCaretManager::SelectWord(nsIFrame* aFrame, const nsPoint& aPoint) const { - bool selectable; - aFrame->IsSelectable(&selectable, nullptr); - if (!selectable) { - return NS_ERROR_FAILURE; - } - SetSelectionDragState(true); nsFrame* frame = static_cast(aFrame); nsresult rs = frame->SelectByTypeAtPoint(mPresShell->GetPresContext(), aPoint, diff --git a/layout/base/AccessibleCaretManager.h b/layout/base/AccessibleCaretManager.h index 55c661a86c27..94e477392aed 100644 --- a/layout/base/AccessibleCaretManager.h +++ b/layout/base/AccessibleCaretManager.h @@ -115,9 +115,13 @@ protected: void UpdateCaretsForSelectionMode(); void UpdateCaretsForTilt(); - // Change focus to the nearest enclosing focusable frame of aFrame. + // Get the nearest enclosing focusable frame of aFrame. // @return focusable frame if there is any; nullptr otherwise. - nsIFrame* ChangeFocus(nsIFrame* aFrame) const; + nsIFrame* GetFocusableFrame(nsIFrame* aFrame) const; + + // Change focus to aFrame if it isn't nullptr. Otherwise, clear the old focus + // then re-focus the window. + void ChangeFocusToOrClearOldFocus(nsIFrame* aFrame) const; nsresult SelectWord(nsIFrame* aFrame, const nsPoint& aPoint) const; void SetSelectionDragState(bool aState) const; From 083eb6ab82f366e54ed3ff015997d13a1d230765 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Fri, 28 Aug 2015 09:31:45 -0400 Subject: [PATCH 09/12] Bug 1181261 - Re-add testing/config/mozharness/b2g_emulator_config.py to unblock emulator-kk test effort, DONTBUILD, r=me Test jobs scheduled through taskcluster do not use the in-tree mozharness config. When bug 1181261 landed, it broke an effort to get tests running on emulator-kk builds. These are not live yet, so the error wasn't caught. Bug 1188330 tracks getting test jobs to use the in-tree mozharness, but until that happens, re-adding the config file will get them on their way again quicker. --HG-- extra : commitid : BxXDZl6P0Lo extra : rebase_source : c4558cd04789f4b410990e2bed205625b805abd9 --- .../config/mozharness/b2g_emulator_config.py | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 testing/config/mozharness/b2g_emulator_config.py diff --git a/testing/config/mozharness/b2g_emulator_config.py b/testing/config/mozharness/b2g_emulator_config.py new file mode 100644 index 000000000000..89edfa600209 --- /dev/null +++ b/testing/config/mozharness/b2g_emulator_config.py @@ -0,0 +1,148 @@ +# 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/. + +# XXX Bug 1181261 - Please update config in testing/mozharness/config +# instead. This file is still needed for mulet mochitests, but should +# be removed once bug 1188330 is finished. + +config = { + "suite_definitions": { + "cppunittest": { + "options": [ + "--dm_trans=adb", + "--symbols-path=%(symbols_path)s", + "--xre-path=%(xre_path)s", + "--addEnv", + "LD_LIBRARY_PATH=/vendor/lib:/system/lib:/system/b2g", + "--with-b2g-emulator=%(b2gpath)s", + "." + ], + "run_filename": "remotecppunittests.py", + "testsdir": "cppunittest" + }, + "crashtest": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--emulator-res=800x1000", + "--logdir=%(logcat_dir)s", + "--remote-webserver=%(remote_webserver)s", + "--ignore-window-size", + "--xre-path=%(xre_path)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "tests/testing/crashtest/crashtests.list" + ], + "run_filename": "runreftestb2g.py", + "testsdir": "reftest" + }, + "jsreftest": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--emulator-res=800x1000", + "--logdir=%(logcat_dir)s", + "--remote-webserver=%(remote_webserver)s", + "--ignore-window-size", + "--xre-path=%(xre_path)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "--extra-profile-file=jsreftest/tests/user.js", + "jsreftest/tests/jstests.list" + ], + "run_filename": "remotereftest.py", + "testsdir": "reftest" + }, + "mochitest": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--logdir=%(logcat_dir)s", + "--remote-webserver=%(remote_webserver)s", + "--xre-path=%(xre_path)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "--quiet", + "--log-raw=%(raw_log_file)s", + "--log-errorsummary=%(error_summary_file)s", + "--certificate-path=%(certificate_path)s", + "--screenshot-on-fail", + "%(test_path)s" + ], + "run_filename": "runtestsb2g.py", + "testsdir": "mochitest" + }, + "mochitest-chrome": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--logdir=%(logcat_dir)s", + "--remote-webserver=%(remote_webserver)s", + "--xre-path=%(xre_path)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "--quiet", + "--chrome", + "--log-raw=%(raw_log_file)s", + "--log-errorsummary=%(error_summary_file)s", + "--certificate-path=%(certificate_path)s", + "--screenshot-on-fail", + "%(test_path)s" + ], + "run_filename": "runtestsb2g.py", + "testsdir": "mochitest" + }, + "reftest": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--emulator-res=800x1000", + "--logdir=%(logcat_dir)s", + "--remote-webserver=%(remote_webserver)s", + "--ignore-window-size", + "--xre-path=%(xre_path)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "--enable-oop", + "tests/layout/reftests/reftest.list" + ], + "run_filename": "runreftestsb2g.py", + "testsdir": "reftest" + }, + "xpcshell": { + "options": [ + "--adbpath=%(adbpath)s", + "--b2gpath=%(b2gpath)s", + "--emulator=%(emulator)s", + "--logdir=%(logcat_dir)s", + "--manifest=tests/xpcshell.ini", + "--use-device-libs", + "--testing-modules-dir=%(modules_dir)s", + "--symbols-path=%(symbols_path)s", + "--busybox=%(busybox)s", + "--total-chunks=%(total_chunks)s", + "--this-chunk=%(this_chunk)s", + "--log-raw=%(raw_log_file)s", + "--log-errorsummary=%(error_summary_file)s", + ], + "run_filename": "runtestsb2g.py", + "testsdir": "xpcshell" + } + } +} From 2b2d61fc34a63ffa3da93ee55d46c425a59f13b6 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Wed, 26 Aug 2015 10:52:05 -0400 Subject: [PATCH 10/12] Bug 1198728 - Stop scheduling gaia-ui-tests (Gip) on b2g_desktop across all branches, r=garndt --HG-- extra : commitid : BLdi3vhMG96 extra : rebase_source : 09d4dd4a0ca27e80b34544c292f1e042244880b8 --- .../tasks/branches/alder/job_flags.yml | 15 ------- .../tasks/branches/base_job_flags.yml | 2 - .../taskcluster/tasks/branches/base_jobs.yml | 14 ------ .../tasks/branches/cedar/job_flags.yml | 17 ------- .../tasks/branches/try/job_flags.yml | 18 -------- .../tests/b2g_gaia_ui_test_accessibility.yml | 41 ----------------- .../tests/b2g_gaia_ui_test_functional.yml | 45 ------------------- .../tasks/tests/b2g_gaia_ui_test_unit.yml | 41 ----------------- .../taskcluster/tasks/tests/b2g_gip_oop.yml | 38 ---------------- 9 files changed, 231 deletions(-) delete mode 100644 testing/taskcluster/tasks/tests/b2g_gaia_ui_test_accessibility.yml delete mode 100644 testing/taskcluster/tasks/tests/b2g_gaia_ui_test_functional.yml delete mode 100644 testing/taskcluster/tasks/tests/b2g_gaia_ui_test_unit.yml delete mode 100644 testing/taskcluster/tasks/tests/b2g_gip_oop.yml diff --git a/testing/taskcluster/tasks/branches/alder/job_flags.yml b/testing/taskcluster/tasks/branches/alder/job_flags.yml index 124453d451b5..116c8d0f06de 100644 --- a/testing/taskcluster/tasks/branches/alder/job_flags.yml +++ b/testing/taskcluster/tasks/branches/alder/job_flags.yml @@ -39,21 +39,6 @@ tests: allowed_build_tasks: tasks/builds/b2g_desktop_opt.yml: task: tasks/tests/b2g_linter.yml - gaia-ui-test-accessibility: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml - tasks/builds/b2g_emulator.yml: - task: tasks/tests/b2g_emulator_gaia_ui_test_accessibility.yml - gaia-ui-test-functional: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml - chunks: 3 - gaia-ui-test-unit: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml gaia-unit: allowed_build_tasks: tasks/builds/b2g_desktop_opt.yml: diff --git a/testing/taskcluster/tasks/branches/base_job_flags.yml b/testing/taskcluster/tasks/branches/base_job_flags.yml index bfee8a86f462..36a0d8df780c 100644 --- a/testing/taskcluster/tasks/branches/base_job_flags.yml +++ b/testing/taskcluster/tasks/branches/base_job_flags.yml @@ -42,8 +42,6 @@ flags: - gaia-unit - gaia-unit-oop - gaia-ui-test-sanity - - gaia-ui-test-oop - - gaia-ui-test-accessibility - gaia-ui-test-functional - gaia-ui-test-functional-dsds - gaia-ui-test-unit diff --git a/testing/taskcluster/tasks/branches/base_jobs.yml b/testing/taskcluster/tasks/branches/base_jobs.yml index f76fbafcb6a4..a44c633e3194 100644 --- a/testing/taskcluster/tasks/branches/base_jobs.yml +++ b/testing/taskcluster/tasks/branches/base_jobs.yml @@ -122,18 +122,8 @@ tests: task: tasks/tests/b2g_linter.yml tasks/builds/mulet_linux.yml: task: tasks/tests/mulet_linter.yml - gaia-ui-test-accessibility: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml gaia-ui-test-functional: allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml tasks/builds/b2g_flame_kk_eng.yml: task: tasks/tests/flame_kk_gaia_ui_test_functional.yml gaia-ui-test-functional-dsds: @@ -146,10 +136,6 @@ tests: task: tasks/tests/flame_kk_gaia_ui_test_sanity.yml gaia-ui-test-unit: allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml tasks/builds/b2g_flame_kk_eng.yml: task: tasks/tests/flame_kk_gaia_ui_test_unit.yml gaia-unit: diff --git a/testing/taskcluster/tasks/branches/cedar/job_flags.yml b/testing/taskcluster/tasks/branches/cedar/job_flags.yml index c361b8e7d721..b0c98d0d14ef 100644 --- a/testing/taskcluster/tasks/branches/cedar/job_flags.yml +++ b/testing/taskcluster/tasks/branches/cedar/job_flags.yml @@ -84,23 +84,6 @@ tests: allowed_build_tasks: tasks/builds/b2g_desktop_opt.yml: task: tasks/tests/b2g_gaia_unit.yml - gaia-ui-test-accessibility: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml - gaia-ui-test-functional: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml - chunks: 3 - gaia-ui-test-unit: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml - gaia-ui-test-oop: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gip_oop.yml jsreftest: allowed_build_tasks: tasks/builds/b2g_emulator_ics_opt.yml: diff --git a/testing/taskcluster/tasks/branches/try/job_flags.yml b/testing/taskcluster/tasks/branches/try/job_flags.yml index b91a6937f857..7f6765eaa105 100644 --- a/testing/taskcluster/tasks/branches/try/job_flags.yml +++ b/testing/taskcluster/tasks/branches/try/job_flags.yml @@ -231,24 +231,6 @@ tests: task: tasks/tests/b2g_linter.yml tasks/builds/mulet_linux.yml: task: tasks/tests/mulet_linter.yml - gaia-ui-test-accessibility: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_accessibility.yml - gaia-ui-test-functional: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_functional.yml - gaia-ui-test-unit: - allowed_build_tasks: - tasks/builds/b2g_desktop_opt.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml - tasks/builds/b2g_desktop_debug.yml: - task: tasks/tests/b2g_gaia_ui_test_unit.yml gaia-unit: allowed_build_tasks: tasks/builds/b2g_desktop_opt.yml: diff --git a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_accessibility.yml b/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_accessibility.yml deleted file mode 100644 index 35cf88de32de..000000000000 --- a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_accessibility.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -$inherits: - from: 'tasks/test.yml' -task: - metadata: - name: '[TC] - Gaia Python Accessibility Integration Tests' - description: Gaia Python Accessibility Integration Tests run {{chunk}} - - payload: - command: - - entrypoint # entrypoint ensures we are running in xvfb - - ./bin/pull_gaia.sh && - - > - python ./mozharness/scripts/marionette.py - --no-read-buildbot-config - --config-file marionette/gaia_ui_test_prod_config.py - --config-file ./mozharness_configs/gaia_integration_override.py - --config-file ./mozharness_configs/remove_executables.py - --no-pull - --installer-url {{build_url}} - --test-packages-url {{test_packages_url}} - --download-symbols ondemand - --gip-suite accessibility - --gaia-repo https://hg.mozilla.org/integration/gaia-central - --gaia-dir /home/worker - --xre-url https://queue.taskcluster.net/v1/task/wXAHAaxDQpqxoWF1iljJjg/runs/0/artifacts/public/cache/xulrunner-sdk-40.zip - artifacts: - 'public/build': - type: directory - path: '/home/worker/artifacts/' - expires: '{{#from_now}}1 year{{/from_now}}' - - extra: - treeherderEnv: - - production - - staging - treeherder: - groupName: Gaia Python Integration Tests - groupSymbol: Gip - symbol: 'a' - productName: b2g diff --git a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_functional.yml b/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_functional.yml deleted file mode 100644 index c566102cee36..000000000000 --- a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_functional.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -$inherits: - from: 'tasks/test.yml' -task: - metadata: - name: '[TC] - Gaia Python Functional Integration Tests' - description: Gaia Python Functional Integration Tests run {{chunk}} - - payload: - command: - - entrypoint # entrypoint ensures we are running in xvfb - - ./bin/pull_gaia.sh && - - > - python ./mozharness/scripts/marionette.py - --no-read-buildbot-config - --config-file marionette/gaia_ui_test_prod_config.py - --config-file ./mozharness_configs/gaia_integration_override.py - --config-file ./mozharness_configs/remove_executables.py - --no-pull - --installer-url {{build_url}} - --test-packages-url {{test_packages_url}} - --download-symbols ondemand - --gip-suite functional - --total-chunk {{total_chunks}} - --this-chunk {{chunk}} - --gaia-repo https://hg.mozilla.org/integration/gaia-central - --gaia-dir /home/worker - --xre-url https://queue.taskcluster.net/v1/task/wXAHAaxDQpqxoWF1iljJjg/runs/0/artifacts/public/cache/xulrunner-sdk-40.zip - artifacts: - 'public/build': - type: directory - path: '/home/worker/artifacts/' - expires: '{{#from_now}}1 year{{/from_now}}' - - extra: - chunks: - total: 15 - treeherderEnv: - - production - - staging - treeherder: - groupName: Gaia Python Integration Tests - groupSymbol: Gip - symbol: 'f{{chunk}}' - productName: b2g diff --git a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_unit.yml b/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_unit.yml deleted file mode 100644 index bb060244af70..000000000000 --- a/testing/taskcluster/tasks/tests/b2g_gaia_ui_test_unit.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -$inherits: - from: 'tasks/test.yml' -task: - metadata: - name: '[TC] - Gaia Python Integration Unit Tests' - description: Gaia Python Integration Unit Tests run {{chunk}} - - payload: - command: - - entrypoint # entrypoint ensures we are running in xvfb - - ./bin/pull_gaia.sh && - - > - python ./mozharness/scripts/marionette.py - --no-read-buildbot-config - --config-file marionette/gaia_ui_test_prod_config.py - --config-file ./mozharness_configs/gaia_integration_override.py - --config-file ./mozharness_configs/remove_executables.py - --installer-url {{build_url}} - --no-pull - --test-packages-url {{test_packages_url}} - --download-symbols ondemand - --gip-suite unit - --gaia-repo https://hg.mozilla.org/integration/gaia-central - --gaia-dir /home/worker - --xre-url https://queue.taskcluster.net/v1/task/wXAHAaxDQpqxoWF1iljJjg/runs/0/artifacts/public/cache/xulrunner-sdk-40.zip - artifacts: - 'public/build': - type: directory - path: '/home/worker/artifacts/' - expires: '{{#from_now}}1 year{{/from_now}}' - - extra: - treeherderEnv: - - production - - staging - treeherder: - groupName: Gaia Python Integration Tests - groupSymbol: Gip - symbol: 'u' - productName: b2g diff --git a/testing/taskcluster/tasks/tests/b2g_gip_oop.yml b/testing/taskcluster/tasks/tests/b2g_gip_oop.yml deleted file mode 100644 index c3e5cfd1090b..000000000000 --- a/testing/taskcluster/tasks/tests/b2g_gip_oop.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -$inherits: - from: 'tasks/test.yml' -task: - metadata: - name: '[TC] Gaia Python Integration Tests OOP' - description: Gaia Python Functional Integration Tests OOP test run - - payload: - command: - - entrypoint # entrypoint ensures we are running in xvfb - - ./bin/pull_gaia.sh && - - > - python ./mozharness/scripts/marionette.py - --no-read-buildbot-config - --config-file marionette/gaia_ui_test_prod_config.py - --config-file ./mozharness_configs/gaia_integration_override.py - --config-file ./mozharness_configs/remove_executables.py - --no-pull - --app-arg -oop - --installer-url {{build_url}} - --test-packages-url {{test_packages_url}} - --download-symbols ondemand - --gaia-repo https://hg.mozilla.org/integration/gaia-central - --gaia-dir /home/worker - --xre-url https://queue.taskcluster.net/v1/task/wXAHAaxDQpqxoWF1iljJjg/runs/0/artifacts/public/cache/xulrunner-sdk-40.zip - artifacts: - 'public/build': - type: directory - path: '/home/worker/artifacts/' - expires: '{{#from_now}}1 year{{/from_now}}' - - extra: - treeherder: - groupName: Gaia Python Integration Tests OOP - groupSymbol: tc-Gip-oop - symbol: 'Gip-oop' - productName: b2g From 5c663e91908b8e0d2b9017ff177f7b5fc5962dfb Mon Sep 17 00:00:00 2001 From: B2G Bumper Bot Date: Fri, 28 Aug 2015 09:01:38 -0700 Subject: [PATCH 11/12] Bumping gaia.json for 1 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/6eaf499cb32b Author: Ryan VanderMeulen Desc: Revert "Merge pull request #31363 from mikehenrty/bug-1168955-preview-site" This reverts commit fa15462b29258fdec8329bfc367e590022dbc9e5, reversing changes made to 5b75e1620ed11529945f3585efeb4a42106bfac6. --- b2g/config/gaia.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2g/config/gaia.json b/b2g/config/gaia.json index a12fbac5c971..21adcbac6db6 100644 --- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,9 +1,9 @@ { "git": { - "git_revision": "9cad0f6b5e42cb79927dff937fbd6ca510a1cbe0", + "git_revision": "7a77326ef8b14ddef4d101efc336d7b26670ef94", "remote": "https://git.mozilla.org/releases/gaia.git", "branch": "" }, - "revision": "78e928de90f92202a83f924bac1d37c17929645f", + "revision": "6eaf499cb32bdf152ff5bf9f607e896a08b14f9c", "repo_path": "integration/gaia-central" } From ac1c208164138987feddd00411271d227a880655 Mon Sep 17 00:00:00 2001 From: B2G Bumper Bot Date: Fri, 28 Aug 2015 09:06:42 -0700 Subject: [PATCH 12/12] Bumping manifests a=b2g-bump --- b2g/config/aries/sources.xml | 2 +- b2g/config/dolphin/sources.xml | 2 +- b2g/config/emulator-ics/sources.xml | 2 +- b2g/config/emulator-jb/sources.xml | 2 +- b2g/config/emulator-kk/sources.xml | 2 +- b2g/config/emulator-l/sources.xml | 2 +- b2g/config/emulator/sources.xml | 2 +- b2g/config/flame-kk/sources.xml | 2 +- b2g/config/nexus-4/sources.xml | 2 +- b2g/config/nexus-5-l/sources.xml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/b2g/config/aries/sources.xml b/b2g/config/aries/sources.xml index 3aff483fad72..33067f1e7631 100644 --- a/b2g/config/aries/sources.xml +++ b/b2g/config/aries/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/dolphin/sources.xml b/b2g/config/dolphin/sources.xml index 95829def9632..37bed501a9f9 100644 --- a/b2g/config/dolphin/sources.xml +++ b/b2g/config/dolphin/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator-ics/sources.xml b/b2g/config/emulator-ics/sources.xml index a4cada1bffdd..57f6b758beb4 100644 --- a/b2g/config/emulator-ics/sources.xml +++ b/b2g/config/emulator-ics/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/emulator-jb/sources.xml b/b2g/config/emulator-jb/sources.xml index a43291a940e2..e3caafecf8c4 100644 --- a/b2g/config/emulator-jb/sources.xml +++ b/b2g/config/emulator-jb/sources.xml @@ -17,7 +17,7 @@ - + diff --git a/b2g/config/emulator-kk/sources.xml b/b2g/config/emulator-kk/sources.xml index 36f67028389b..a73d7c86e419 100644 --- a/b2g/config/emulator-kk/sources.xml +++ b/b2g/config/emulator-kk/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator-l/sources.xml b/b2g/config/emulator-l/sources.xml index e9b611d3d204..4a63d330850c 100644 --- a/b2g/config/emulator-l/sources.xml +++ b/b2g/config/emulator-l/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/emulator/sources.xml b/b2g/config/emulator/sources.xml index a4cada1bffdd..57f6b758beb4 100644 --- a/b2g/config/emulator/sources.xml +++ b/b2g/config/emulator/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/flame-kk/sources.xml b/b2g/config/flame-kk/sources.xml index 79e640ba9ddc..8ef038794642 100644 --- a/b2g/config/flame-kk/sources.xml +++ b/b2g/config/flame-kk/sources.xml @@ -15,7 +15,7 @@ - + diff --git a/b2g/config/nexus-4/sources.xml b/b2g/config/nexus-4/sources.xml index cf769858092b..8663930d2ff0 100644 --- a/b2g/config/nexus-4/sources.xml +++ b/b2g/config/nexus-4/sources.xml @@ -17,7 +17,7 @@ - + diff --git a/b2g/config/nexus-5-l/sources.xml b/b2g/config/nexus-5-l/sources.xml index 798979ad771a..7037872e3065 100644 --- a/b2g/config/nexus-5-l/sources.xml +++ b/b2g/config/nexus-5-l/sources.xml @@ -15,7 +15,7 @@ - +