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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 401313003: ScreenWin notifies DisplayObserver's when displays changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/screen_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index acbef2b60820a32f2e22a45f852d0d75eb59f666..bf177ef31aa91cf3ce9ac21d13d2fbc0dc96bf36 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -20,6 +20,8 @@
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/path.h"
#include "ui/gfx/path_win.h"
+#include "ui/gfx/screen.h"
+#include "ui/gfx/screen_win.h"
#include "ui/gfx/vector2d.h"
#include "ui/gfx/win/dpi.h"
#include "ui/native_theme/native_theme_aura.h"
@@ -728,6 +730,8 @@ bool DesktopWindowTreeHostWin::HandleInitialFocus(
void DesktopWindowTreeHostWin::HandleDisplayChange() {
GetWidget()->widget_delegate()->OnDisplayChanged();
+ static_cast<gfx::ScreenWin*>(gfx::Screen::GetScreenFor(content_window_))
sky 2014/07/21 17:09:18 There may be multiple DesktopWindowTreeHostWin's o
mlamouri (slow - plz ping) 2014/07/21 17:15:09 I am using a coalescing timer in ScreenWin because
+ ->OnDisplayChanged();
}
void DesktopWindowTreeHostWin::HandleBeginWMSizeMove() {
« no previous file with comments | « ui/gfx/screen_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698