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