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

Unified Diff: ui/views/mouse_watcher.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: mac compile fix 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
Index: ui/views/mouse_watcher.cc
diff --git a/ui/views/mouse_watcher.cc b/ui/views/mouse_watcher.cc
index 54db66054730e8f2b38b766a75f29e44cf2fd996..e96a46e5ae992d28a7973d22d891174cb3341f75 100644
--- a/ui/views/mouse_watcher.cc
+++ b/ui/views/mouse_watcher.cc
@@ -86,7 +86,8 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer {
// Called from the message loop observer when a mouse movement has occurred.
void HandleGlobalMouseMoveEvent(MouseWatcherHost::MouseEventType event_type) {
bool contained = host()->Contains(
- gfx::Screen::GetCursorScreenPoint(), event_type);
+ gfx::Screen::GetCursorScreenPoint(gfx::Screen::BadTwoWorldsContext()),
+ event_type);
if (!contained) {
// Mouse moved outside the host's zone, start a timer to notify the
// listener.

Powered by Google App Engine
This is Rietveld 408576698