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

Side by Side Diff: services/ui/public/interfaces/window_manager.mojom

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 module ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/frame_sink_id.mojom"; 7 import "cc/ipc/frame_sink_id.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 8 import "cc/ipc/local_surface_id.mojom";
9 import "services/ui/public/interfaces/cursor/cursor.mojom"; 9 import "services/ui/public/interfaces/cursor/cursor.mojom";
10 import "services/ui/public/interfaces/event_matcher.mojom"; 10 import "services/ui/public/interfaces/event_matcher.mojom";
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // specified window. 292 // specified window.
293 WmRequestClose(uint32 window_id); 293 WmRequestClose(uint32 window_id);
294 294
295 // Sets the frame decoration constants of the display the window manager is 295 // Sets the frame decoration constants of the display the window manager is
296 // associated with. 296 // associated with.
297 WmSetFrameDecorationValues(FrameDecorationValues values); 297 WmSetFrameDecorationValues(FrameDecorationValues values);
298 298
299 // Sets the cursor that the non-client areas of the window should use. 299 // Sets the cursor that the non-client areas of the window should use.
300 WmSetNonClientCursor(uint32 window_id, CursorData cursor); 300 WmSetNonClientCursor(uint32 window_id, CursorData cursor);
301 301
302 // Locks and unlocks the cursor globally. Used during window management tasks
303 // where the cursor shouldn't change.
304 WmLockCursor();
305 WmUnlockCursor();
306
307 // Hides and unhides the cursor globally. Used during window management tasks.
308 WmShowCursor();
309 WmHideCursor();
310
311 // Sets a global cursor which overrides per-window cursors. Pass null to
312 // clear.
313 WmSetGlobalOverrideCursor(CursorData? cursor);
314
302 // Response from WmCreateTopLevelWindow() informing the client of the id for 315 // Response from WmCreateTopLevelWindow() informing the client of the id for
303 // the new window. 316 // the new window.
304 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 317 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
305 318
306 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 319 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
307 // that was passed to OnAccelerator(). If the accelerator is a pre-target 320 // that was passed to OnAccelerator(). If the accelerator is a pre-target
308 // handler and |event_result| is UNHANDLED, then |properties| is added to 321 // handler and |event_result| is UNHANDLED, then |properties| is added to
309 // the KeyEvent that is dispatched to the client with the focused window. 322 // the KeyEvent that is dispatched to the client with the focused window.
310 OnAcceleratorAck(uint32 ack_id, 323 OnAcceleratorAck(uint32 ack_id,
311 EventResult event_result, 324 EventResult event_result,
312 map<string, array<uint8>> properties); 325 map<string, array<uint8>> properties);
313 }; 326 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698