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

Unified Diff: ui/views/touchui/touch_selection_controller_impl.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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/views/mouse_watcher_view_host.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/touchui/touch_selection_controller_impl.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
index 2e587764cb44dc7a949185b96fb7a8afb6c4a309..8b2858d7bae32f7e4afff2412a10665c6ca64eef 100644
--- a/ui/views/touchui/touch_selection_controller_impl.cc
+++ b/ui/views/touchui/touch_selection_controller_impl.cc
@@ -309,8 +309,8 @@ class TouchSelectionControllerImpl::TouchContextMenuView
position.y() - height,
total_width,
height);
- gfx::Rect monitor_bounds =
- gfx::Screen::GetDisplayNearestPoint(position).bounds();
+ gfx::Rect monitor_bounds = gfx::Screen::GetNativeScreen()->
+ GetDisplayNearestPoint(position).bounds();
widget_->SetBounds(widget_bounds.AdjustToFit(monitor_bounds));
Layout();
}
« no previous file with comments | « ui/views/mouse_watcher_view_host.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698