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

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

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. Created 4 years, 5 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 "services/ui/public/interfaces/cursor.mojom"; 7 import "services/ui/public/interfaces/cursor.mojom";
8 import "services/ui/public/interfaces/display/display.mojom";
8 import "services/ui/public/interfaces/event_matcher.mojom"; 9 import "services/ui/public/interfaces/event_matcher.mojom";
9 import "services/ui/public/interfaces/window_manager_constants.mojom"; 10 import "services/ui/public/interfaces/window_manager_constants.mojom";
10 import "services/ui/public/interfaces/window_tree_constants.mojom"; 11 import "services/ui/public/interfaces/window_tree_constants.mojom";
11 import "ui/events/mojo/event.mojom"; 12 import "ui/events/mojo/event.mojom";
12 import "ui/gfx/geometry/mojo/geometry.mojom"; 13 import "ui/gfx/geometry/mojo/geometry.mojom";
13 14
14 // WindowManager is used when a WindowTreeClient attempts to modify 15 // WindowManager is used when a WindowTreeClient attempts to modify
15 // a property of the embed root. When this happens WindowTree calls the 16 // a property of the embed root. When this happens WindowTree calls the
16 // appropriate function on WindowManager. For example, if a 17 // appropriate function on WindowManager. For example, if a
17 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree 18 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const string kAppID_Property = "prop:app-id"; 54 const string kAppID_Property = "prop:app-id";
54 // Specifies that the system default caption and icon should not be rendered, 55 // Specifies that the system default caption and icon should not be rendered,
55 // and the client area should be equivalent to the window area. Type: bool 56 // and the client area should be equivalent to the window area. Type: bool
56 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame"; 57 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame";
57 58
58 // Called immediately when the WindowManager is obtained. 59 // Called immediately when the WindowManager is obtained.
59 OnConnect(uint16 client_id); 60 OnConnect(uint16 client_id);
60 61
61 // Called when a new display is added. |root| gives the root window specific 62 // Called when a new display is added. |root| gives the root window specific
62 // to this WindowManager for |display|. 63 // to this WindowManager for |display|.
63 WmNewDisplayAdded(Display display, WindowData root, bool parent_drawn); 64 WmNewDisplayAdded(display.mojom.Display display,
65 WindowData root,
66 bool parent_drawn);
64 67
65 // When the WindowManager completes a request it must call back to 68 // When the WindowManager completes a request it must call back to
66 // WindowManagerClient::WmResponse(). 69 // WindowManagerClient::WmResponse().
67 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); 70 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
68 WmSetProperty(uint32 change_id, 71 WmSetProperty(uint32 change_id,
69 uint32 window_id, 72 uint32 window_id,
70 string name, 73 string name,
71 array<uint8>? value); 74 array<uint8>? value);
72 75
73 // Asks the WindowManager to create a new window. 76 // Asks the WindowManager to create a new window.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 146 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
144 147
145 // Response from WmCreateTopLevelWindow() informing the client of the id for 148 // Response from WmCreateTopLevelWindow() informing the client of the id for
146 // the new window. 149 // the new window.
147 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 150 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
148 151
149 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 152 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
150 // that was passed to OnAccelerator(). 153 // that was passed to OnAccelerator().
151 OnAcceleratorAck(uint32 ack_id, EventResult event_result); 154 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
152 }; 155 };
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/display.mojom ('k') | services/ui/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698