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

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, tdanderson+overview_chromium.org, penghuang+watch_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, kalyank, danakj+watch_chromium.org, James Su, ben+ash_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@update_orientation
Visibility:
Public.

Description

Add OnDisplayMetricsChanged in DisplayObserver. This replaces OnDisplayBoundsChanged and add a MetricsType parameter so consumers can now which metrics has changed. The current set of MetricsType include bounds, workarea and rotation. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271768 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272040

Patch Set 1 #

Patch Set 2 : linux patch with MetricsChanged #

Patch Set 3 : some changes in ash/ #

Patch Set 4 : update ash tests #

Patch Set 5 : with Linux Aura tests #

Total comments: 11

Patch Set 6 : review comments + device scale factor #

Total comments: 4

Patch Set 7 : #

Total comments: 7

Patch Set 8 : fix enum issue #

Patch Set 9 : jochen comments (inc. git cl format) #

Total comments: 7

Patch Set 10 : oshima review comments #

Total comments: 1

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -149 lines) Patch
M ash/display/display_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -11 lines 0 comments Download
M ash/display/display_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 22 chunks +40 lines, -2 lines 0 comments Download
M ash/display/display_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ash/display/display_manager.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +45 lines, -24 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -6 lines 0 comments Download
M ash/display/resolution_notification_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/display/resolution_notification_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M ash/display/screen_ash.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M ash/display/screen_ash.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -3 lines 0 comments Download
M ash/shelf/shelf_window_watcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -3 lines 0 comments Download
M ash/shell/window_watcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/shell/window_watcher.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M ash/touch/touch_hud_debug.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/touch/touch_hud_debug.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M ash/touch/touch_observer_hud.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/touch/touch_observer_hud.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -6 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/overview/window_selector.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/system_info/system_info_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -10 lines 0 comments Download
M media/video/capture/linux/video_capture_device_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -5 lines 0 comments Download
M ui/gfx/display_observer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -2 lines 0 comments Download
M ui/message_center/views/message_popup_collection.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -8 lines 0 comments Download
M ui/message_center/views/toast_contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +98 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
mlamouri (slow - plz ping)
oshima@, does that sound reasonable to you? There are a lot of tests to fix ...
6 years, 7 months ago (2014-04-29 15:54:13 UTC) #1
oshima
On 2014/04/29 15:54:13, Mounir Lamouri wrote: > oshima@, does that sound reasonable to you? There ...
6 years, 7 months ago (2014-04-29 17:19:49 UTC) #2
mlamouri (slow - plz ping)
On 2014/04/29 17:19:49, oshima wrote: > On 2014/04/29 15:54:13, Mounir Lamouri wrote: > > oshima@, ...
6 years, 7 months ago (2014-04-30 16:58:36 UTC) #3
oshima
On 2014/04/30 16:58:36, Mounir Lamouri wrote: > On 2014/04/29 17:19:49, oshima wrote: > > On ...
6 years, 7 months ago (2014-05-01 17:29:56 UTC) #4
mlamouri (slow - plz ping)
On 2014/05/01 17:29:56, oshima wrote: > On 2014/04/30 16:58:36, Mounir Lamouri wrote: > > On ...
6 years, 7 months ago (2014-05-01 17:40:17 UTC) #5
oshima
On 2014/05/01 17:40:17, Mounir Lamouri wrote: > On 2014/05/01 17:29:56, oshima wrote: > > On ...
6 years, 7 months ago (2014-05-01 17:51:29 UTC) #6
mlamouri (slow - plz ping)
Oshima, PTAL :)
6 years, 7 months ago (2014-05-07 18:08:17 UTC) #7
mlamouri (slow - plz ping)
erg, could you review the changes in: ui/views/widget/desktop_aura/* stevenjb, could you review the changes in: ...
6 years, 7 months ago (2014-05-08 13:21:28 UTC) #8
oshima
thank you for working on this. https://codereview.chromium.org/259253002/diff/70001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/259253002/diff/70001/ash/display/display_controller.cc#newcode615 ash/display/display_controller.cc:615: if (!(metrics & ...
6 years, 7 months ago (2014-05-08 18:06:49 UTC) #9
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/259253002/diff/70001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/259253002/diff/70001/ash/display/display_controller.cc#newcode615 ash/display/display_controller.cc:615: if (!(metrics & DISPLAY_METRICS_BOUNDS)) On 2014/05/08 18:06:50, oshima ...
6 years, 7 months ago (2014-05-09 16:11:38 UTC) #10
stevenjb
ash/system/ and ui/message_center lgtm https://codereview.chromium.org/259253002/diff/80001/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/259253002/diff/80001/ui/message_center/views/toast_contents_view.cc#newcode245 ui/message_center/views/toast_contents_view.cc:245: static_cast<gfx::DisplayObserver::DisplayMetrics>(metrics)); nit: alignment of this ...
6 years, 7 months ago (2014-05-09 18:51:32 UTC) #11
mlamouri (slow - plz ping)
oshima@, erg@ and jochen@, could you guys have a look at this patch too? Thanks ...
6 years, 7 months ago (2014-05-12 09:20:16 UTC) #12
Elliot Glaysher
https://codereview.chromium.org/259253002/diff/100001/ui/gfx/display_observer.h File ui/gfx/display_observer.h (right): https://codereview.chromium.org/259253002/diff/100001/ui/gfx/display_observer.h#newcode35 ui/gfx/display_observer.h:35: const Display& display, DisplayMetrics changed_metrics) = 0; Bitfields should ...
6 years, 7 months ago (2014-05-12 17:47:10 UTC) #13
oshima
https://codereview.chromium.org/259253002/diff/100001/ui/gfx/display_observer.h File ui/gfx/display_observer.h (right): https://codereview.chromium.org/259253002/diff/100001/ui/gfx/display_observer.h#newcode35 ui/gfx/display_observer.h:35: const Display& display, DisplayMetrics changed_metrics) = 0; On 2014/05/12 ...
6 years, 7 months ago (2014-05-12 19:58:13 UTC) #14
jochen (gone - plz use gerrit)
https://codereview.chromium.org/259253002/diff/100001/chrome/browser/extensions/api/system_info/system_info_api.cc File chrome/browser/extensions/api/system_info/system_info_api.cc (right): https://codereview.chromium.org/259253002/diff/100001/chrome/browser/extensions/api/system_info/system_info_api.cc#newcode72 chrome/browser/extensions/api/system_info/system_info_api.cc:72: DisplayObserver::DisplayMetrics metrics) OVERRIDE; please clang-format https://codereview.chromium.org/259253002/diff/100001/chrome/browser/extensions/api/system_info/system_info_api.cc#newcode195 chrome/browser/extensions/api/system_info/system_info_api.cc:195: const gfx::Display&, ...
6 years, 7 months ago (2014-05-14 09:05:42 UTC) #15
mlamouri (slow - plz ping)
I applied the comments from jochen@, oshima@ and erg@. Could you guys PTAL?
6 years, 7 months ago (2014-05-14 11:40:17 UTC) #16
jochen (gone - plz use gerrit)
My bits lgtm when oshima and erg are happy
6 years, 7 months ago (2014-05-14 12:33:45 UTC) #17
oshima
https://codereview.chromium.org/259253002/diff/140001/ash/display/display_controller.h File ash/display/display_controller.h (right): https://codereview.chromium.org/259253002/diff/140001/ash/display/display_controller.h#newcode153 ash/display/display_controller.h:153: DisplayObserver::DisplayMetrics metrics) OVERRIDE; this should be uint32. I probably ...
6 years, 7 months ago (2014-05-14 15:53:33 UTC) #18
mlamouri (slow - plz ping)
oshima, it is not clear to me why you want me to use uint32_t instead ...
6 years, 7 months ago (2014-05-15 06:56:36 UTC) #19
mlamouri (slow - plz ping)
On 2014/05/15 06:56:36, Mounir Lamouri wrote: > oshima, it is not clear to me why ...
6 years, 7 months ago (2014-05-19 12:44:07 UTC) #20
oshima
sorry for delay. https://codereview.chromium.org/259253002/diff/140001/ui/gfx/display_observer.h File ui/gfx/display_observer.h (right): https://codereview.chromium.org/259253002/diff/140001/ui/gfx/display_observer.h#newcode25 ui/gfx/display_observer.h:25: DISPLAY_METRICS_ROTATION = 1 << 3, DISPLAY_METRIC_ ...
6 years, 7 months ago (2014-05-20 01:03:01 UTC) #21
mlamouri (slow - plz ping)
I applied your comments oshima, could you PTAL? https://codereview.chromium.org/259253002/diff/140001/ui/gfx/display_observer.h File ui/gfx/display_observer.h (right): https://codereview.chromium.org/259253002/diff/140001/ui/gfx/display_observer.h#newcode25 ui/gfx/display_observer.h:25: DISPLAY_METRICS_ROTATION ...
6 years, 7 months ago (2014-05-20 12:52:57 UTC) #22
mlamouri (slow - plz ping)
tommi@, could you review the changes in: media/video/capture/linux/video_capture_device_chromeos.cc
6 years, 7 months ago (2014-05-20 12:56:00 UTC) #23
oshima
https://codereview.chromium.org/259253002/diff/160001/ui/gfx/display_observer.h File ui/gfx/display_observer.h (right): https://codereview.chromium.org/259253002/diff/160001/ui/gfx/display_observer.h#newcode27 ui/gfx/display_observer.h:27: typedef uint32_t DisplayMetrics; Sorry if it wasn't clear. My ...
6 years, 7 months ago (2014-05-20 15:13:28 UTC) #24
mlamouri (slow - plz ping)
On 2014/05/20 15:13:28, oshima wrote: > https://codereview.chromium.org/259253002/diff/160001/ui/gfx/display_observer.h > File ui/gfx/display_observer.h (right): > > https://codereview.chromium.org/259253002/diff/160001/ui/gfx/display_observer.h#newcode27 > ...
6 years, 7 months ago (2014-05-20 15:54:32 UTC) #25
oshima
lgtm
6 years, 7 months ago (2014-05-20 16:19:57 UTC) #26
mlamouri (slow - plz ping)
On 2014/05/20 16:19:57, oshima wrote: > lgtm Thanks! :) erg@, could you PTAL at the ...
6 years, 7 months ago (2014-05-20 16:24:39 UTC) #27
tommi (sloooow) - chröme
Lgtm for video_capture_device_chromeos.cc
6 years, 7 months ago (2014-05-20 16:26:38 UTC) #28
Elliot Glaysher
lgtm
6 years, 7 months ago (2014-05-20 17:45:26 UTC) #29
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 7 months ago (2014-05-20 17:45:46 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/259253002/180001
6 years, 7 months ago (2014-05-20 17:46:19 UTC) #31
commit-bot: I haz the power
Change committed as 271768
6 years, 7 months ago (2014-05-20 21:52:39 UTC) #32
Nicolas Zea
A revert of this CL has been created in https://codereview.chromium.org/294963004/ by zea@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-20 23:15:31 UTC) #33
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 7 months ago (2014-05-21 11:07:34 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/259253002/200001
6 years, 7 months ago (2014-05-21 11:09:43 UTC) #35
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 01:26:06 UTC) #36
Message was sent while issue was closed.
Change committed as 272040

Powered by Google App Engine
This is Rietveld 408576698