| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual void AddAccelerators( | 53 virtual void AddAccelerators( |
| 54 std::vector<ui::mojom::WmAcceleratorPtr> accelerators, | 54 std::vector<ui::mojom::WmAcceleratorPtr> accelerators, |
| 55 const base::Callback<void(bool)>& callback) = 0; | 55 const base::Callback<void(bool)>& callback) = 0; |
| 56 virtual void RemoveAccelerator(uint32_t id) = 0; | 56 virtual void RemoveAccelerator(uint32_t id) = 0; |
| 57 virtual void AddActivationParent(Window* window) = 0; | 57 virtual void AddActivationParent(Window* window) = 0; |
| 58 virtual void RemoveActivationParent(Window* window) = 0; | 58 virtual void RemoveActivationParent(Window* window) = 0; |
| 59 virtual void ActivateNextWindow() = 0; | 59 virtual void ActivateNextWindow() = 0; |
| 60 virtual void SetExtendedHitArea(Window* window, | 60 virtual void SetExtendedHitArea(Window* window, |
| 61 const gfx::Insets& hit_area) = 0; | 61 const gfx::Insets& hit_area) = 0; |
| 62 | 62 |
| 63 // Queues changes to the cursor instead of applying them instantly. Queued |
| 64 // changes will be executed on UnlockCursor(). |
| 65 virtual void LockCursor() = 0; |
| 66 |
| 67 // Executes queued changes. |
| 68 virtual void UnlockCursor() = 0; |
| 69 |
| 70 // Globally shows or hides the cursor. |
| 71 virtual void SetCursorVisible(bool visible) = 0; |
| 72 |
| 73 // Sets a cursor which is used instead of the per window cursors. Pass a |
| 74 // nullopt in |cursor| to clear the override. |
| 75 virtual void SetGlobalOverrideCursor( |
| 76 base::Optional<ui::CursorData> cursor) = 0; |
| 77 |
| 63 // Requests the client embedded in |window| to close the window. Only | 78 // Requests the client embedded in |window| to close the window. Only |
| 64 // applicable to top-level windows. If a client is not embedded in |window|, | 79 // applicable to top-level windows. If a client is not embedded in |window|, |
| 65 // this does nothing. | 80 // this does nothing. |
| 66 virtual void RequestClose(Window* window) = 0; | 81 virtual void RequestClose(Window* window) = 0; |
| 67 | 82 |
| 68 // Blocks until the initial displays have been received, or if displays are | 83 // Blocks until the initial displays have been received, or if displays are |
| 69 // not automatically created until the connection to mus has been | 84 // not automatically created until the connection to mus has been |
| 70 // established. | 85 // established. |
| 71 virtual bool WaitForInitialDisplays() = 0; | 86 virtual bool WaitForInitialDisplays() = 0; |
| 72 | 87 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // window. | 210 // window. |
| 196 virtual void OnWmDeactivateWindow(Window* window) = 0; | 211 virtual void OnWmDeactivateWindow(Window* window) = 0; |
| 197 | 212 |
| 198 protected: | 213 protected: |
| 199 virtual ~WindowManagerDelegate() {} | 214 virtual ~WindowManagerDelegate() {} |
| 200 }; | 215 }; |
| 201 | 216 |
| 202 } // namespace ui | 217 } // namespace ui |
| 203 | 218 |
| 204 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 219 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |