Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: ui/aura/mus/window_manager_delegate.h

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: General cleanup. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 unhides the cursor.
71 virtual void ShowCursor() = 0;
72
73 // Globally hides the cursor.
74 virtual void HideCursor() = 0;
75
76 // Sets a cursor which is used instead of the per window cursors. Pass a
77 // nullopt in |cursor| to clear the override.
78 virtual void SetGlobalOverrideCursor(
79 base::Optional<ui::CursorData> cursor) = 0;
80
63 // Requests the client embedded in |window| to close the window. Only 81 // 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|, 82 // applicable to top-level windows. If a client is not embedded in |window|,
65 // this does nothing. 83 // this does nothing.
66 virtual void RequestClose(Window* window) = 0; 84 virtual void RequestClose(Window* window) = 0;
67 85
68 // Blocks until the initial displays have been received, or if displays are 86 // Blocks until the initial displays have been received, or if displays are
69 // not automatically created until the connection to mus has been 87 // not automatically created until the connection to mus has been
70 // established. 88 // established.
71 virtual bool WaitForInitialDisplays() = 0; 89 virtual bool WaitForInitialDisplays() = 0;
72 90
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // window. 213 // window.
196 virtual void OnWmDeactivateWindow(Window* window) = 0; 214 virtual void OnWmDeactivateWindow(Window* window) = 0;
197 215
198 protected: 216 protected:
199 virtual ~WindowManagerDelegate() {} 217 virtual ~WindowManagerDelegate() {}
200 }; 218 };
201 219
202 } // namespace ui 220 } // namespace ui
203 221
204 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 222 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698