Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/surface_id.mojom"; | 7 import "cc/ipc/surface_info.mojom"; |
|
sky
2017/01/03 23:22:06
sort
| |
| 8 import "cc/ipc/surface_sequence.mojom"; | |
| 9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| 10 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
| 11 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 12 import "services/ui/public/interfaces/mus_constants.mojom"; | 11 import "services/ui/public/interfaces/mus_constants.mojom"; |
| 13 import "services/ui/public/interfaces/window_manager.mojom"; | 12 import "services/ui/public/interfaces/window_manager.mojom"; |
| 14 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 13 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 15 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 14 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| 16 import "ui/events/mojo/event.mojom"; | 15 import "ui/events/mojo/event.mojom"; |
| 17 import "ui/gfx/geometry/mojo/geometry.mojom"; | 16 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 18 import "ui/platform_window/mojo/text_input_state.mojom"; | 17 import "ui/platform_window/mojo/text_input_state.mojom"; |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 427 | 426 |
| 428 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); | 427 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); |
| 429 | 428 |
| 430 // Invoked when a client window submits a new surface ID. The surface ID and | 429 // Invoked when a client window submits a new surface ID. The surface ID and |
| 431 // associated information is propagated to the parent connection. The parent | 430 // associated information is propagated to the parent connection. The parent |
| 432 // compositor can take ownership of this surface ID and embed it along with | 431 // compositor can take ownership of this surface ID and embed it along with |
| 433 // frame_size and device_scale_factor in a layer. | 432 // frame_size and device_scale_factor in a layer. |
| 434 // TODO(fsamuel): Surface IDs should be passed to parents directly instead of | 433 // TODO(fsamuel): Surface IDs should be passed to parents directly instead of |
| 435 // going through the window server. http://crbug.com/655231 | 434 // going through the window server. http://crbug.com/655231 |
| 436 OnWindowSurfaceChanged(uint32 window_id, | 435 OnWindowSurfaceChanged(uint32 window_id, |
| 437 cc.mojom.SurfaceId surface_id, | 436 cc.mojom.SurfaceInfo surface_info); |
| 438 gfx.mojom.Size frame_size, | |
| 439 float device_scale_factor); | |
| 440 | 437 |
| 441 // Called when the mouse cursor enters a window on this connection for the | 438 // Called when the mouse cursor enters a window on this connection for the |
| 442 // first time, providing a list of available mime types. We want to send this | 439 // first time, providing a list of available mime types. We want to send this |
| 443 // set of data only one time, so this isn't part of OnDragEnter(), which | 440 // set of data only one time, so this isn't part of OnDragEnter(), which |
| 444 // occurs every time the mouse enters a window. | 441 // occurs every time the mouse enters a window. |
| 445 OnDragDropStart(map<string, array<uint8>> drag_data); | 442 OnDragDropStart(map<string, array<uint8>> drag_data); |
| 446 | 443 |
| 447 // Called when the mouse cursor enters a window that has opted into | 444 // Called when the mouse cursor enters a window that has opted into |
| 448 // accepting drags through SetAcceptsDrags(), providing a list | 445 // accepting drags through SetAcceptsDrags(), providing a list |
| 449 // of available mime types. Returns a bitmask of the supported | 446 // of available mime types. Returns a bitmask of the supported |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 492 // See description of WindowManager for details. | 489 // See description of WindowManager for details. |
| 493 GetWindowManager(associated WindowManager& internal); | 490 GetWindowManager(associated WindowManager& internal); |
| 494 }; | 491 }; |
| 495 | 492 |
| 496 // Mus provides this interface as a way for clients to connect and obtain a | 493 // Mus provides this interface as a way for clients to connect and obtain a |
| 497 // WindowTree handle with a supplied WindowTreeClient handle. The | 494 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 495 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 499 interface WindowTreeFactory { | 496 interface WindowTreeFactory { |
| 500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 497 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 501 }; | 498 }; |
| OLD | NEW |