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

Unified Diff: ash/display/display_controller.h

Issue 10835047: Allow the cursor to warp even when a window is dragged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 4 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/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index 7a151fbfe1a0c12f72c40805f5a06e2265ef1512..c85dd6e4aa328adf6a197d1b20649b0c9fdba5d1 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -68,13 +68,18 @@ class ASH_EXPORT DisplayController : public aura::DisplayObserver {
}
void SetSecondaryDisplayLayout(SecondaryDisplayLayout layout);
+ void set_allow_warp_during_lock(bool allow_warp_during_lock) {
sky 2012/08/03 17:07:18 This (or the field) needs a go description as to w
Yusuke Sato 2012/08/03 23:18:45 Add a detailed description to the field.
+ allow_warp_during_lock_ = allow_warp_during_lock;
Daniel Erat 2012/08/03 19:43:10 nit: s/allow_warp/allow_mouse_warp/ or similar
Yusuke Sato 2012/08/03 23:18:45 Done.
+ }
+
// Warps the mouse cursor to an alternate root window when the
// |point_in_root|, which is the location of the mouse cursor,
// hits or exceeds the edge of the |root_window| and the mouse cursor
// is considered to be in an alternate display. Returns true if
// the cursor was moved.
bool WarpMouseCursorIfNecessary(aura::RootWindow* root_window,
- const gfx::Point& point_in_root);
+ const gfx::Point& point_in_root,
+ bool is_cursor_locked);
// aura::DisplayObserver overrides:
virtual void OnDisplayBoundsChanged(
@@ -96,6 +101,9 @@ class ASH_EXPORT DisplayController : public aura::DisplayObserver {
SecondaryDisplayLayout secondary_display_layout_;
+ // If true, the cursor can warp even when it's locked.
Daniel Erat 2012/08/03 19:43:10 I'd prefer that we used "cursor" to refer just to
Yusuke Sato 2012/08/03 23:18:45 Fixed the comment. I'll rename MoveCursorTo if nec
+ bool allow_warp_during_lock_;
+
DISALLOW_COPY_AND_ASSIGN(DisplayController);
};

Powered by Google App Engine
This is Rietveld 408576698