| 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/display/display.mojom"; | 8 import "services/ui/public/interfaces/display/display.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // to this WindowManager for |display|. | 90 // to this WindowManager for |display|. |
| 91 WmNewDisplayAdded(display.mojom.Display display, | 91 WmNewDisplayAdded(display.mojom.Display display, |
| 92 WindowData root, | 92 WindowData root, |
| 93 bool parent_drawn); | 93 bool parent_drawn); |
| 94 | 94 |
| 95 // Called when a display is removed. The root of the specified display is | 95 // Called when a display is removed. The root of the specified display is |
| 96 // still valid. It is expected the client calls DeleteWindow() shortly after | 96 // still valid. It is expected the client calls DeleteWindow() shortly after |
| 97 // this with the root. | 97 // this with the root. |
| 98 WmDisplayRemoved(int64 display_id); | 98 WmDisplayRemoved(int64 display_id); |
| 99 | 99 |
| 100 // Called when a display is modified. The root of the specified display will |
| 101 // be resized by the WindowServer after this. |
| 102 WmDisplayModified(display.mojom.Display display); |
| 103 |
| 100 // When the WindowManager completes a request it must call back to | 104 // When the WindowManager completes a request it must call back to |
| 101 // WindowManagerClient::WmResponse(). | 105 // WindowManagerClient::WmResponse(). |
| 102 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); | 106 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); |
| 103 WmSetProperty(uint32 change_id, | 107 WmSetProperty(uint32 change_id, |
| 104 uint32 window_id, | 108 uint32 window_id, |
| 105 string name, | 109 string name, |
| 106 array<uint8>? value); | 110 array<uint8>? value); |
| 107 | 111 |
| 108 // Asks the WindowManager to create a new window. | 112 // Asks the WindowManager to create a new window. |
| 109 // |requesting_client_id| is the id of the client issuing the request. This | 113 // |requesting_client_id| is the id of the client issuing the request. This |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 182 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 179 | 183 |
| 180 // Response from WmCreateTopLevelWindow() informing the client of the id for | 184 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 181 // the new window. | 185 // the new window. |
| 182 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 186 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 183 | 187 |
| 184 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 188 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 185 // that was passed to OnAccelerator(). | 189 // that was passed to OnAccelerator(). |
| 186 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 190 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 187 }; | 191 }; |
| OLD | NEW |