Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: services/ui/public/interfaces/window_manager.mojom

Issue 2778363002: Mus-WS / Aura-Mus: Propagate LocalSurfaceId on WindowTreeHost creation (Closed)
Patch Set: Add comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "services/ui/public/interfaces/cursor.mojom"; 9 import "services/ui/public/interfaces/cursor.mojom";
9 import "services/ui/public/interfaces/event_matcher.mojom"; 10 import "services/ui/public/interfaces/event_matcher.mojom";
10 import "services/ui/public/interfaces/window_manager_constants.mojom"; 11 import "services/ui/public/interfaces/window_manager_constants.mojom";
11 import "services/ui/public/interfaces/window_tree_constants.mojom"; 12 import "services/ui/public/interfaces/window_tree_constants.mojom";
12 import "skia/public/interfaces/bitmap.mojom"; 13 import "skia/public/interfaces/bitmap.mojom";
13 import "ui/base/mojo/ui_base_types.mojom"; 14 import "ui/base/mojo/ui_base_types.mojom";
14 import "ui/display/mojo/display.mojom"; 15 import "ui/display/mojo/display.mojom";
15 import "ui/events/mojo/event.mojom"; 16 import "ui/events/mojo/event.mojom";
16 import "ui/events/mojo/event_constants.mojom"; 17 import "ui/events/mojo/event_constants.mojom";
17 import "ui/gfx/geometry/mojo/geometry.mojom"; 18 import "ui/gfx/geometry/mojo/geometry.mojom";
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // 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
147 const string kWindowTitle_Property = "prop:window-title"; 148 const string kWindowTitle_Property = "prop:window-title";
148 149
149 // End long lived properties. ------------------------------------------------ 150 // End long lived properties. ------------------------------------------------
150 151
151 // Called immediately when the WindowManager is obtained. 152 // Called immediately when the WindowManager is obtained.
152 OnConnect(uint16 client_id); 153 OnConnect(uint16 client_id);
153 154
154 // 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
155 // to this WindowManager for |display|. 156 // to this WindowManager for |display|. |frame_sink_id| uniquely identifies
157 // the window manager in the display compositor. |local_surface_id| identifies
158 // the ID to use to submit CompositorFrames.
156 WmNewDisplayAdded(display.mojom.Display display, 159 WmNewDisplayAdded(display.mojom.Display display,
157 WindowData root, 160 WindowData root,
158 bool parent_drawn, 161 bool parent_drawn,
159 cc.mojom.FrameSinkId frame_sink_id); 162 cc.mojom.FrameSinkId frame_sink_id,
163 cc.mojom.LocalSurfaceId? local_surface_id);
160 164
161 // 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
162 // still valid. It is expected the client calls DeleteWindow() shortly after 166 // still valid. It is expected the client calls DeleteWindow() shortly after
163 // this with the root. 167 // this with the root.
164 WmDisplayRemoved(int64 display_id); 168 WmDisplayRemoved(int64 display_id);
165 169
166 // Called when a display is modified. The root of the specified display will 170 // Called when a display is modified. The root of the specified display will
167 // be resized by the WindowServer after this. 171 // be resized by the WindowServer after this.
168 WmDisplayModified(display.mojom.Display display); 172 WmDisplayModified(display.mojom.Display display);
169 173
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 293 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
290 294
291 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 295 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
292 // 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
293 // handler and |event_result| is UNHANDLED, then |properties| is added to 297 // handler and |event_result| is UNHANDLED, then |properties| is added to
294 // 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.
295 OnAcceleratorAck(uint32 ack_id, 299 OnAcceleratorAck(uint32 ack_id,
296 EventResult event_result, 300 EventResult event_result,
297 map<string, array<uint8>> properties); 301 map<string, array<uint8>> properties);
298 }; 302 };
OLDNEW
« no previous file with comments | « content/renderer/mus/renderer_window_tree_client.cc ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698