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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 10919135: Move ash specific cursor code to CursorManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests and rebase Created 8 years, 3 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: ash/display/mouse_cursor_event_filter.cc
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc
index 2973ef8b545fc386963807c42496429dae372491..469db416c15aa664b9d6f859830ff0a6ea29da36 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -153,6 +153,8 @@ bool MouseCursorEventFilter::WarpMouseCursorIfNecessary(
if (dst_root->bounds().Contains(point_in_dst_screen)) {
DCHECK_NE(dst_root, current_root);
dst_root->MoveCursorTo(point_in_dst_screen);
+ ash::Shell::GetInstance()->cursor_manager()->SetDeviceScaleFactor(
+ dst_root->AsRootWindowHostDelegate()->GetDeviceScaleFactor());
return true;
}
return false;
« no previous file with comments | « ash/ash.gyp ('k') | ash/drag_drop/drag_drop_controller.h » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698