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

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

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: GetNativeScreen Created 4 years, 11 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
Index: ui/views/widget/desktop_aura/x11_window_event_filter.cc
diff --git a/ui/views/widget/desktop_aura/x11_window_event_filter.cc b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
index c8f1065d31e23e75bb5962e3f747b2fc358ba7fd..39c2da45a17857d162fdafb0f1c0b8ca4ebfc9b5 100644
--- a/ui/views/widget/desktop_aura/x11_window_event_filter.cc
+++ b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
@@ -151,7 +151,7 @@ void X11WindowEventFilter::OnClickedMaximizeButton(ui::MouseEvent* event) {
if (!widget)
return;
- gfx::Screen* screen = gfx::Screen::GetNativeScreen();
+ gfx::Screen* screen = gfx::Screen::GetScreen();
gfx::Rect display_work_area =
screen->GetDisplayNearestWindow(target).work_area();
oshima 2016/01/19 20:44:31 inline?
scottmg 2016/01/19 21:55:58 Done.
gfx::Rect bounds = widget->GetWindowBoundsInScreen();

Powered by Google App Engine
This is Rietveld 408576698