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

Unified Diff: ash/display/extended_mouse_warp_controller.h

Issue 1631023002: Fix moving the mouse between two displays after the secondary display becomes primary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 11 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/extended_mouse_warp_controller.h
diff --git a/ash/display/extended_mouse_warp_controller.h b/ash/display/extended_mouse_warp_controller.h
index d1502064f7b99b9cf7f13eb45c9f1fef864b66cf..0ddc2d07134ee5ed0e77ef3c3ae699700d28112e 100644
--- a/ash/display/extended_mouse_warp_controller.h
+++ b/ash/display/extended_mouse_warp_controller.h
@@ -52,7 +52,7 @@ class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController {
IndicatorBoundsTestThreeDisplays);
// Defined in header file because tests need access.
- struct WarpRegion {
+ class WarpRegion {
public:
WarpRegion(int64_t a_display_id,
int64_t b_display_id,
@@ -87,8 +87,8 @@ class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController {
std::vector<scoped_ptr<WarpRegion>> warp_regions_;
// Registers the WarpRegion; also displays a drag indicator on the screen if
- // |drag_source| is true.
- void AddWarpRegion(scoped_ptr<WarpRegion> region, bool drag_source);
+ // |has_drag_source| is true.
+ void AddWarpRegion(scoped_ptr<WarpRegion> region, bool has_drag_source);
// Warps the mouse cursor to an alternate root window when the
// mouse location in |event|, hits the edge of the event target's root and
« no previous file with comments | « no previous file | ash/display/extended_mouse_warp_controller.cc » ('j') | ash/display/window_tree_host_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698