| 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/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace views { |
| 12 namespace corewm { |
| 13 class CursorManager; |
| 14 } |
| 15 } |
| 16 |
| 11 namespace ash { | 17 namespace ash { |
| 12 | |
| 13 class CursorManager; | |
| 14 | |
| 15 namespace test { | 18 namespace test { |
| 16 | 19 |
| 17 // Use the api in this class to test CursorManager. | 20 // Use the api in this class to test CursorManager. |
| 18 class CursorManagerTestApi { | 21 class CursorManagerTestApi { |
| 19 public: | 22 public: |
| 20 explicit CursorManagerTestApi(CursorManager* cursor_manager); | 23 explicit CursorManagerTestApi(views::corewm::CursorManager* cursor_manager); |
| 21 ~CursorManagerTestApi(); | 24 ~CursorManagerTestApi(); |
| 22 | 25 |
| 23 gfx::NativeCursor GetCurrentCursor() const; | 26 gfx::NativeCursor GetCurrentCursor() const; |
| 24 float GetDeviceScaleFactor() const; | 27 float GetDeviceScaleFactor() const; |
| 25 | 28 |
| 26 private: | 29 private: |
| 27 CursorManager* cursor_manager_; | 30 views::corewm::CursorManager* cursor_manager_; |
| 28 | 31 |
| 29 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi); | 32 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi); |
| 30 }; | 33 }; |
| 31 | 34 |
| 32 } // namespace test | 35 } // namespace test |
| 33 } // namespace ash | 36 } // namespace ash |
| 34 | 37 |
| 35 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_ | 38 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_ |
| OLD | NEW |