OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Queues changes to the cursor instead of applying them instantly. Queued | 63 // Queues changes to the cursor instead of applying them instantly. Queued |
64 // changes will be executed on UnlockCursor(). | 64 // changes will be executed on UnlockCursor(). |
65 virtual void LockCursor() = 0; | 65 virtual void LockCursor() = 0; |
66 | 66 |
67 // Executes queued changes. | 67 // Executes queued changes. |
68 virtual void UnlockCursor() = 0; | 68 virtual void UnlockCursor() = 0; |
69 | 69 |
70 // Globally shows or hides the cursor. | 70 // Globally shows or hides the cursor. |
71 virtual void SetCursorVisible(bool visible) = 0; | 71 virtual void SetCursorVisible(bool visible) = 0; |
72 | 72 |
| 73 // Globally sets whether we use normal or large cursors. |
| 74 virtual void SetCursorSize(ui::CursorSize cursor_size) = 0; |
| 75 |
73 // Sets a cursor which is used instead of the per window cursors. Pass a | 76 // Sets a cursor which is used instead of the per window cursors. Pass a |
74 // nullopt in |cursor| to clear the override. | 77 // nullopt in |cursor| to clear the override. |
75 virtual void SetGlobalOverrideCursor( | 78 virtual void SetGlobalOverrideCursor( |
76 base::Optional<ui::CursorData> cursor) = 0; | 79 base::Optional<ui::CursorData> cursor) = 0; |
77 | 80 |
78 // Requests the client embedded in |window| to close the window. Only | 81 // Requests the client embedded in |window| to close the window. Only |
79 // applicable to top-level windows. If a client is not embedded in |window|, | 82 // applicable to top-level windows. If a client is not embedded in |window|, |
80 // this does nothing. | 83 // this does nothing. |
81 virtual void RequestClose(Window* window) = 0; | 84 virtual void RequestClose(Window* window) = 0; |
82 | 85 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // window. | 220 // window. |
218 virtual void OnWmDeactivateWindow(Window* window) = 0; | 221 virtual void OnWmDeactivateWindow(Window* window) = 0; |
219 | 222 |
220 protected: | 223 protected: |
221 virtual ~WindowManagerDelegate() {} | 224 virtual ~WindowManagerDelegate() {} |
222 }; | 225 }; |
223 | 226 |
224 } // namespace ui | 227 } // namespace ui |
225 | 228 |
226 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 229 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |