 Chromium Code Reviews
 Chromium Code Reviews Issue 2949353003:
  Implement large cursors in Mushrome.  (Closed)
    
  
    Issue 2949353003:
  Implement large cursors in Mushrome.  (Closed) 
  | 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 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 WmSetNonClientCursor(uint32 window_id, CursorData cursor); | 312 WmSetNonClientCursor(uint32 window_id, CursorData cursor); | 
| 313 | 313 | 
| 314 // Locks and unlocks the cursor globally. Used during window management tasks | 314 // Locks and unlocks the cursor globally. Used during window management tasks | 
| 315 // where the cursor shouldn't change. | 315 // where the cursor shouldn't change. | 
| 316 WmLockCursor(); | 316 WmLockCursor(); | 
| 317 WmUnlockCursor(); | 317 WmUnlockCursor(); | 
| 318 | 318 | 
| 319 // Shows and hides the cursor globally. Used during window management tasks. | 319 // Shows and hides the cursor globally. Used during window management tasks. | 
| 320 WmSetCursorVisible(bool visible); | 320 WmSetCursorVisible(bool visible); | 
| 321 | 321 | 
| 322 // Sets whether we're using normal or large cursors. | |
| 323 WmSetCursorSet(CursorSet cursor_set); | |
| 
Tom Sepez
2017/06/23 01:10:48
What happens if a bad renderer changes to large (o
 
Elliot Glaysher
2017/06/23 19:30:38
I'm not sure I understand the question. This metho
 | |
| 324 | |
| 322 // Sets a global cursor which overrides per-window cursors. Pass null to | 325 // Sets a global cursor which overrides per-window cursors. Pass null to | 
| 323 // clear. | 326 // clear. | 
| 324 WmSetGlobalOverrideCursor(CursorData? cursor); | 327 WmSetGlobalOverrideCursor(CursorData? cursor); | 
| 325 | 328 | 
| 326 // Moves the cursor to the given location on the given display. | 329 // Moves the cursor to the given location on the given display. | 
| 327 WmMoveCursorToDisplayLocation(gfx.mojom.Point display_pixels, | 330 WmMoveCursorToDisplayLocation(gfx.mojom.Point display_pixels, | 
| 328 int64 display_id); | 331 int64 display_id); | 
| 329 | 332 | 
| 330 // Response from WmCreateTopLevelWindow() informing the client of the id for | 333 // Response from WmCreateTopLevelWindow() informing the client of the id for | 
| 331 // the new window. | 334 // the new window. | 
| 332 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 335 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 
| 333 | 336 | 
| 334 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 337 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 
| 335 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 338 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 
| 336 // handler and |event_result| is UNHANDLED, then |properties| is added to | 339 // handler and |event_result| is UNHANDLED, then |properties| is added to | 
| 337 // the KeyEvent that is dispatched to the client with the focused window. | 340 // the KeyEvent that is dispatched to the client with the focused window. | 
| 338 OnAcceleratorAck(uint32 ack_id, | 341 OnAcceleratorAck(uint32 ack_id, | 
| 339 EventResult event_result, | 342 EventResult event_result, | 
| 340 map<string, array<uint8>> properties); | 343 map<string, array<uint8>> properties); | 
| 341 }; | 344 }; | 
| OLD | NEW |