| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CURSOR_MANAGER_TEST_API_H_ | 5 #ifndef ASH_TEST_CURSOR_MANAGER_TEST_API_H_ |
| 6 #define ASH_TEST_CURSOR_MANAGER_TEST_API_H_ | 6 #define ASH_TEST_CURSOR_MANAGER_TEST_API_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
| 10 #include "ui/gfx/display.h" | |
| 11 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 12 | 11 |
| 12 namespace gfx { |
| 13 class Display; |
| 14 } |
| 15 |
| 13 namespace wm { | 16 namespace wm { |
| 14 class CursorManager; | 17 class CursorManager; |
| 15 } | 18 } |
| 16 | 19 |
| 17 namespace ash { | 20 namespace ash { |
| 18 namespace test { | 21 namespace test { |
| 19 | 22 |
| 20 // Use the api in this class to test CursorManager. | 23 // Use the api in this class to test CursorManager. |
| 21 class CursorManagerTestApi { | 24 class CursorManagerTestApi { |
| 22 public: | 25 public: |
| 23 explicit CursorManagerTestApi(::wm::CursorManager* cursor_manager); | 26 explicit CursorManagerTestApi(::wm::CursorManager* cursor_manager); |
| 24 ~CursorManagerTestApi(); | 27 ~CursorManagerTestApi(); |
| 25 | 28 |
| 26 ui::CursorSetType GetCurrentCursorSet() const; | 29 ui::CursorSetType GetCurrentCursorSet() const; |
| 27 gfx::NativeCursor GetCurrentCursor() const; | 30 gfx::NativeCursor GetCurrentCursor() const; |
| 28 gfx::Display::Rotation GetCurrentCursorRotation() const; | 31 gfx::Display GetDisplay() const; |
| 29 float GetCurrentCursorScale() const; | |
| 30 | 32 |
| 31 private: | 33 private: |
| 32 ::wm::CursorManager* cursor_manager_; | 34 ::wm::CursorManager* cursor_manager_; |
| 33 | 35 |
| 34 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi); | 36 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi); |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 } // namespace test | 39 } // namespace test |
| 38 } // namespace ash | 40 } // namespace ash |
| 39 | 41 |
| 40 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_ | 42 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_ |
| OLD | NEW |