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

Unified Diff: ash/wm/maximize_bubble_controller.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 | « ash/wm/gestures/long_press_affordance_handler.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_bubble_controller.cc
diff --git a/ash/wm/maximize_bubble_controller.cc b/ash/wm/maximize_bubble_controller.cc
index a08c7601b9fac76c5b59f2a08b0c14dd9f732316..2c95bbfd10e1943401724214e0d616c030f46deb 100644
--- a/ash/wm/maximize_bubble_controller.cc
+++ b/ash/wm/maximize_bubble_controller.cc
@@ -490,7 +490,7 @@ void MaximizeBubbleController::Bubble::MouseMovedOutOfHost() {
// When we leave the bubble, we might be still be in gesture mode or over
// the maximize button. So only close if none of the other cases apply.
if (!owner_->frame_maximize_button()->is_snap_enabled()) {
- gfx::Point screen_location = gfx::Screen::GetCursorScreenPoint();
+ gfx::Point screen_location = Shell::GetScreen()->GetCursorScreenPoint();
if (!owner_->frame_maximize_button()->GetBoundsInScreen().Contains(
screen_location)) {
owner_->RequestDestructionThroughOwner();
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698