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

Issue 2245603003: Add signal strength indicator icon to WebBluetooth chooser on non-Mac desktops (Closed)

Created:
4 years, 4 months ago by juncai
Modified:
4 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, ortuno+watch_chromium.org, oshima+watch_chromium.org, scheib+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add signal strength indicator icon to WebBluetooth chooser on non-Mac desktops I uploaded a screenshot on the issue page. BUG=629689 Committed: https://crrev.com/3ecef4e6dc7a93987930c1a5a1ad146c3bba58e8 Cr-Commit-Position: refs/heads/master@{#413592}

Patch Set 1 : added signal strength indicator icon to WebBluetooth chooser #

Total comments: 34

Patch Set 2 : address comments #

Patch Set 3 : removed the second template parameter to checked_cast #

Patch Set 4 : removed unused include file #

Total comments: 6

Patch Set 5 : address comments #

Total comments: 2

Patch Set 6 : rebase and added code to update RSSI #

Total comments: 24

Patch Set 7 : address comments #

Total comments: 15

Patch Set 8 : address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -44 lines) Patch
M chrome/browser/chooser_controller/chooser_controller.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chooser_controller/chooser_controller.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 2 3 4 5 6 7 8 chunks +39 lines, -24 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/chooser_content_view.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/chooser_content_view.cc View 1 2 3 4 5 6 7 4 chunks +37 lines, -2 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -2 lines 0 comments Download
A content/browser/bluetooth/bluetooth_device_chooser_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/bluetooth_chooser.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A ui/resources/default_100_percent/common/signal_0_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/signal_1_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/signal_2_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/signal_3_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/signal_4_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/signal_0_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/signal_1_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/signal_2_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/signal_3_bar.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/signal_4_bar.png View 1 Binary file 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 71 (40 generated)
juncai
jyasskin@chromium.org: Please review changes in //chrome/browser/chooser_controller/ //chrome/browser/ui/bluetooth/ //content/browser/bluetooth/ oshima@chromium.org: Please review changes in //ui/resources/ msw@chromium.org: ...
4 years, 4 months ago (2016-08-12 20:25:32 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2245603003/diff/1/chrome/browser/usb/usb_chooser_controller.h File chrome/browser/usb/usb_chooser_controller.h (right): https://codereview.chromium.org/2245603003/diff/1/chrome/browser/usb/usb_chooser_controller.h#newcode47 chrome/browser/usb/usb_chooser_controller.h:47: int GetSignalStrengthLevel(size_t index) const override; ChooserController could be given ...
4 years, 4 months ago (2016-08-12 20:28:16 UTC) #7
msw
https://codereview.chromium.org/2245603003/diff/1/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2245603003/diff/1/chrome/browser/chooser_controller/chooser_controller.h#newcode63 chrome/browser/chooser_controller/chooser_controller.h:63: virtual bool HasIconBeforeText() const = 0; optional nit: ShouldShowIconBeforeText ...
4 years, 4 months ago (2016-08-12 23:08:49 UTC) #10
juncai
https://codereview.chromium.org/2245603003/diff/1/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2245603003/diff/1/chrome/browser/chooser_controller/chooser_controller.h#newcode63 chrome/browser/chooser_controller/chooser_controller.h:63: virtual bool HasIconBeforeText() const = 0; On 2016/08/12 23:08:48, ...
4 years, 4 months ago (2016-08-15 21:53:20 UTC) #17
ortuno
https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode211 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:211: int level = rssi ? CalculateSignalLevel(*rssi) : -1; Is ...
4 years, 4 months ago (2016-08-16 15:39:19 UTC) #21
msw
lgtm with nits. https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/views/chooser_content_view.cc#newcode99 chrome/browser/ui/views/chooser_content_view.cc:99: int num_options = base::checked_cast<int>(chooser_controller_->NumOptions()); nit: Avoid ...
4 years, 4 months ago (2016-08-16 16:51:19 UTC) #22
juncai
https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode211 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:211: int level = rssi ? CalculateSignalLevel(*rssi) : -1; On ...
4 years, 4 months ago (2016-08-16 17:49:52 UTC) #25
oshima
Do these icon have to be png? Looks like it's simple enough to just draw ...
4 years, 4 months ago (2016-08-16 18:35:49 UTC) #28
juncai
On 2016/08/16 18:35:49, oshima wrote: > Do these icon have to be png? Looks like ...
4 years, 4 months ago (2016-08-16 18:47:20 UTC) #29
msw
https://codereview.chromium.org/2245603003/diff/80001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2245603003/diff/80001/chrome/browser/ui/views/chooser_content_view.cc#newcode116 chrome/browser/ui/views/chooser_content_view.cc:116: base::checked_cast<int>(sizeof(strength_bar_ids) / sizeof(int))); nit: use base::checked_cast<int>(arraysize(strength_bar_ids)) see base/macros.h
4 years, 4 months ago (2016-08-16 18:55:13 UTC) #30
juncai
https://codereview.chromium.org/2245603003/diff/80001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2245603003/diff/80001/chrome/browser/ui/views/chooser_content_view.cc#newcode116 chrome/browser/ui/views/chooser_content_view.cc:116: base::checked_cast<int>(sizeof(strength_bar_ids) / sizeof(int))); On 2016/08/16 18:55:13, msw wrote: > ...
4 years, 4 months ago (2016-08-16 19:06:26 UTC) #33
oshima
On 2016/08/16 18:47:20, juncai wrote: > On 2016/08/16 18:35:49, oshima wrote: > > Do these ...
4 years, 4 months ago (2016-08-16 21:56:06 UTC) #34
juncai
On 2016/08/16 21:56:06, oshima wrote: > On 2016/08/16 18:47:20, juncai wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 22:04:10 UTC) #35
oshima
lgtm
4 years, 4 months ago (2016-08-16 23:07:03 UTC) #38
Jeffrey Yasskin
https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/chooser_controller/chooser_controller.h#newcode66 chrome/browser/chooser_controller/chooser_controller.h:66: virtual bool ShouldShowIconBeforeText() const; This should say that it's ...
4 years, 4 months ago (2016-08-19 17:46:55 UTC) #39
ortuno
https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode40 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:40: int CalculateSignalLevel(int8_t rssi) { On 2016/08/19 at 17:46:54, Jeffrey ...
4 years, 4 months ago (2016-08-19 17:58:36 UTC) #40
Jeffrey Yasskin
Also, in the change description, you have "Add signal strength indicator icon to WebBluetooth chooser" ...
4 years, 4 months ago (2016-08-19 18:34:44 UTC) #41
juncai
On 2016/08/19 18:34:44, Jeffrey Yasskin wrote: > Also, in the change description, you have "Add ...
4 years, 4 months ago (2016-08-19 22:59:02 UTC) #45
juncai
https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2245603003/diff/100001/chrome/browser/chooser_controller/chooser_controller.h#newcode66 chrome/browser/chooser_controller/chooser_controller.h:66: virtual bool ShouldShowIconBeforeText() const; On 2016/08/19 17:46:54, Jeffrey Yasskin ...
4 years, 4 months ago (2016-08-19 22:59:17 UTC) #46
ortuno
https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode360 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:360: rssi ? &rssi.value() : nullptr); Would it make sense ...
4 years, 4 months ago (2016-08-19 23:07:24 UTC) #47
juncai
https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode360 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:360: rssi ? &rssi.value() : nullptr); On 2016/08/19 23:07:24, ortuno ...
4 years, 4 months ago (2016-08-19 23:16:23 UTC) #48
juncai
https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/120001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode360 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:360: rssi ? &rssi.value() : nullptr); On 2016/08/19 23:16:23, juncai ...
4 years, 4 months ago (2016-08-19 23:58:43 UTC) #49
Jeffrey Yasskin
https://codereview.chromium.org/2245603003/diff/120001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/120001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode237 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:237: size_t index = device_it - devices_.begin(); I'd just inline ...
4 years, 4 months ago (2016-08-20 00:03:29 UTC) #50
juncai
avi@chromium.org: Please review changes in //content/public/browser/bluetooth_chooser.h https://codereview.chromium.org/2245603003/diff/120001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2245603003/diff/120001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode237 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:237: size_t index = ...
4 years, 4 months ago (2016-08-20 01:17:02 UTC) #56
Avi (use Gerrit)
content/public/browser/bluetooth_chooser.h lgtm
4 years, 4 months ago (2016-08-21 04:34:19 UTC) #59
Jeffrey Yasskin
lgtm
4 years, 4 months ago (2016-08-22 17:17:52 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245603003/140001
4 years, 4 months ago (2016-08-22 17:46:46 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/278282)
4 years, 4 months ago (2016-08-22 22:09:33 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245603003/140001
4 years, 4 months ago (2016-08-22 22:12:56 UTC) #67
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-23 00:11:13 UTC) #69
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 00:14:00 UTC) #71
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3ecef4e6dc7a93987930c1a5a1ad146c3bba58e8
Cr-Commit-Position: refs/heads/master@{#413592}

Powered by Google App Engine
This is Rietveld 408576698