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

Issue 2381493005: Add bluetooth device type icons on MD system tray. (Closed)

Created:
4 years, 2 months ago by fukino
Modified:
4 years, 2 months ago
Reviewers:
tdanderson, oshima
CC:
chromium-reviews, kalyank, oshima+watch_chromium.org, posciak+watch_chromium.org, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add bluetooth device type icons on MD system tray. Adds following icons which are used in Bluetooth detailed view. * Computer * Gamepad * Headset * Mouse * Phone * Videocam This CL also shows them on bluetooth device list on MD ash tray, and makes the Bluetooth toggle button functional. BUG=632128 TEST=manually tested with the flag --ash-md=experimental Committed: https://crrev.com/0e63d97a3cae0c52121dc15c87d68337ba585d1d Cr-Commit-Position: refs/heads/master@{#424371}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Add tablet icon and address review comments. #

Total comments: 2

Patch Set 3 : Handle UNKNOWN_DEVICE, and return default BT icon outside switch statement. #

Patch Set 4 : Add depencency //ui/gfx/vector_icons:vector_icons to //ash:ash #

Patch Set 5 : Revert PS4 and fix a header file to be included. #

Total comments: 2

Patch Set 6 : switch from enum device::BluetoothDevice::DeviceType to enum class device::BluetoothDeviceType. #

Patch Set 7 : Move BluetoothDeviceType to device/bluetooth/bluetooth_common.h #

Total comments: 2

Patch Set 8 : Rebase #

Total comments: 5

Patch Set 9 : Remove unnecessary ash:: #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -8 lines) Patch
M ash/common/system/chromeos/bluetooth/tray_bluetooth.cc View 1 2 3 4 5 6 7 8 6 chunks +78 lines, -8 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ash/resources/vector_icons/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_computer.icon View 1 chunk +26 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_computer.1x.icon View 1 chunk +26 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_gamepad.icon View 1 chunk +34 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_gamepad.1x.icon View 1 chunk +34 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_headset.icon View 1 chunk +24 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_headset.1x.icon View 1 chunk +24 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_mouse.icon View 1 chunk +23 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_mouse.1x.icon View 1 chunk +23 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_phone.icon View 1 chunk +22 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_phone.1x.icon View 1 chunk +22 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_tablet.icon View 1 1 chunk +22 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_tablet.1x.icon View 1 1 chunk +22 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_videocam.icon View 1 chunk +22 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/system_menu_videocam.1x.icon View 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 65 (34 generated)
fukino
Hi tdanderson@, I'm sorry for a belated update. Could you take a look? https://codereview.chromium.org/2381493005/diff/1/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ...
4 years, 2 months ago (2016-09-29 16:27:36 UTC) #4
tdanderson
Thanks, LGTM with the comments below. https://chromiumcodereview.appspot.com/2381493005/diff/1/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://chromiumcodereview.appspot.com/2381493005/diff/1/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode29 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:29: #include "ui/gfx/vector_icons/vector_icons.h" is ...
4 years, 2 months ago (2016-09-29 18:54:40 UTC) #5
fukino
https://codereview.chromium.org/2381493005/diff/1/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/2381493005/diff/1/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode29 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:29: #include "ui/gfx/vector_icons/vector_icons.h" On 2016/09/29 18:54:39, tdanderson wrote: > is ...
4 years, 2 months ago (2016-09-30 02:43:49 UTC) #6
fukino
oshima san, could you take a look at chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ?
4 years, 2 months ago (2016-09-30 02:44:48 UTC) #8
oshima
please address my comment, then lgtm https://codereview.chromium.org/2381493005/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2381493005/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode194 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:194: return ash::kSystemMenuBluetoothIcon; instead ...
4 years, 2 months ago (2016-09-30 04:37:22 UTC) #9
fukino
Thank you! https://codereview.chromium.org/2381493005/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2381493005/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode194 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:194: return ash::kSystemMenuBluetoothIcon; On 2016/09/30 04:37:22, oshima wrote: ...
4 years, 2 months ago (2016-09-30 06:51:33 UTC) #10
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/2381493005/40001
4 years, 2 months ago (2016-09-30 06:52:09 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/208556) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-09-30 06:56:34 UTC) #15
fukino
I got a link error for ash::kSystemMenuComputerIcon etc... I think we should refer these icons ...
4 years, 2 months ago (2016-09-30 14:31:32 UTC) #20
tdanderson
On 2016/09/30 14:31:32, fukino wrote: > I got a link error for ash::kSystemMenuComputerIcon etc... > ...
4 years, 2 months ago (2016-09-30 17:27:01 UTC) #21
fukino
On 2016/09/30 17:27:01, tdanderson wrote: > On 2016/09/30 14:31:32, fukino wrote: > > I got ...
4 years, 2 months ago (2016-10-04 12:28:54 UTC) #22
oshima
On 2016/10/04 12:28:54, fukino wrote: > On 2016/09/30 17:27:01, tdanderson wrote: > > On 2016/09/30 ...
4 years, 2 months ago (2016-10-04 18:04:30 UTC) #23
oshima
On 2016/10/04 18:04:30, oshima wrote: > On 2016/10/04 12:28:54, fukino wrote: > > On 2016/09/30 ...
4 years, 2 months ago (2016-10-04 19:23:57 UTC) #24
oshima
https://codereview.chromium.org/2381493005/diff/80001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2381493005/diff/80001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode197 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:197: break; remove default:
4 years, 2 months ago (2016-10-04 21:00:59 UTC) #25
fukino
> Just switch to enum class (I probably have to move it out from BluetoothDevice ...
4 years, 2 months ago (2016-10-05 06:30:30 UTC) #32
fukino
https://codereview.chromium.org/2381493005/diff/80001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2381493005/diff/80001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode197 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:197: break; On 2016/10/04 21:00:59, oshima wrote: > remove default: ...
4 years, 2 months ago (2016-10-05 06:34:45 UTC) #33
fukino
Hi ortuno@, stevenjb@, isherman@, I moved the inner enum BluetoothDevice::DeviceType out of BluetoothDevice class so ...
4 years, 2 months ago (2016-10-05 06:51:59 UTC) #35
ortuno
Please separate the bluetooth changes from the ash changes. https://codereview.chromium.org/2381493005/diff/120001/device/bluetooth/bluetooth_common.h File device/bluetooth/bluetooth_common.h (right): https://codereview.chromium.org/2381493005/diff/120001/device/bluetooth/bluetooth_common.h#newcode31 device/bluetooth/bluetooth_common.h:31: ...
4 years, 2 months ago (2016-10-05 06:59:11 UTC) #36
fukino
On 2016/10/05 06:59:11, ortuno wrote: > Please separate the bluetooth changes from the ash changes. ...
4 years, 2 months ago (2016-10-05 07:32:57 UTC) #37
fukino
I rebased this CL. tdanderson@, could you take a look at ash/common/system/ again? I moved ...
4 years, 2 months ago (2016-10-06 01:01:35 UTC) #43
tdanderson
still lgtm for patch set 8 https://chromiumcodereview.appspot.com/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://chromiumcodereview.appspot.com/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode98 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:98: LOG(WARNING) << "Unknown ...
4 years, 2 months ago (2016-10-06 14:12:12 UTC) #46
fukino
https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode98 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:98: LOG(WARNING) << "Unknown device type icon for Bluetooth was ...
4 years, 2 months ago (2016-10-06 14:45:30 UTC) #47
tdanderson
https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode98 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:98: LOG(WARNING) << "Unknown device type icon for Bluetooth was ...
4 years, 2 months ago (2016-10-06 14:47:16 UTC) #48
fukino
Thank you! https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc File ash/common/system/chromeos/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/2381493005/diff/140001/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc#newcode323 ash/common/system/chromeos/bluetooth/tray_bluetooth.cc:323: GetBluetoothDeviceIcon(list[i].device_type), ash::kMenuIconColor); On 2016/10/06 14:12:12, tdanderson wrote: ...
4 years, 2 months ago (2016-10-07 00:19:16 UTC) #49
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/2381493005/160001
4 years, 2 months ago (2016-10-07 00:19:50 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/282062) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-07 00:23:03 UTC) #54
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/2381493005/180001
4 years, 2 months ago (2016-10-07 01:19:47 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/156084)
4 years, 2 months ago (2016-10-07 02:47:09 UTC) #59
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/2381493005/180001
4 years, 2 months ago (2016-10-11 03:55:51 UTC) #61
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-11 04:55:03 UTC) #63
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 04:56:28 UTC) #65
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0e63d97a3cae0c52121dc15c87d68337ba585d1d
Cr-Commit-Position: refs/heads/master@{#424371}

Powered by Google App Engine
This is Rietveld 408576698