Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Issue 9822001: Basic infrastructure for the Bluetooth API. (Closed)

Created:
8 years, 9 months ago by bryeung
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

Basic infrastructure for the Bluetooth API. This CL adds NIY stubs for most methods, just providing a few basic status methods and events. BUG=119336 TEST=Tested manually via a simple extension. Tests will come as the bluetooth stack gains mocks. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128227

Patch Set 1 #

Patch Set 2 : fix non-chromeos builds #

Total comments: 14

Patch Set 3 : review comments #

Patch Set 4 : more review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -0 lines) Patch
A chrome/browser/chromeos/extensions/bluetooth_event_router.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/bluetooth_event_router.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.bluetooth.idl View 1 2 3 1 chunk +112 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
bryeung
Here is a (mostly stub) implementation of the bluetooth api. Can you guys have a ...
8 years, 9 months ago (2012-03-21 20:21:40 UTC) #1
asargent_no_longer_on_chrome
https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode26 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:26: SendResponse(true); Since you can synchronously answer the question on ...
8 years, 9 months ago (2012-03-21 21:19:57 UTC) #2
bryeung
Thanks! I think I've taken care of all of that now. https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): ...
8 years, 9 months ago (2012-03-21 21:34:13 UTC) #3
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode23 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:23: return false; You have a DCHECK for adapter not ...
8 years, 9 months ago (2012-03-21 21:48:52 UTC) #4
asargent_no_longer_on_chrome
> Antony: Is there an IDL equivalent to the "platforms" option in the JSON schema ...
8 years, 9 months ago (2012-03-21 23:49:15 UTC) #5
bryeung
Thanks Mihai: everything addressed I think. https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/9822001/diff/2001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode23 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:23: return false; On ...
8 years, 9 months ago (2012-03-22 00:37:04 UTC) #6
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/9822001/diff/3015/chrome/common/extensions/api/experimental.bluetooth.idl File chrome/common/extensions/api/experimental.bluetooth.idl (right): https://chromiumcodereview.appspot.com/9822001/diff/3015/chrome/common/extensions/api/experimental.bluetooth.idl#newcode6 chrome/common/extensions/api/experimental.bluetooth.idl:6: // TODO(bryeung): mark this API as ChromeOS only ...
8 years, 9 months ago (2012-03-22 15:33:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/9822001/3015
8 years, 9 months ago (2012-03-22 15:38:26 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-03-22 16:38:26 UTC) #9
Change committed as 128227

Powered by Google App Engine
This is Rietveld 408576698