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

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: 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 fafe89757caab1563ab1c7135812a433e8635f47..dd2e04b63ed7b1464a0c12273e48cbebeec789e0 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -152,6 +152,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;

Powered by Google App Engine
This is Rietveld 408576698