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

Issue 1258783009: Add functionality to Bluetooth settings UI. (Closed)

Created:
5 years, 4 months ago by rfrappier
Modified:
5 years, 4 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add functionality to Bluetooth settings UI. * Sync loaded bluetooth devices on startup * Sync new bluetooth devices after added by the system or another emulator client. * Allow new bluetooth devices to require a pin or passkey when pairing. BUG=514290 R=oshima@chromium.org Committed: https://crrev.com/236c32161b4b455e8c75d8e4e25d0e1f529ec187 Cr-Commit-Position: refs/heads/master@{#341537}

Patch Set 1 #

Total comments: 94

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Total comments: 39

Patch Set 4 : #

Total comments: 19

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : Merge changes from new patch #

Total comments: 23

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+687 lines, -255 lines) Patch
M chrome/browser/resources/chromeos/emulator/bluetooth_settings.css View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/bluetooth_settings.html View 1 2 3 4 5 6 7 8 1 chunk +62 lines, -75 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/bluetooth_settings.js View 1 2 3 4 5 6 7 8 6 chunks +109 lines, -16 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/device_emulator.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h View 1 2 3 4 5 6 7 8 3 chunks +43 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc View 1 2 3 4 5 6 7 8 5 chunks +191 lines, -28 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 1 2 3 4 5 6 7 8 4 chunks +37 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 19 chunks +237 lines, -119 lines 0 comments Download

Messages

Total messages: 38 (6 generated)
rfrappier
Ready for review. michaelpg@, can you review the files related to the Web UI stuff? ...
5 years, 4 months ago (2015-07-30 01:12:35 UTC) #2
rfrappier
xiyuan@, since michaelpg@ is OOO until Monday, would you mind reviewing the stuff related to ...
5 years, 4 months ago (2015-07-30 15:42:14 UTC) #4
xiyuan
I am not familiar with fake_bluetooth_device_client.cc. armansito@ might want to give it a pass. https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html ...
5 years, 4 months ago (2015-07-30 17:21:22 UTC) #6
stevenjb
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode54 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:54: * @type !Array<! { text: string, value: int }} ...
5 years, 4 months ago (2015-07-30 18:28:52 UTC) #7
xiyuan
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode83 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:83: value: function() { return []; } On 2015/07/30 18:28:51, ...
5 years, 4 months ago (2015-07-30 18:33:57 UTC) #8
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html File chrome/browser/resources/chromeos/emulator/bluetooth_settings.html (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html#newcode14 chrome/browser/resources/chromeos/emulator/bluetooth_settings.html:14: <label> On 2015/07/30 17:21:21, xiyuan wrote: ...
5 years, 4 months ago (2015-07-30 22:21:39 UTC) #10
xiyuan
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode100 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:100: device_list = []; On 2015/07/30 22:21:38, rfrappier wrote: > ...
5 years, 4 months ago (2015-07-30 23:30:37 UTC) #11
rfrappier
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode100 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:100: device_list = []; On 2015/07/30 23:30:37, xiyuan wrote: > ...
5 years, 4 months ago (2015-07-31 00:56:00 UTC) #12
rfrappier
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode152 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:152: getTextForDeviceClass: function(classValue) { On 2015/07/30 23:30:37, xiyuan wrote: > ...
5 years, 4 months ago (2015-07-31 01:09:53 UTC) #13
xiyuan
https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode152 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:152: getTextForDeviceClass: function(classValue) { On 2015/07/31 00:55:59, rfrappier wrote: > ...
5 years, 4 months ago (2015-07-31 02:00:00 UTC) #14
rfrappier
On 2015/07/31 02:00:00, xiyuan wrote: > https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js > File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): > > https://codereview.chromium.org/1258783009/diff/1/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode152 > ...
5 years, 4 months ago (2015-07-31 14:43:07 UTC) #15
oshima
https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode115 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:115: this.getTextForDeviceClass(devices[i]['classValue']); just assign to devices[i].class https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode179 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:179: this.splice('devices', foundIndex, ...
5 years, 4 months ago (2015-07-31 14:54:56 UTC) #16
xiyuan
On 2015/07/31 14:43:07, rfrappier wrote: > So I should just add the device class options ...
5 years, 4 months ago (2015-07-31 15:42:51 UTC) #17
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode115 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:115: this.getTextForDeviceClass(devices[i]['classValue']); On 2015/07/31 14:54:55, oshima wrote: ...
5 years, 4 months ago (2015-07-31 15:45:10 UTC) #18
rfrappier
https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode115 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:115: this.getTextForDeviceClass(devices[i]['classValue']); On 2015/07/31 15:45:09, rfrappier wrote: > On 2015/07/31 ...
5 years, 4 months ago (2015-07-31 15:47:34 UTC) #19
xiyuan
Mostly good. https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode17 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:17: this.classValue = 0; class 'Computer' value is ...
5 years, 4 months ago (2015-07-31 15:51:39 UTC) #20
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode17 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:17: this.classValue = 0; On 2015/07/31 15:51:38, ...
5 years, 4 months ago (2015-07-31 16:38:53 UTC) #21
oshima
https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode276 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:276: CHECK(device_dict->GetBoolean("isTrusted", &props.is_trusted)); On 2015/07/31 16:38:53, rfrappier wrote: > On ...
5 years, 4 months ago (2015-07-31 16:41:06 UTC) #22
oshima
https://codereview.chromium.org/1258783009/diff/100001/chromeos/dbus/fake_bluetooth_device_client.cc File chromeos/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/1258783009/diff/100001/chromeos/dbus/fake_bluetooth_device_client.cc#newcode57 chromeos/dbus/fake_bluetooth_device_client.cc:57: const int kSimulatedPairTimeMultiplierThree = 3; can you give more ...
5 years, 4 months ago (2015-07-31 16:46:10 UTC) #23
stevenjb
This is looking much better, thanks for doing the re-factoring. In particular, thanks for the ...
5 years, 4 months ago (2015-07-31 16:49:34 UTC) #24
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1258783009/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode276 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:276: CHECK(device_dict->GetBoolean("isTrusted", &props.is_trusted)); On 2015/07/31 16:41:06, oshima ...
5 years, 4 months ago (2015-07-31 19:52:06 UTC) #25
xiyuan
LGTM but please wait for stevenjb@ and oshima@. https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode101 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:101: return ...
5 years, 4 months ago (2015-07-31 20:09:48 UTC) #26
oshima
lgtm my bits with nits. please wait for stevenjb@. https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h (right): https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h#newcode83 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h:83: ...
5 years, 4 months ago (2015-07-31 21:33:58 UTC) #27
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js (right): https://codereview.chromium.org/1258783009/diff/120001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js#newcode101 chrome/browser/resources/chromeos/emulator/bluetooth_settings.js:101: return pairMethod != 'None' && pairMethod ...
5 years, 4 months ago (2015-07-31 22:43:03 UTC) #28
rfrappier
Ready for review once again (merged changes from a new patch).
5 years, 4 months ago (2015-08-01 00:08:15 UTC) #29
armansito
lgtm with nits https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h (right): https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h#newcode18 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h:18: } nit: } // namespace dbus ...
5 years, 4 months ago (2015-08-01 04:53:20 UTC) #30
stevenjb
https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html File chrome/browser/resources/chromeos/emulator/bluetooth_settings.html (right): https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html#newcode15 chrome/browser/resources/chromeos/emulator/bluetooth_settings.html:15: <template is="dom-repeat" items="{{devices}}"> [[ ]] ? https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.js File chrome/browser/resources/chromeos/emulator/bluetooth_settings.js ...
5 years, 4 months ago (2015-08-03 15:02:58 UTC) #31
rfrappier
Ready for review. https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html File chrome/browser/resources/chromeos/emulator/bluetooth_settings.html (right): https://codereview.chromium.org/1258783009/diff/150001/chrome/browser/resources/chromeos/emulator/bluetooth_settings.html#newcode15 chrome/browser/resources/chromeos/emulator/bluetooth_settings.html:15: <template is="dom-repeat" items="{{devices}}"> On 2015/08/03 15:02:57, ...
5 years, 4 months ago (2015-08-03 15:43:15 UTC) #32
stevenjb
lgtm https://codereview.chromium.org/1258783009/diff/150001/chromeos/dbus/fake_bluetooth_device_client.h File chromeos/dbus/fake_bluetooth_device_client.h (right): https://codereview.chromium.org/1258783009/diff/150001/chromeos/dbus/fake_bluetooth_device_client.h#newcode51 chromeos/dbus/fake_bluetooth_device_client.h:51: ~IncomingDeviceProperties(); On 2015/08/03 15:43:15, rfrappier wrote: > On ...
5 years, 4 months ago (2015-08-03 15:56:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258783009/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258783009/170001
5 years, 4 months ago (2015-08-03 16:04:34 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:170001)
5 years, 4 months ago (2015-08-03 16:49:19 UTC) #37
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 16:49:43 UTC) #38
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/236c32161b4b455e8c75d8e4e25d0e1f529ec187
Cr-Commit-Position: refs/heads/master@{#341537}

Powered by Google App Engine
This is Rietveld 408576698