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

Unified Diff: ash/display/display_controller.h

Issue 902123002: Fix initial hiding and centering cursor on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index 73822e859b3e15881478404a6b7cc5120ac0e5a7..d9b2d6342ebe8496bd1d436baa4dd7af8cebdae9 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -211,10 +211,16 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
scoped_ptr<CursorWindowController> cursor_window_controller_;
scoped_ptr<MirrorWindowController> mirror_window_controller_;
- // Stores the curent cursor location (in native coordinates) used to
- // restore the cursor location when display configuration
- // changed.
+ // Stores the current cursor location (in native coordinates and screen
+ // coordinates respectively). The locations are used to restore the cursor
+ // location when the display configuration changes and to determine whether
+ // the mouse should be moved after a display configuration change.
gfx::Point cursor_location_in_native_coords_for_restore_;
+ gfx::Point cursor_location_in_screen_coords_for_restore_;
+
+ // Stores the cursor's display. The id is used to determine whether the mouse
+ // should be moved after a display configuration change.
+ int64 cursor_display_id_for_restore_;
base::WeakPtrFactory<DisplayController> weak_ptr_factory_;
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698