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

Issue 2304213002: Show device connection and paired status in chooser on Mac (Closed)

Created:
4 years, 3 months ago by juncai
Modified:
4 years, 3 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, ortuno+watch_chromium.org, oshima+watch_chromium.org, scheib+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show device connection and paired status in chooser on Mac This CL added code to show an icon for connected device in the chooser, and show "Paired" text below the device name if the device is paired. I uploaded some screenshots in the issue page. BUG=543466 Committed: https://crrev.com/87d092908d6e01e183bb02721ad7add4e4babeb4 Cr-Commit-Position: refs/heads/master@{#418774}

Patch Set 1 : show device connection and paired status in chooser on Mac #

Patch Set 2 : rebase and resolve conflicts #

Patch Set 3 : updated comments #

Patch Set 4 : use vector icons #

Total comments: 26

Patch Set 5 : address comments #

Patch Set 6 : updated variable name #

Total comments: 8

Patch Set 7 : address more comments #

Patch Set 8 : added code to handle text identation #

Total comments: 17

Patch Set 9 : address more comments #

Total comments: 2

Patch Set 10 : added comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+922 lines, -419 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chooser_controller/chooser_controller.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/chooser_controller/chooser_controller.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/chooser_controller/mock_chooser_controller.h View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/chooser_controller/mock_chooser_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/chooser_content_view_cocoa.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm View 1 2 3 4 5 6 7 8 11 chunks +176 lines, -57 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa_controller.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa_controller_unittest.mm View 1 2 3 4 7 chunks +394 lines, -245 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/chooser_content_view_unittest.cc View 1 2 3 4 17 chunks +137 lines, -59 lines 0 comments Download
M chrome/browser/ui/views/extensions/chooser_dialog_view_unittest.cc View 1 2 3 4 10 chunks +82 lines, -36 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/vector_icons/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/vector_icons/bluetooth_connected.icon View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 60 (38 generated)
juncai
jyasskin@chromium.org: Please review changes in //chrome/browser/chooser_controller/ //chrome/browser/ui/bluetooth/ //content/browser/bluetooth/ rsesek@chromium.org: Please review changes in //chrome/browser/ui/cocoa/ oshima@chromium.org: ...
4 years, 3 months ago (2016-09-02 21:20:23 UTC) #8
msw
c/b/ui/views lgtm
4 years, 3 months ago (2016-09-06 19:25:56 UTC) #11
oshima
+estade@, tdanderson@ so should we use vector graphics for this? I'm trying to understand if ...
4 years, 3 months ago (2016-09-06 19:50:38 UTC) #13
Robert Sesek
lgtm
4 years, 3 months ago (2016-09-06 21:32:52 UTC) #14
Evan Stade
yes, this should use vector icons. We should only use pngs for complicated assets that ...
4 years, 3 months ago (2016-09-06 21:51:17 UTC) #15
juncai
On 2016/09/06 21:51:17, Evan Stade wrote: > yes, this should use vector icons. We should ...
4 years, 3 months ago (2016-09-07 01:03:52 UTC) #18
Jeffrey Yasskin
https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/chooser_controller/chooser_controller.h#newcode88 chrome/browser/chooser_controller/chooser_controller.h:88: // Returns if the |index|th option is connected. For ...
4 years, 3 months ago (2016-09-07 02:01:48 UTC) #19
ortuno
https://codereview.chromium.org/2304213002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2304213002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode357 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:357: device.IsPaired() /* is_paired */, BluetoothDevice::IsPaired() returns whether or not ...
4 years, 3 months ago (2016-09-07 02:47:02 UTC) #21
Evan Stade
https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm File chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm (right): https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm#newcode129 chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm:129: gfx::VectorIconId::BLUETOOTH_CONNECTED, SK_ColorBLACK)); are you sure you want black and ...
4 years, 3 months ago (2016-09-07 16:41:42 UTC) #24
juncai
https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/chooser_controller/chooser_controller.h File chrome/browser/chooser_controller/chooser_controller.h (right): https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/chooser_controller/chooser_controller.h#newcode88 chrome/browser/chooser_controller/chooser_controller.h:88: // Returns if the |index|th option is connected. On ...
4 years, 3 months ago (2016-09-09 20:06:15 UTC) #29
Evan Stade
lgtm https://codereview.chromium.org/2304213002/diff/100001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm File chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm (right): https://codereview.chromium.org/2304213002/diff/100001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm#newcode624 chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm:624: return kTableRowViewOneLineHeight; nit: no else after return (I'd ...
4 years, 3 months ago (2016-09-09 20:44:48 UTC) #30
ortuno
https://codereview.chromium.org/2304213002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2304213002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode361 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:361: if (device_id_ptr) { As long as the user has ...
4 years, 3 months ago (2016-09-12 03:45:22 UTC) #33
juncai
https://codereview.chromium.org/2304213002/diff/100001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm File chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm (right): https://codereview.chromium.org/2304213002/diff/100001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm#newcode624 chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm:624: return kTableRowViewOneLineHeight; On 2016/09/09 20:44:47, Evan Stade wrote: > ...
4 years, 3 months ago (2016-09-12 20:37:12 UTC) #36
ortuno
thanks! Web Bluetooth lgtm
4 years, 3 months ago (2016-09-13 01:18:18 UTC) #39
juncai
ping jyasskin@, :).
4 years, 3 months ago (2016-09-14 00:52:58 UTC) #42
Jeffrey Yasskin
https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h File chrome/browser/ui/cocoa/chooser_content_view_cocoa.h (right): https://codereview.chromium.org/2304213002/diff/60001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h#newcode74 chrome/browser/ui/cocoa/chooser_content_view_cocoa.h:74: - (base::scoped_nsobject<NSView>)createTableRowView:(NSInteger)row; On 2016/09/09 20:06:15, juncai wrote: > On ...
4 years, 3 months ago (2016-09-14 20:08:37 UTC) #45
juncai
https://codereview.chromium.org/2304213002/diff/140001/chrome/browser/chooser_controller/mock_chooser_controller.cc File chrome/browser/chooser_controller/mock_chooser_controller.cc (right): https://codereview.chromium.org/2304213002/diff/140001/chrome/browser/chooser_controller/mock_chooser_controller.cc#newcode48 chrome/browser/chooser_controller/mock_chooser_controller.cc:48: return !!(options_[index].connected_paired_status & On 2016/09/14 20:08:36, Jeffrey Yasskin wrote: ...
4 years, 3 months ago (2016-09-14 23:13:07 UTC) #48
Jeffrey Yasskin
LGTM; we can figure out the detailed appearance later if it needs to change. https://codereview.chromium.org/2304213002/diff/140001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm ...
4 years, 3 months ago (2016-09-14 23:52:04 UTC) #49
juncai
https://codereview.chromium.org/2304213002/diff/140001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm File chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm (right): https://codereview.chromium.org/2304213002/diff/140001/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm#newcode605 chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm:605: if (chooserController_->GetSignalStrengthLevel(i) != -1 || On 2016/09/14 23:52:03, Jeffrey ...
4 years, 3 months ago (2016-09-15 01:00:03 UTC) #52
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/2304213002/180001
4 years, 3 months ago (2016-09-15 03:58:20 UTC) #57
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-15 04:03:14 UTC) #58
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 04:06:50 UTC) #60
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/87d092908d6e01e183bb02721ad7add4e4babeb4
Cr-Commit-Position: refs/heads/master@{#418774}

Powered by Google App Engine
This is Rietveld 408576698