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

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

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_sink_manager.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 9 import "cc/ipc/local_surface_id.mojom";
9 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
10 import "cc/ipc/surface_info.mojom"; 11 import "cc/ipc/surface_info.mojom";
11 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 12 import "cc/ipc/mojo_compositor_frame_sink.mojom";
12 import "services/ui/public/interfaces/cursor/cursor.mojom"; 13 import "services/ui/public/interfaces/cursor/cursor.mojom";
13 import "services/ui/public/interfaces/event_matcher.mojom"; 14 import "services/ui/public/interfaces/event_matcher.mojom";
14 import "services/ui/public/interfaces/mus_constants.mojom"; 15 import "services/ui/public/interfaces/mus_constants.mojom";
15 import "services/ui/public/interfaces/window_manager.mojom"; 16 import "services/ui/public/interfaces/window_manager.mojom";
16 import "services/ui/public/interfaces/window_manager_constants.mojom"; 17 import "services/ui/public/interfaces/window_manager_constants.mojom";
17 import "services/ui/public/interfaces/window_tree_constants.mojom"; 18 import "services/ui/public/interfaces/window_tree_constants.mojom";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 StartPointerWatcher(bool want_moves); 105 StartPointerWatcher(bool want_moves);
105 106
106 // Stops the pointer watcher for all events. 107 // Stops the pointer watcher for all events.
107 StopPointerWatcher(); 108 StopPointerWatcher();
108 109
109 // Sets the specified bounds of the specified window. The window will paint 110 // Sets the specified bounds of the specified window. The window will paint
110 // the frame in the provided |local_frame_id|, if any. 111 // the frame in the provided |local_frame_id|, if any.
111 SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds, 112 SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds,
112 cc.mojom.LocalSurfaceId? local_surface_id); 113 cc.mojom.LocalSurfaceId? local_surface_id);
113 114
115 // Requests to be notified of begin-frame messages for the client window
116 // embedded in |window_id|.
117 RequestBeginFrames(uint32 window_id, cc.mojom.FrameSinkObserver observer);
sky 2017/05/14 16:26:58 The browser and renderer already have a more direc
118
114 // Sets the client area of the specified window. The client area is specified 119 // Sets the client area of the specified window. The client area is specified
115 // by way of insets. Everything outside of the insets, and not in 120 // by way of insets. Everything outside of the insets, and not in
116 // |additional_client_areas| is considered non-client area. 121 // |additional_client_areas| is considered non-client area.
117 // TODO(sky): convert additional_client_areas to a path. 122 // TODO(sky): convert additional_client_areas to a path.
118 SetClientArea(uint32 window_id, 123 SetClientArea(uint32 window_id,
119 gfx.mojom.Insets insets, 124 gfx.mojom.Insets insets,
120 array<gfx.mojom.Rect>? additional_client_areas); 125 array<gfx.mojom.Rect>? additional_client_areas);
121 126
122 // Mouse events outside a hit test mask do not hit the window. The |mask| is 127 // Mouse events outside a hit test mask do not hit the window. The |mask| is
123 // in window local coordinates. Pass null to clear the mask. 128 // in window local coordinates. Pass null to clear the mask.
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // See description of WindowManager for details. 535 // See description of WindowManager for details.
531 GetWindowManager(associated WindowManager& internal); 536 GetWindowManager(associated WindowManager& internal);
532 }; 537 };
533 538
534 // Mus provides this interface as a way for clients to connect and obtain a 539 // Mus provides this interface as a way for clients to connect and obtain a
535 // WindowTree handle with a supplied WindowTreeClient handle. The 540 // WindowTree handle with a supplied WindowTreeClient handle. The
536 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 541 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
537 interface WindowTreeFactory { 542 interface WindowTreeFactory {
538 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 543 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
539 }; 544 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698