Bluetooth: extend JavaScript Device object
commit802cf8c76c91e877ba9d283eff8bb5d85aca0a5d
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 05:51:19 +0000 (13 05:51 +0000)
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Mar 2014 05:51:19 +0000 (13 05:51 +0000)
tree811e9729c8067488fffad762d5f8a00e65b5857b
parent8395d799b84405be26391ddcbbcf963429179202
Bluetooth: extend JavaScript Device object

The Device object is currently somewhat minimal. Application developers
need additional information about devices in order to make decisions
about whether a specific Device is the correct one to interact with.

Expose information about the device's Bluetooth class, the device type
parsed from that by Chrome and the information from the Device ID
specification if supported by the device.

BUG=350433
TEST=browser_tests --gtest_filter=BluetoothApiTest.DeviceInfo

Review URL: https://codereview.chromium.org/191313004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256765 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
chrome/common/extensions/api/bluetooth.idl
chrome/test/data/extensions/api_test/bluetooth/device_info/manifest.json [new file with mode: 0644]
chrome/test/data/extensions/api_test/bluetooth/device_info/runtest.js [new file with mode: 0644]
chrome/test/data/extensions/api_test/bluetooth/get_profiles/runtest.js
device/bluetooth/test/mock_bluetooth_device.cc