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

Issue 401313003: ScreenWin notifies DisplayObserver's when displays changed. (Closed)

Created:
6 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 5 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ScreenWin notifies DisplayObserver's when displays changed. This is done by having ScreenWin listening to WM_DISPLAYCHANGE via SingletonHwnd. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284794

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : sky review comments #

Total comments: 4

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -9 lines) Patch
M ui/gfx/screen_win.h View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download
M ui/gfx/screen_win.cc View 1 2 3 4 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mlamouri (slow - plz ping)
oshima@chromium.org: Please review changes in * ui/gfx/ sky@chromium.org: Please review changes in * ui/views/
6 years, 5 months ago (2014-07-21 16:50:59 UTC) #1
sky
https://codereview.chromium.org/401313003/diff/20001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/401313003/diff/20001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode733 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:733: static_cast<gfx::ScreenWin*>(gfx::Screen::GetScreenFor(content_window_)) There may be multiple DesktopWindowTreeHostWin's on this display. ...
6 years, 5 months ago (2014-07-21 17:09:18 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/401313003/diff/20001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/401313003/diff/20001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode733 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:733: static_cast<gfx::ScreenWin*>(gfx::Screen::GetScreenFor(content_window_)) On 2014/07/21 17:09:18, sky wrote: > There may ...
6 years, 5 months ago (2014-07-21 17:15:09 UTC) #3
mlamouri (slow - plz ping)
I have changed the implementation to use SingletonHwnd, PTAL.
6 years, 5 months ago (2014-07-22 10:33:38 UTC) #4
sky
LGTM https://codereview.chromium.org/401313003/diff/40001/ui/gfx/screen_win.cc File ui/gfx/screen_win.cc (right): https://codereview.chromium.org/401313003/diff/40001/ui/gfx/screen_win.cc#newcode81 ui/gfx/screen_win.cc:81: displays_ = BuildDisplays(); Move to member initializer list. ...
6 years, 5 months ago (2014-07-22 17:41:18 UTC) #5
oshima
lgtm if sky's comments are addressed
6 years, 5 months ago (2014-07-22 17:45:02 UTC) #6
mlamouri (slow - plz ping)
Thanks for the quick review sky@. oshima@, PTAL.
6 years, 5 months ago (2014-07-22 17:49:30 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/401313003/diff/40001/ui/gfx/screen_win.cc File ui/gfx/screen_win.cc (right): https://codereview.chromium.org/401313003/diff/40001/ui/gfx/screen_win.cc#newcode81 ui/gfx/screen_win.cc:81: displays_ = BuildDisplays(); On 2014/07/22 17:41:18, sky wrote: > ...
6 years, 5 months ago (2014-07-22 17:52:51 UTC) #8
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-22 18:22:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/401313003/60001
6 years, 5 months ago (2014-07-22 18:25:00 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-22 20:27:40 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 23:15:35 UTC) #12
Message was sent while issue was closed.
Change committed as 284794

Powered by Google App Engine
This is Rietveld 408576698