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

Side by Side Diff: ash/display/extended_mouse_warp_controller.h

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H 5 #ifndef ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H
6 #define ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H 6 #define ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H
7 7
8 #include "ash/display/mouse_warp_controller.h" 8 #include "ash/display/mouse_warp_controller.h"
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace aura { 17 namespace aura {
18 class Window; 18 class Window;
19 } 19 }
20 20
21 namespace gfx { 21 namespace gfx {
22 class Point; 22 class Point;
23 class Display; 23 class Display;
24 } 24 }
25 25
26 namespace display {
27 using Display = gfx::Display;
28 }
29
26 namespace ash { 30 namespace ash {
27 namespace test { 31 namespace test {
28 class DisplayManagerTestApi; 32 class DisplayManagerTestApi;
29 } 33 }
30 class SharedDisplayEdgeIndicator; 34 class SharedDisplayEdgeIndicator;
31 35
32 // A MouseWarpController used in extended display mode. 36 // A MouseWarpController used in extended display mode.
33 class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController { 37 class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController {
34 public: 38 public:
35 explicit ExtendedMouseWarpController(aura::Window* drag_source); 39 explicit ExtendedMouseWarpController(aura::Window* drag_source);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Returns true if/ the cursor was moved. 106 // Returns true if/ the cursor was moved.
103 bool WarpMouseCursorInNativeCoords(const gfx::Point& point_in_native, 107 bool WarpMouseCursorInNativeCoords(const gfx::Point& point_in_native,
104 const gfx::Point& point_in_screen, 108 const gfx::Point& point_in_screen,
105 bool update_mouse_location_now); 109 bool update_mouse_location_now);
106 110
107 // Creates WarpRegion between display |a| and |b|. 111 // Creates WarpRegion between display |a| and |b|.
108 // |drag_source_dispaly_id| is used to indicate in which display a 112 // |drag_source_dispaly_id| is used to indicate in which display a
109 // drag is started, or invalid id passed if this is not for 113 // drag is started, or invalid id passed if this is not for
110 // dragging. Returns null scoped_ptr if two displays do not share 114 // dragging. Returns null scoped_ptr if two displays do not share
111 // the edge. 115 // the edge.
112 std::unique_ptr<WarpRegion> CreateWarpRegion(const gfx::Display& a, 116 std::unique_ptr<WarpRegion> CreateWarpRegion(const display::Display& a,
113 const gfx::Display& b, 117 const display::Display& b,
114 int64_t drag_source_dispay_id); 118 int64_t drag_source_dispay_id);
115 119
116 void allow_non_native_event_for_test() { allow_non_native_event_ = true; } 120 void allow_non_native_event_for_test() { allow_non_native_event_ = true; }
117 121
118 // The root window in which the dragging started. 122 // The root window in which the dragging started.
119 aura::Window* drag_source_root_; 123 aura::Window* drag_source_root_;
120 124
121 bool enabled_; 125 bool enabled_;
122 126
123 bool allow_non_native_event_; 127 bool allow_non_native_event_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(ExtendedMouseWarpController); 129 DISALLOW_COPY_AND_ASSIGN(ExtendedMouseWarpController);
126 }; 130 };
127 131
128 } // namespace ash 132 } // namespace ash
129 133
130 #endif // ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H 134 #endif // ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H
OLDNEW
« no previous file with comments | « ash/display/event_transformation_handler.cc ('k') | ash/display/extended_mouse_warp_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698