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

Issue 2907503002: Use correct theme for the off icon of NightLight, fix tooltip and a11y (Closed)

Created:
3 years, 7 months ago by afakhry
Modified:
3 years, 7 months ago
Reviewers:
James Cook, Daniel Erat
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use correct theme for the off icon of NightLight, fix tooltip and a11y 1) Make the theme of the off icon of NightLight match that of other inactive items in the system trays. 2) Make the tooltip text sentence case instead of title case. 3) Add proper a11y spoken feedback support. Demo: https://bugs.chromium.org/p/chromium/issues/detail?id=726083#c8 BUG=726083, 726089 Review-Url: https://codereview.chromium.org/2907503002 Cr-Commit-Position: refs/heads/master@{#474782} Committed: https://chromium.googlesource.com/chromium/src/+/2144d0f2e6603b21c50df07a318fc37cf6b6d513

Patch Set 1 #

Total comments: 2

Patch Set 2 : James comment + a11y bug. #

Total comments: 2

Patch Set 3 : Explicit #

Patch Set 4 : Expose button for tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -14 lines) Patch
M ash/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 1 chunk +1 line, -1 line 0 comments Download
A ash/system/night_light/night_light_toggle_button.h View 1 2 3 1 chunk +31 lines, -0 lines 2 comments Download
A ash/system/night_light/night_light_toggle_button.cc View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M ash/system/tiles/tiles_default_view.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/tiles/tiles_default_view.cc View 1 2 3 4 chunks +3 lines, -10 lines 0 comments Download
M ash/system/tiles/tray_tiles_unittest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (14 generated)
afakhry
James, can you please take a look? Thank you!
3 years, 7 months ago (2017-05-25 00:58:04 UTC) #2
James Cook
https://codereview.chromium.org/2907503002/diff/1/ash/system/tiles/tiles_default_view.cc File ash/system/tiles/tiles_default_view.cc (right): https://codereview.chromium.org/2907503002/diff/1/ash/system/tiles/tiles_default_view.cc#newcode59 ash/system/tiles/tiles_default_view.cc:59: gfx::CreateVectorIcon(*icon, kMenuIconColorDisabled)); I'm finding this hard to follow. How ...
3 years, 7 months ago (2017-05-25 02:08:45 UTC) #3
afakhry
To save time, I also handled bug 726089 in this same CL, since it also ...
3 years, 7 months ago (2017-05-25 03:17:54 UTC) #6
afakhry
derat@, James is OOO sick. Can you please take a look at this? Thanks!
3 years, 7 months ago (2017-05-25 16:06:38 UTC) #8
Daniel Erat
lgtm after a comment is addressed https://codereview.chromium.org/2907503002/diff/20001/ash/system/tiles/tiles_default_view.cc File ash/system/tiles/tiles_default_view.cc (right): https://codereview.chromium.org/2907503002/diff/20001/ash/system/tiles/tiles_default_view.cc#newcode65 ash/system/tiles/tiles_default_view.cc:65: NightLightToggleButton(views::ButtonListener* listener) explicit
3 years, 7 months ago (2017-05-25 16:17:34 UTC) #9
afakhry
https://codereview.chromium.org/2907503002/diff/20001/ash/system/tiles/tiles_default_view.cc File ash/system/tiles/tiles_default_view.cc (right): https://codereview.chromium.org/2907503002/diff/20001/ash/system/tiles/tiles_default_view.cc#newcode65 ash/system/tiles/tiles_default_view.cc:65: NightLightToggleButton(views::ButtonListener* listener) On 2017/05/25 16:17:34, Daniel Erat wrote: > ...
3 years, 7 months ago (2017-05-25 16:31:38 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/2907503002/40001
3 years, 7 months ago (2017-05-25 16:32:13 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/434768)
3 years, 7 months ago (2017-05-25 16:56:38 UTC) #15
afakhry
derat@ Sorry! Would you mind taking a second look please? I had to extract the ...
3 years, 7 months ago (2017-05-25 17:29:08 UTC) #18
Daniel Erat
lgtm with a comment nit https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h File ash/system/night_light/night_light_toggle_button.h (right): https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h#newcode13 ash/system/night_light/night_light_toggle_button.h:13: // The NightLight toggle ...
3 years, 7 months ago (2017-05-25 17:59:51 UTC) #19
afakhry
https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h File ash/system/night_light/night_light_toggle_button.h (right): https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h#newcode13 ash/system/night_light/night_light_toggle_button.h:13: // The NightLight toggle button in the system tray. ...
3 years, 7 months ago (2017-05-25 18:03:31 UTC) #20
Daniel Erat
On 2017/05/25 18:03:31, afakhry wrote: > https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h > File ash/system/night_light/night_light_toggle_button.h (right): > > https://codereview.chromium.org/2907503002/diff/60001/ash/system/night_light/night_light_toggle_button.h#newcode13 > ...
3 years, 7 months ago (2017-05-25 20:19:48 UTC) #23
afakhry
On 2017/05/25 20:19:48, Daniel Erat wrote: > On 2017/05/25 18:03:31, afakhry wrote: > > > ...
3 years, 7 months ago (2017-05-25 20:28:48 UTC) #24
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/2907503002/60001
3 years, 7 months ago (2017-05-25 20:29:47 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 20:34:43 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2144d0f2e6603b21c50df07a318f...

Powered by Google App Engine
This is Rietveld 408576698