| 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 "services/ui/public/interfaces/cursor.mojom"; | 7 import "services/ui/public/interfaces/cursor.mojom"; |
| 8 import "services/ui/public/interfaces/event_matcher.mojom"; | 8 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 9 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 9 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 10 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 10 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| 11 import "ui/base/mojo/ui_base_types.mojom"; |
| 11 import "ui/display/mojo/display.mojom"; | 12 import "ui/display/mojo/display.mojom"; |
| 12 import "ui/events/mojo/event.mojom"; | 13 import "ui/events/mojo/event.mojom"; |
| 13 import "ui/gfx/geometry/mojo/geometry.mojom"; | 14 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 14 | 15 |
| 15 // WindowManager is used when a WindowTreeClient attempts to modify | 16 // WindowManager is used when a WindowTreeClient attempts to modify |
| 16 // a property of the embed root. When this happens WindowTree calls the | 17 // a property of the embed root. When this happens WindowTree calls the |
| 17 // appropriate function on WindowManager. For example, if a | 18 // appropriate function on WindowManager. For example, if a |
| 18 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree | 19 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree |
| 19 // calls WmSetBounds(). WindowManager can then decide if it wants to | 20 // calls WmSetBounds(). WindowManager can then decide if it wants to |
| 20 // change the bounds or not. | 21 // change the bounds or not. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 WmDisplayModified(display.mojom.Display display); | 164 WmDisplayModified(display.mojom.Display display); |
| 164 | 165 |
| 165 // When the WindowManager completes a request it must call back to | 166 // When the WindowManager completes a request it must call back to |
| 166 // WindowManagerClient::WmResponse(). | 167 // WindowManagerClient::WmResponse(). |
| 167 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); | 168 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); |
| 168 WmSetProperty(uint32 change_id, | 169 WmSetProperty(uint32 change_id, |
| 169 uint32 window_id, | 170 uint32 window_id, |
| 170 string name, | 171 string name, |
| 171 array<uint8>? value); | 172 array<uint8>? value); |
| 172 | 173 |
| 174 WmSetModalType(uint32 window_id, ModalType type); |
| 173 WmSetCanFocus(uint32 window_id, bool can_focus); | 175 WmSetCanFocus(uint32 window_id, bool can_focus); |
| 174 | 176 |
| 175 // Asks the WindowManager to create a new window. | 177 // Asks the WindowManager to create a new window. |
| 176 // |requesting_client_id| is the id of the client issuing the request. This | 178 // |requesting_client_id| is the id of the client issuing the request. This |
| 177 // allows the window manager to track top level windows by client. | 179 // allows the window manager to track top level windows by client. |
| 178 WmCreateTopLevelWindow(uint32 change_id, | 180 WmCreateTopLevelWindow(uint32 change_id, |
| 179 uint16 requesting_client_id, | 181 uint16 requesting_client_id, |
| 180 map<string, array<uint8>> properties); | 182 map<string, array<uint8>> properties); |
| 181 | 183 |
| 182 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input | 184 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 260 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 259 | 261 |
| 260 // Response from WmCreateTopLevelWindow() informing the client of the id for | 262 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 261 // the new window. | 263 // the new window. |
| 262 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 264 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 263 | 265 |
| 264 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 266 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 265 // that was passed to OnAccelerator(). | 267 // that was passed to OnAccelerator(). |
| 266 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 268 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 267 }; | 269 }; |
| OLD | NEW |