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

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

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: Created 4 years, 2 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 display { 21 namespace display {
22 class Display; 22 class Display;
23 // namespace test {
kylechar 2016/10/24 14:55:15 Delete?
rjkroege 2016/10/25 23:30:26 Done.
24 // class DisplayManagerTestApi;
25 //}
23 } 26 }
24 27
25 namespace gfx { 28 namespace gfx {
26 class Point; 29 class Point;
27 } 30 }
28 31
29 namespace ash { 32 namespace ash {
30 namespace test { 33 namespace test {
31 class AshTestBase; 34 class AshTestBase;
32 class DisplayManagerTestApi;
33 } 35 }
34 class SharedDisplayEdgeIndicator; 36 class SharedDisplayEdgeIndicator;
35 37
36 // A MouseWarpController used in extended display mode. 38 // A MouseWarpController used in extended display mode.
37 class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController { 39 class ASH_EXPORT ExtendedMouseWarpController : public MouseWarpController {
38 public: 40 public:
39 explicit ExtendedMouseWarpController(aura::Window* drag_source); 41 explicit ExtendedMouseWarpController(aura::Window* drag_source);
40 ~ExtendedMouseWarpController() override; 42 ~ExtendedMouseWarpController() override;
41 43
42 // MouseWarpController: 44 // MouseWarpController:
43 bool WarpMouseCursor(ui::MouseEvent* event) override; 45 bool WarpMouseCursor(ui::MouseEvent* event) override;
44 void SetEnabled(bool enable) override; 46 void SetEnabled(bool enable) override;
45 47
46 private: 48 private:
47 friend class test::AshTestBase; 49 friend class test::AshTestBase;
48 friend class test::DisplayManagerTestApi; 50 // friend class display::test::DisplayManagerTestApi;
kylechar 2016/10/24 14:55:15 Delete?
rjkroege 2016/10/25 23:30:26 Done.
49 friend class ExtendedMouseWarpControllerTest; 51 friend class ExtendedMouseWarpControllerTest;
50 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest, 52 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest,
51 IndicatorBoundsTestThreeDisplays); 53 IndicatorBoundsTestThreeDisplays);
52 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest, 54 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest,
53 IndicatorBoundsTestThreeDisplaysWithLayout); 55 IndicatorBoundsTestThreeDisplaysWithLayout);
54 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest, 56 FRIEND_TEST_ALL_PREFIXES(ExtendedMouseWarpControllerTest,
55 IndicatorBoundsTestThreeDisplaysWithLayout2); 57 IndicatorBoundsTestThreeDisplaysWithLayout2);
56 58
57 // Defined in header file because tests need access. 59 // Defined in header file because tests need access.
58 class ASH_EXPORT WarpRegion { 60 class ASH_EXPORT WarpRegion {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool enabled_; 128 bool enabled_;
127 129
128 bool allow_non_native_event_; 130 bool allow_non_native_event_;
129 131
130 DISALLOW_COPY_AND_ASSIGN(ExtendedMouseWarpController); 132 DISALLOW_COPY_AND_ASSIGN(ExtendedMouseWarpController);
131 }; 133 };
132 134
133 } // namespace ash 135 } // namespace ash
134 136
135 #endif // ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H 137 #endif // ASH_DISPLAY_EXTENDED_MOUSE_WARP_CONTROLLER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698