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(); |
} |