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

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

Issue 2346253004: Makes display roots be destroyed by client (Closed)
Patch Set: cleanup Created 4 years, 3 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
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/display/display.mojom";
9 import "services/ui/public/interfaces/event_matcher.mojom"; 9 import "services/ui/public/interfaces/event_matcher.mojom";
10 import "services/ui/public/interfaces/window_manager_constants.mojom"; 10 import "services/ui/public/interfaces/window_manager_constants.mojom";
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Called immediately when the WindowManager is obtained. 69 // Called immediately when the WindowManager is obtained.
70 OnConnect(uint16 client_id); 70 OnConnect(uint16 client_id);
71 71
72 // Called when a new display is added. |root| gives the root window specific 72 // Called when a new display is added. |root| gives the root window specific
73 // to this WindowManager for |display|. 73 // to this WindowManager for |display|.
74 WmNewDisplayAdded(display.mojom.Display display, 74 WmNewDisplayAdded(display.mojom.Display display,
75 WindowData root, 75 WindowData root,
76 bool parent_drawn); 76 bool parent_drawn);
77 77
78 // Called when a display is removed. The root of the specified display is
79 // still valid. It is expected the client calls DeleteWindow() shortly after
80 // this with the root.
81 WmDisplayRemoved(int64 display_id);
82
78 // When the WindowManager completes a request it must call back to 83 // When the WindowManager completes a request it must call back to
79 // WindowManagerClient::WmResponse(). 84 // WindowManagerClient::WmResponse().
80 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); 85 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
81 WmSetProperty(uint32 change_id, 86 WmSetProperty(uint32 change_id,
82 uint32 window_id, 87 uint32 window_id,
83 string name, 88 string name,
84 array<uint8>? value); 89 array<uint8>? value);
85 90
86 // Asks the WindowManager to create a new window. 91 // Asks the WindowManager to create a new window.
87 // |requesting_client_id| is the id of the client issuing the request. This 92 // |requesting_client_id| is the id of the client issuing the request. This
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 161 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
157 162
158 // Response from WmCreateTopLevelWindow() informing the client of the id for 163 // Response from WmCreateTopLevelWindow() informing the client of the id for
159 // the new window. 164 // the new window.
160 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 165 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
161 166
162 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 167 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
163 // that was passed to OnAccelerator(). 168 // that was passed to OnAccelerator().
164 OnAcceleratorAck(uint32 ack_id, EventResult event_result); 169 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
165 }; 170 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698