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

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 2027203002: Rename mojo.* ui/gfx/geometry/mojo types to gfx.mojom.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 4 years, 6 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "components/mus/public/interfaces/compositor_frame.mojom"; 8 import "components/mus/public/interfaces/compositor_frame.mojom";
9 import "components/mus/public/interfaces/cursor.mojom"; 9 import "components/mus/public/interfaces/cursor.mojom";
10 import "components/mus/public/interfaces/event_matcher.mojom"; 10 import "components/mus/public/interfaces/event_matcher.mojom";
11 import "components/mus/public/interfaces/input_events.mojom"; 11 import "components/mus/public/interfaces/input_events.mojom";
12 import "components/mus/public/interfaces/mus_constants.mojom"; 12 import "components/mus/public/interfaces/mus_constants.mojom";
13 import "components/mus/public/interfaces/window_manager.mojom"; 13 import "components/mus/public/interfaces/window_manager.mojom";
14 import "components/mus/public/interfaces/window_manager_constants.mojom"; 14 import "components/mus/public/interfaces/window_manager_constants.mojom";
15 import "ui/gfx/geometry/mojo/geometry.mojom"; 15 import "ui/gfx/geometry/mojo/geometry.mojom";
16 import "ui/platform_window/mojo/text_input_state.mojom"; 16 import "ui/platform_window/mojo/text_input_state.mojom";
17 17
18 struct WindowData { 18 struct WindowData {
19 uint32 parent_id; 19 uint32 parent_id;
20 uint32 window_id; 20 uint32 window_id;
21 mojo.Rect bounds; 21 gfx.mojom.Rect bounds;
22 map<string, array<uint8>> properties; 22 map<string, array<uint8>> properties;
23 // True if this window is visible. The window may not be drawn on screen (see 23 // True if this window is visible. The window may not be drawn on screen (see
24 // OnWindowParentDrawnStateChanged() for details). 24 // OnWindowParentDrawnStateChanged() for details).
25 bool visible; 25 bool visible;
26 }; 26 };
27 27
28 enum ErrorCode { 28 enum ErrorCode {
29 NONE, 29 NONE,
30 VALUE_IN_USE, 30 VALUE_IN_USE,
31 ILLEGAL_ARGUMENT, 31 ILLEGAL_ARGUMENT,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Sets an observer that monitors all events, even if they are not targeted 106 // Sets an observer that monitors all events, even if they are not targeted
107 // at a window in this tree. If an event matchs |matcher| the observer reports 107 // at a window in this tree. If an event matchs |matcher| the observer reports
108 // it to the WindowTreeClient via OnWindowInputEvent (if the event target is 108 // it to the WindowTreeClient via OnWindowInputEvent (if the event target is
109 // this window tree) or OnEventObserved (if the target is another tree). The 109 // this window tree) or OnEventObserved (if the target is another tree). The
110 // client must supply a non-zero |observer_id|, which is reported back with 110 // client must supply a non-zero |observer_id|, which is reported back with
111 // observed events. Set the matcher to null to clear the observer. 111 // observed events. Set the matcher to null to clear the observer.
112 SetEventObserver(EventMatcher? matcher, uint32 observer_id); 112 SetEventObserver(EventMatcher? matcher, uint32 observer_id);
113 113
114 // Sets the specified bounds of the specified window. 114 // Sets the specified bounds of the specified window.
115 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 115 SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
116 116
117 // Sets the client area of the specified window. The client area is specified 117 // Sets the client area of the specified window. The client area is specified
118 // by way of insets. Everything outside of the insets, and not in 118 // by way of insets. Everything outside of the insets, and not in
119 // |additional_client_areas| is considered non-client area. 119 // |additional_client_areas| is considered non-client area.
120 // TODO(sky): convert additional_client_areas to a path. 120 // TODO(sky): convert additional_client_areas to a path.
121 SetClientArea(uint32 window_id, 121 SetClientArea(uint32 window_id,
122 mojo.Insets insets, 122 gfx.mojom.Insets insets,
123 array<mojo.Rect>? additional_client_areas); 123 array<gfx.mojom.Rect>? additional_client_areas);
124 124
125 // Mouse events outside a hit test mask do not hit the window. The |mask| is 125 // Mouse events outside a hit test mask do not hit the window. The |mask| is
126 // in window local coordinates. Pass null to clear the mask. 126 // in window local coordinates. Pass null to clear the mask.
127 // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210 127 // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210
128 SetHitTestMask(uint32 window_id, mojo.Rect? mask); 128 SetHitTestMask(uint32 window_id, gfx.mojom.Rect? mask);
129 129
130 // Sets the visibility of the specified window to |visible|. Connections are 130 // Sets the visibility of the specified window to |visible|. Connections are
131 // allowed to change the visibility of any window they have created, as well 131 // allowed to change the visibility of any window they have created, as well
132 // as any of their roots. 132 // as any of their roots.
133 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible); 133 SetWindowVisibility(uint32 change_id, uint32 window_id, bool visible);
134 134
135 // Sets an individual named property. Setting an individual property to null 135 // Sets an individual named property. Setting an individual property to null
136 // deletes the property. 136 // deletes the property.
137 SetWindowProperty(uint32 change_id, 137 SetWindowProperty(uint32 change_id,
138 uint32 window_id, 138 uint32 window_id,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // |parent_drawn| is true if the parent of the window is drawn, see 302 // |parent_drawn| is true if the parent of the window is drawn, see
303 // OnDrawnStateChanged() for details. |display_id| identifies the display this 303 // OnDrawnStateChanged() for details. |display_id| identifies the display this
304 // window is on. 304 // window is on.
305 OnTopLevelCreated(uint32 change_id, 305 OnTopLevelCreated(uint32 change_id,
306 WindowData data, 306 WindowData data,
307 int64 display_id, 307 int64 display_id,
308 bool parent_drawn); 308 bool parent_drawn);
309 309
310 // Invoked when a window's bounds have changed. 310 // Invoked when a window's bounds have changed.
311 OnWindowBoundsChanged(uint32 window, 311 OnWindowBoundsChanged(uint32 window,
312 mojo.Rect old_bounds, 312 gfx.mojom.Rect old_bounds,
313 mojo.Rect new_bounds); 313 gfx.mojom.Rect new_bounds);
314 314
315 OnClientAreaChanged(uint32 window_id, 315 OnClientAreaChanged(uint32 window_id,
316 mojo.Insets new_client_area, 316 gfx.mojom.Insets new_client_area,
317 array<mojo.Rect> new_additional_client_areas); 317 array<gfx.mojom.Rect> new_additional_client_areas);
318 318
319 OnTransientWindowAdded(uint32 window_id, 319 OnTransientWindowAdded(uint32 window_id,
320 uint32 transient_window_id); 320 uint32 transient_window_id);
321 321
322 OnTransientWindowRemoved(uint32 window_id, 322 OnTransientWindowRemoved(uint32 window_id,
323 uint32 transient_window_id); 323 uint32 transient_window_id);
324 324
325 // Invoked when a change is done to the hierarchy. A value of 0 is used to 325 // Invoked when a change is done to the hierarchy. A value of 0 is used to
326 // identify a null window. For example, if the old_parent is NULL, 0 is 326 // identify a null window. For example, if the old_parent is NULL, 0 is
327 // supplied. 327 // supplied.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // See description of WindowManager for details. 401 // See description of WindowManager for details.
402 GetWindowManager(associated WindowManager& internal); 402 GetWindowManager(associated WindowManager& internal);
403 }; 403 };
404 404
405 // Mus provides this interface as a way for clients to connect and obtain a 405 // Mus provides this interface as a way for clients to connect and obtain a
406 // WindowTree handle with a supplied WindowTreeClient handle. The 406 // WindowTree handle with a supplied WindowTreeClient handle. The
407 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 407 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
408 interface WindowTreeFactory { 408 interface WindowTreeFactory {
409 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 409 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
410 }; 410 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698