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

Side by Side Diff: ash/test/mirror_window_test_api.h

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: OK, it can't be explicit for mac. Created 3 years, 8 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
« no previous file with comments | « ash/shell.cc ('k') | ash/test/mirror_window_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_TEST_MIRROR_WINDOW_TEST_API_H_ 5 #ifndef ASH_TEST_MIRROR_WINDOW_TEST_API_H_
6 #define ASH_TEST_MIRROR_WINDOW_TEST_API_H_ 6 #define ASH_TEST_MIRROR_WINDOW_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 class WindowTreeHost; 12 class WindowTreeHost;
13 } 13 }
14 14
15 namespace gfx { 15 namespace gfx {
16 class Point; 16 class Point;
17 } 17 }
18 18
19 namespace ui {
20 enum class CursorType;
21 }
22
19 namespace ash { 23 namespace ash {
20 24
21 namespace test { 25 namespace test {
22 26
23 class MirrorWindowTestApi { 27 class MirrorWindowTestApi {
24 public: 28 public:
25 MirrorWindowTestApi() {} 29 MirrorWindowTestApi() {}
26 ~MirrorWindowTestApi() {} 30 ~MirrorWindowTestApi() {}
27 31
28 const aura::WindowTreeHost* GetHost() const; 32 const aura::WindowTreeHost* GetHost() const;
29 33
30 int GetCurrentCursorType() const; 34 ui::CursorType GetCurrentCursorType() const;
31 35
32 // Returns the position of the hot point within the cursor. This is 36 // Returns the position of the hot point within the cursor. This is
33 // unaffected by the cursor location. 37 // unaffected by the cursor location.
34 const gfx::Point& GetCursorHotPoint() const; 38 const gfx::Point& GetCursorHotPoint() const;
35 39
36 // Returns the position of the cursor hot point in root window coordinates. 40 // Returns the position of the cursor hot point in root window coordinates.
37 // This should be the same as the native cursor location. 41 // This should be the same as the native cursor location.
38 gfx::Point GetCursorHotPointLocationInRootWindow() const; 42 gfx::Point GetCursorHotPointLocationInRootWindow() const;
39 43
40 const aura::Window* GetCursorWindow() const; 44 const aura::Window* GetCursorWindow() const;
41 gfx::Point GetCursorLocation() const; 45 gfx::Point GetCursorLocation() const;
42 46
43 private: 47 private:
44 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi); 48 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi);
45 }; 49 };
46 50
47 } // namespace test 51 } // namespace test
48 } // namespace ash 52 } // namespace ash
49 53
50 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_ 54 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/test/mirror_window_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698