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

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

Issue 2886873002: Only send the FrameSinkId to client when it is necessary (Closed)
Patch Set: Fix build issues Created 3 years, 7 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 "cc/ipc/local_surface_id.mojom";
9 import "services/ui/public/interfaces/cursor/cursor.mojom"; 9 import "services/ui/public/interfaces/cursor/cursor.mojom";
10 import "services/ui/public/interfaces/event_matcher.mojom"; 10 import "services/ui/public/interfaces/event_matcher.mojom";
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
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|. |local_surface_id| identifies the ID
157 // the window manager in the frame sink manager. |local_surface_id| identifies 157 // to use to submit CompositorFrames.
158 // the ID to use to submit CompositorFrames.
159 WmNewDisplayAdded(display.mojom.Display display, 158 WmNewDisplayAdded(display.mojom.Display display,
160 WindowData root, 159 WindowData root,
161 bool parent_drawn, 160 bool parent_drawn,
162 cc.mojom.FrameSinkId frame_sink_id,
163 cc.mojom.LocalSurfaceId? local_surface_id); 161 cc.mojom.LocalSurfaceId? local_surface_id);
164 162
165 // Called when a display is removed. The root of the specified display is 163 // 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 164 // still valid. It is expected the client calls DeleteWindow() shortly after
167 // this with the root. 165 // this with the root.
168 WmDisplayRemoved(int64 display_id); 166 WmDisplayRemoved(int64 display_id);
169 167
170 // Called when a display is modified. The root of the specified display will 168 // Called when a display is modified. The root of the specified display will
171 // be resized by the WindowServer after this. 169 // be resized by the WindowServer after this.
172 WmDisplayModified(display.mojom.Display display); 170 WmDisplayModified(display.mojom.Display display);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 264
267 // See WindowTree for details on event dispatch. 265 // See WindowTree for details on event dispatch.
268 // This ignores any accelerators already defined with the same id or matcher. 266 // This ignores any accelerators already defined with the same id or matcher.
269 // Returns true if all accelerators were added successfully. 267 // Returns true if all accelerators were added successfully.
270 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); 268 AddAccelerators(array<WmAccelerator> accelerators) => (bool success);
271 RemoveAccelerator(uint32 id); 269 RemoveAccelerator(uint32 id);
272 270
273 // Sets the root of a particular display. This is only applicable when the 271 // Sets the root of a particular display. This is only applicable when the
274 // WindowTree was created with a value of false for 272 // WindowTree was created with a value of false for
275 // |automatically_create_display_roots| (see 273 // |automatically_create_display_roots| (see
276 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). On success 274 // WindowManagerWindowTreeFactory::CreateWindowTree() for details).
277 // this responds with the FrameSinkId of the root. On failure the FrameSinkId 275 // Returns true if all accelerators were added successfully.
sky 2017/05/18 03:18:08 Returns true on success.
Peng 2017/05/18 13:34:56 Done.
278 // is not valid.
279 SetDisplayRoot(display.mojom.Display display, 276 SetDisplayRoot(display.mojom.Display display,
280 WmViewportMetrics viewport_metrics, 277 WmViewportMetrics viewport_metrics,
281 bool is_primary_display, 278 bool is_primary_display,
282 uint32 window_id) => (cc.mojom.FrameSinkId? frame_sink_id); 279 uint32 window_id) => (bool success);
283 280
284 // The window manager has completed a request with the specific change id. 281 // The window manager has completed a request with the specific change id.
285 WmResponse(uint32 change_id, bool response); 282 WmResponse(uint32 change_id, bool response);
286 283
287 // The window manager has completed a SetBounds request with the specified 284 // The window manager has completed a SetBounds request with the specified
288 // change id 285 // change id
289 WmSetBoundsResponse(uint32 change_id); 286 WmSetBoundsResponse(uint32 change_id);
290 287
291 // Calls WindowTreeClient::RequestClose() on the embedded app at the 288 // Calls WindowTreeClient::RequestClose() on the embedded app at the
292 // specified window. 289 // specified window.
(...skipping 23 matching lines...) Expand all
316 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 313 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
317 314
318 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 315 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
319 // that was passed to OnAccelerator(). If the accelerator is a pre-target 316 // that was passed to OnAccelerator(). If the accelerator is a pre-target
320 // handler and |event_result| is UNHANDLED, then |properties| is added to 317 // handler and |event_result| is UNHANDLED, then |properties| is added to
321 // the KeyEvent that is dispatched to the client with the focused window. 318 // the KeyEvent that is dispatched to the client with the focused window.
322 OnAcceleratorAck(uint32 ack_id, 319 OnAcceleratorAck(uint32 ack_id,
323 EventResult event_result, 320 EventResult event_result,
324 map<string, array<uint8>> properties); 321 map<string, array<uint8>> properties);
325 }; 322 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698