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

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: 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
Index: ui/views/mouse_watcher.cc
diff --git a/ui/views/mouse_watcher.cc b/ui/views/mouse_watcher.cc
index 54db66054730e8f2b38b766a75f29e44cf2fd996..c3200847a245b40654e55211241a6200150141c9 100644
--- a/ui/views/mouse_watcher.cc
+++ b/ui/views/mouse_watcher.cc
@@ -86,7 +86,9 @@ 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);
+ // TODO(scottmg): Native is wrong http://crbug.com/133312
+ gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(),
+ event_type);
if (!contained) {
// Mouse moved outside the host's zone, start a timer to notify the
// listener.
« no previous file with comments | « ui/views/examples/content_client/examples_browser_main_parts.cc ('k') | ui/views/mouse_watcher_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698