| 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.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String | 147 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String |
| 148 const string kWindowTitle_Property = "prop:window-title"; | 148 const string kWindowTitle_Property = "prop:window-title"; |
| 149 | 149 |
| 150 // End long lived properties. ------------------------------------------------ | 150 // End long lived properties. ------------------------------------------------ |
| 151 | 151 |
| 152 // Called immediately when the WindowManager is obtained. | 152 // Called immediately when the WindowManager is obtained. |
| 153 OnConnect(uint16 client_id); | 153 OnConnect(uint16 client_id); |
| 154 | 154 |
| 155 // Called when a new display is added. |root| gives the root window specific | 155 // Called when a new display is added. |root| gives the root window specific |
| 156 // to this WindowManager for |display|. |frame_sink_id| uniquely identifies | 156 // to this WindowManager for |display|. |frame_sink_id| uniquely identifies |
| 157 // the window manager in the display compositor. |local_surface_id| identifies | 157 // the window manager in the frame sink manager. |local_surface_id| identifies |
| 158 // the ID to use to submit CompositorFrames. | 158 // the ID to use to submit CompositorFrames. |
| 159 WmNewDisplayAdded(display.mojom.Display display, | 159 WmNewDisplayAdded(display.mojom.Display display, |
| 160 WindowData root, | 160 WindowData root, |
| 161 bool parent_drawn, | 161 bool parent_drawn, |
| 162 cc.mojom.FrameSinkId frame_sink_id, | 162 cc.mojom.FrameSinkId frame_sink_id, |
| 163 cc.mojom.LocalSurfaceId? local_surface_id); | 163 cc.mojom.LocalSurfaceId? local_surface_id); |
| 164 | 164 |
| 165 // Called when a display is removed. The root of the specified display is | 165 // Called when a display is removed. The root of the specified display is |
| 166 // still valid. It is expected the client calls DeleteWindow() shortly after | 166 // still valid. It is expected the client calls DeleteWindow() shortly after |
| 167 // this with the root. | 167 // this with the root. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 293 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 294 | 294 |
| 295 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 295 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 296 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 296 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 297 // handler and |event_result| is UNHANDLED, then |properties| is added to | 297 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 298 // the KeyEvent that is dispatched to the client with the focused window. | 298 // the KeyEvent that is dispatched to the client with the focused window. |
| 299 OnAcceleratorAck(uint32 ack_id, | 299 OnAcceleratorAck(uint32 ack_id, |
| 300 EventResult event_result, | 300 EventResult event_result, |
| 301 map<string, array<uint8>> properties); | 301 map<string, array<uint8>> properties); |
| 302 }; | 302 }; |
| OLD | NEW |