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/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
10 #include "ui/wm/core/native_cursor_manager_delegate.h" | 10 #include "ui/wm/core/native_cursor_manager_delegate.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 NativeCursorManagerDelegate* delegate) = 0; | 36 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 NativeCursorManagerDelegate* delegate) = 0; | 43 NativeCursorManagerDelegate* delegate) = 0; |
44 | 44 |
45 // A request to set the cursor set. | 45 // A request to set the cursor set. |
46 virtual void SetCursorSet( | 46 virtual void SetCursorSize(ui::CursorSize cursor_size, |
47 ui::CursorSetType cursor_set, | 47 NativeCursorManagerDelegate* delegate) = 0; |
48 NativeCursorManagerDelegate* delegate) = 0; | |
49 | 48 |
50 // A request to set whether mouse events are disabled. At minimum, | 49 // A request to set whether mouse events are disabled. At minimum, |
51 // implementer should call NativeCursorManagerDelegate:: | 50 // implementer should call NativeCursorManagerDelegate:: |
52 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. | 51 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. |
53 virtual void SetMouseEventsEnabled( | 52 virtual void SetMouseEventsEnabled( |
54 bool enabled, | 53 bool enabled, |
55 NativeCursorManagerDelegate* delegate) = 0; | 54 NativeCursorManagerDelegate* delegate) = 0; |
56 }; | 55 }; |
57 | 56 |
58 } // namespace wm | 57 } // namespace wm |
59 | 58 |
60 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 59 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
OLD | NEW |