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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace ash { | 23 namespace ash { |
24 | 24 |
25 namespace test { | 25 namespace test { |
26 class CursorManagerTestApi; | 26 class CursorManagerTestApi; |
27 } | 27 } |
28 | 28 |
29 // This does the ash-specific setting of cursor details like cursor | 29 // This does the ash-specific setting of cursor details like cursor |
30 // visibility. It communicates back with the CursorManager through the | 30 // visibility. It communicates back with the CursorManager through the |
31 // NativeCursorManagerDelegate interface, which receives messages about what | 31 // NativeCursorManagerDelegate interface, which receives messages about what |
32 // changes were acted on. | 32 // changes were acted on. |
33 class ASH_EXPORT AshNativeCursorManager | 33 class ASH_EXPORT AshNativeCursorManager : public ::wm::NativeCursorManager { |
34 : public ::wm::NativeCursorManager { | |
35 public: | 34 public: |
36 AshNativeCursorManager(); | 35 AshNativeCursorManager(); |
37 ~AshNativeCursorManager() override; | 36 ~AshNativeCursorManager() override; |
38 | 37 |
39 // Toggle native cursor enabled/disabled. | 38 // Toggle native cursor enabled/disabled. |
40 // The native cursor is enabled by default. When disabled, we hide the native | 39 // The native cursor is enabled by default. When disabled, we hide the native |
41 // cursor regardless of visibility state, and let CursorWindowManager draw | 40 // cursor regardless of visibility state, and let CursorWindowManager draw |
42 // the cursor. | 41 // the cursor. |
43 void SetNativeCursorEnabled(bool enabled); | 42 void SetNativeCursorEnabled(bool enabled); |
44 | 43 |
(...skipping 19 matching lines...) Expand all Loading... |
64 bool native_cursor_enabled_; | 63 bool native_cursor_enabled_; |
65 | 64 |
66 std::unique_ptr<ui::ImageCursors> image_cursors_; | 65 std::unique_ptr<ui::ImageCursors> image_cursors_; |
67 | 66 |
68 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); | 67 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); |
69 }; | 68 }; |
70 | 69 |
71 } // namespace ash | 70 } // namespace ash |
72 | 71 |
73 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 72 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
OLD | NEW |