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_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 5 #ifndef ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
6 #define ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 6 #define ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 #include "ui/gfx/point.h" | 14 #include "ui/gfx/point.h" |
15 #include "ui/wm/core/native_cursor_manager.h" | 15 #include "ui/wm/core/native_cursor_manager.h" |
16 #include "ui/wm/core/native_cursor_manager_delegate.h" | 16 #include "ui/wm/core/native_cursor_manager_delegate.h" |
17 | 17 |
| 18 namespace ui { |
| 19 class ImageCursors; |
| 20 } |
| 21 |
18 namespace ash { | 22 namespace ash { |
19 | 23 |
20 namespace test { | 24 namespace test { |
21 class CursorManagerTestApi; | 25 class CursorManagerTestApi; |
22 } | 26 } |
23 | 27 |
24 class ImageCursors; | |
25 | |
26 // This does the ash-specific setting of cursor details like cursor | 28 // This does the ash-specific setting of cursor details like cursor |
27 // visibility. It communicates back with the CursorManager through the | 29 // visibility. It communicates back with the CursorManager through the |
28 // NativeCursorManagerDelegate interface, which receives messages about what | 30 // NativeCursorManagerDelegate interface, which receives messages about what |
29 // changes were acted on. | 31 // changes were acted on. |
30 class ASH_EXPORT AshNativeCursorManager | 32 class ASH_EXPORT AshNativeCursorManager |
31 : public ::wm::NativeCursorManager { | 33 : public ::wm::NativeCursorManager { |
32 public: | 34 public: |
33 AshNativeCursorManager(); | 35 AshNativeCursorManager(); |
34 virtual ~AshNativeCursorManager(); | 36 virtual ~AshNativeCursorManager(); |
35 | 37 |
(...skipping 21 matching lines...) Expand all Loading... |
57 ::wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 59 ::wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
58 virtual void SetMouseEventsEnabled( | 60 virtual void SetMouseEventsEnabled( |
59 bool enabled, | 61 bool enabled, |
60 ::wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 62 ::wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
61 | 63 |
62 // The cursor location where the cursor was disabled. | 64 // The cursor location where the cursor was disabled. |
63 gfx::Point disabled_cursor_location_; | 65 gfx::Point disabled_cursor_location_; |
64 | 66 |
65 bool native_cursor_enabled_; | 67 bool native_cursor_enabled_; |
66 | 68 |
67 scoped_ptr<ImageCursors> image_cursors_; | 69 scoped_ptr<ui::ImageCursors> image_cursors_; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); | 71 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace ash | 74 } // namespace ash |
73 | 75 |
74 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 76 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
OLD | NEW |