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

Issue 17445002: Updates the display message in the uber tray. (Closed)

Created:
7 years, 6 months ago by Jun Mukai
Modified:
7 years, 6 months ago
Reviewers:
stevenjb, oshima, James Cook
CC:
chromium-reviews, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Updates the display message in the uber tray. This CL contains the following fixes: - shows the notification for display rotation / ui_scale - adds (width x height) annotation to the display if something has been edited - shows the internal display's status if something for the internal display has been edited and no external display is connected - shows the tooltip text to provide the status of both internal and extrenal displays at the same time This CL does not contain: - the feature to prevent notification when the settings change happens from chrome://settings/display I think we can achieve this by suppressing the notification when the current active tab is chrome://settings/display, but anyways it'll be done in another CL. That is marked as a TODO. BUG=250650, 246271 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207998

Patch Set 1 #

Total comments: 4

Patch Set 2 : add test #

Patch Set 3 : fix test failures #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : disable display notification for all tests #

Patch Set 6 : cleanup #

Total comments: 6

Patch Set 7 : fix #

Total comments: 4

Patch Set 8 : fix messages #

Total comments: 17

Patch Set 9 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -115 lines) Patch
M ash/ash.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M ash/system/chromeos/tray_display.h View 1 2 3 4 5 6 7 8 2 chunks +32 lines, -15 lines 0 comments Download
M ash/system/chromeos/tray_display.cc View 1 2 3 4 5 6 7 8 8 chunks +186 lines, -100 lines 0 comments Download
A ash/system/chromeos/tray_display_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +340 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jun Mukai
7 years, 6 months ago (2013-06-19 02:43:07 UTC) #1
oshima
can you add unit test for messages? https://codereview.chromium.org/17445002/diff/1/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/1/ash/system/chromeos/tray_display.cc#newcode73 ash/system/chromeos/tray_display.cc:73: name += ...
7 years, 6 months ago (2013-06-19 18:20:31 UTC) #2
Jun Mukai
will add test. please wait a bit. https://codereview.chromium.org/17445002/diff/1/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/1/ash/system/chromeos/tray_display.cc#newcode73 ash/system/chromeos/tray_display.cc:73: name += ...
7 years, 6 months ago (2013-06-19 23:42:35 UTC) #3
Jun Mukai
test is added. PTAL
7 years, 6 months ago (2013-06-20 03:24:42 UTC) #4
Jun Mukai
ping?
7 years, 6 months ago (2013-06-20 21:17:01 UTC) #5
oshima
https://codereview.chromium.org/17445002/diff/14001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/14001/ash/system/chromeos/tray_display.cc#newcode326 ash/system/chromeos/tray_display.cc:326: static_cast<views::View*>(default_)->GetTooltipText(gfx::Point(), &tooltip); isn't DefaultView a view? also it's probably ...
7 years, 6 months ago (2013-06-20 21:28:57 UTC) #6
Jun Mukai
https://codereview.chromium.org/17445002/diff/14001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/14001/ash/system/chromeos/tray_display.cc#newcode326 ash/system/chromeos/tray_display.cc:326: static_cast<views::View*>(default_)->GetTooltipText(gfx::Point(), &tooltip); On 2013/06/20 21:28:57, oshima wrote: > isn't ...
7 years, 6 months ago (2013-06-20 22:03:07 UTC) #7
Jun Mukai
fixed the code to disable the display notifications for all ash tests (except for tray_display_unittests). ...
7 years, 6 months ago (2013-06-20 23:09:21 UTC) #8
oshima
lgtm with nits https://codereview.chromium.org/17445002/diff/26001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/26001/ash/system/chromeos/tray_display.cc#newcode27 ash/system/chromeos/tray_display.cc:27: bool g_display_notifications_enabled = true; optional: since ...
7 years, 6 months ago (2013-06-20 23:16:11 UTC) #9
Jun Mukai
https://codereview.chromium.org/17445002/diff/26001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/26001/ash/system/chromeos/tray_display.cc#newcode27 ash/system/chromeos/tray_display.cc:27: bool g_display_notifications_enabled = true; On 2013/06/20 23:16:11, oshima wrote: ...
7 years, 6 months ago (2013-06-20 23:34:33 UTC) #10
Jun Mukai
stevenjb, jamescook, please review this
7 years, 6 months ago (2013-06-20 23:35:06 UTC) #11
James Cook
LGTM with a suggestion for strings. Are you sure you can get the change to ...
7 years, 6 months ago (2013-06-21 00:38:26 UTC) #12
Jun Mukai
https://codereview.chromium.org/17445002/diff/26002/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/17445002/diff/26002/ash/ash_strings.grd#newcode325 ash/ash_strings.grd:325: <ph name="DISPLAY_NAME">$1</ph> is resized to <ph name="RESOLUTION">$2</ph> On 2013/06/21 ...
7 years, 6 months ago (2013-06-21 00:46:48 UTC) #13
Jun Mukai
On 2013/06/21 00:38:26, James Cook (Chromium) wrote: > LGTM with a suggestion for strings. > ...
7 years, 6 months ago (2013-06-21 00:49:47 UTC) #14
James Cook
> IIRC, we agreed that showing the notification would be more important than > controlling ...
7 years, 6 months ago (2013-06-21 00:52:48 UTC) #15
stevenjb
https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc#newcode27 ash/system/chromeos/tray_display.cc:27: bool display_notifications_enabled = true; This should really be 'display_notifications_disabled' ...
7 years, 6 months ago (2013-06-21 01:08:34 UTC) #16
Jun Mukai
https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc#newcode27 ash/system/chromeos/tray_display.cc:27: bool display_notifications_enabled = true; On 2013/06/21 01:08:35, stevenjb (chromium) ...
7 years, 6 months ago (2013-06-21 04:48:49 UTC) #17
stevenjb
lgtm https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc File ash/system/chromeos/tray_display.cc (right): https://codereview.chromium.org/17445002/diff/31001/ash/system/chromeos/tray_display.cc#newcode247 ash/system/chromeos/tray_display.cc:247: break; On 2013/06/21 04:48:50, Jun Mukai wrote: > ...
7 years, 6 months ago (2013-06-21 20:17:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/17445002/37001
7 years, 6 months ago (2013-06-21 21:02:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/17445002/37001
7 years, 6 months ago (2013-06-22 02:42:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/17445002/37001
7 years, 6 months ago (2013-06-22 03:06:31 UTC) #21
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 03:11:48 UTC) #22
Message was sent while issue was closed.
Change committed as 207998

Powered by Google App Engine
This is Rietveld 408576698