OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 5 #ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "ui/wm/core/native_cursor_manager_delegate.h" | 9 #include "ui/wm/core/native_cursor_manager_delegate.h" |
10 #include "ui/wm/core/wm_core_export.h" | 10 #include "ui/wm/core/wm_core_export.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 gfx::NativeCursor cursor, | 35 gfx::NativeCursor cursor, |
36 wm::NativeCursorManagerDelegate* delegate) = 0; | 36 wm::NativeCursorManagerDelegate* delegate) = 0; |
37 | 37 |
38 // A request to set the visibility of the cursor. At minimum, implementer | 38 // A request to set the visibility of the cursor. At minimum, implementer |
39 // should call NativeCursorManagerDelegate::CommitVisibility() with whatever | 39 // should call NativeCursorManagerDelegate::CommitVisibility() with whatever |
40 // the visibility is. | 40 // the visibility is. |
41 virtual void SetVisibility( | 41 virtual void SetVisibility( |
42 bool visible, | 42 bool visible, |
43 wm::NativeCursorManagerDelegate* delegate) = 0; | 43 wm::NativeCursorManagerDelegate* delegate) = 0; |
44 | 44 |
45 // A request to set the scale of the cursor icon. | 45 // A request to set the cursor set. |
46 virtual void SetScale( | |
47 float scale, | |
48 wm::NativeCursorManagerDelegate* delegate) = 0; | |
49 | |
50 // A request to set the scale of the cursor icon. | |
51 virtual void SetCursorSet( | 46 virtual void SetCursorSet( |
52 ui::CursorSetType cursor_set, | 47 ui::CursorSetType cursor_set, |
53 wm::NativeCursorManagerDelegate* delegate) = 0; | 48 wm::NativeCursorManagerDelegate* delegate) = 0; |
54 | 49 |
55 // A request to set whether mouse events are disabled. At minimum, | 50 // A request to set whether mouse events are disabled. At minimum, |
56 // implementer should call NativeCursorManagerDelegate:: | 51 // implementer should call NativeCursorManagerDelegate:: |
57 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. | 52 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. |
58 virtual void SetMouseEventsEnabled( | 53 virtual void SetMouseEventsEnabled( |
59 bool enabled, | 54 bool enabled, |
60 wm::NativeCursorManagerDelegate* delegate) = 0; | 55 wm::NativeCursorManagerDelegate* delegate) = 0; |
61 }; | 56 }; |
62 | 57 |
63 } // namespace wm | 58 } // namespace wm |
64 | 59 |
65 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 60 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
OLD | NEW |