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

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

Issue 2754593003: Renames ui::mojom::Accelerator to ui::mojom::WmAccelerator (Closed)
Patch Set: Created 3 years, 9 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/common/accelerator_util.cc ('k') | services/ui/ws/window_tree.h » ('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/event_matcher.mojom"; 8 import "services/ui/public/interfaces/event_matcher.mojom";
9 import "services/ui/public/interfaces/window_manager_constants.mojom"; 9 import "services/ui/public/interfaces/window_manager_constants.mojom";
10 import "services/ui/public/interfaces/window_tree_constants.mojom"; 10 import "services/ui/public/interfaces/window_tree_constants.mojom";
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Asks the WindowManager to stack |window_id| as the first child of its 205 // Asks the WindowManager to stack |window_id| as the first child of its
206 // window manager owned parent. 206 // window manager owned parent.
207 WmStackAtTop(uint32 change_id, uint32 window_id); 207 WmStackAtTop(uint32 change_id, uint32 window_id);
208 208
209 // An accelerator registered via AddAccelerator() has been triggered. If 209 // An accelerator registered via AddAccelerator() has been triggered. If
210 // |ack_id| is non-zero the accelerator matches a PRE_TARGET and must be 210 // |ack_id| is non-zero the accelerator matches a PRE_TARGET and must be
211 // acknowledged by WindowManagerClient::OnAcceleratorAck(). 211 // acknowledged by WindowManagerClient::OnAcceleratorAck().
212 OnAccelerator(uint32 ack_id, uint32 accelerator_id, ui.mojom.Event event); 212 OnAccelerator(uint32 ack_id, uint32 accelerator_id, ui.mojom.Event event);
213 }; 213 };
214 214
215 struct Accelerator { 215 struct WmAccelerator {
216 uint32 id; 216 uint32 id;
217 EventMatcher event_matcher; 217 EventMatcher event_matcher;
218 }; 218 };
219 219
220 // This interface is only used as an associated interface and is associated 220 // This interface is only used as an associated interface and is associated
221 // with WindowTree. 221 // with WindowTree.
222 interface WindowManagerClient { 222 interface WindowManagerClient {
223 // Enables (or disables) child windows of |window_id| to be activated. 223 // Enables (or disables) child windows of |window_id| to be activated.
224 AddActivationParent(uint32 window_id); 224 AddActivationParent(uint32 window_id);
225 RemoveActivationParent(uint32 window_id); 225 RemoveActivationParent(uint32 window_id);
226 226
227 ActivateNextWindow(); 227 ActivateNextWindow();
228 228
229 // Sets the additional hit area. The hit area is extended from the bounds of 229 // Sets the additional hit area. The hit area is extended from the bounds of
230 // the window by |hit_area|. This is used to allow for resizes to start 230 // the window by |hit_area|. This is used to allow for resizes to start
231 // outside the bounds of the window. 231 // outside the bounds of the window.
232 SetExtendedHitArea(uint32 window_id, gfx.mojom.Insets hit_area); 232 SetExtendedHitArea(uint32 window_id, gfx.mojom.Insets hit_area);
233 233
234 // Add and remove accelerators. When accelerators are registered the 234 // Add and remove accelerators. When accelerators are registered the
235 // WindowManager receives the event via OnAccelerator() rather than the 235 // WindowManager receives the event via OnAccelerator() rather than the
236 // target window. The id is defined by the client and can be used to more 236 // target window. The id is defined by the client and can be used to more
237 // easily identify the accelerator's action. 237 // easily identify the accelerator's action.
238 // Accelerator ids 1 << 31 and above are reserved for internal use. 238 // Accelerator ids 1 << 31 and above are reserved for internal use.
239 239
240 // See WindowTree for details on event dispatch. 240 // See WindowTree for details on event dispatch.
241 // This ignores any accelerators already defined with the same id or matcher. 241 // This ignores any accelerators already defined with the same id or matcher.
242 // Returns true if all accelerators were added successfully. 242 // Returns true if all accelerators were added successfully.
243 AddAccelerators(array<Accelerator> accelerators) => (bool success); 243 AddAccelerators(array<WmAccelerator> accelerators) => (bool success);
244 RemoveAccelerator(uint32 id); 244 RemoveAccelerator(uint32 id);
245 245
246 // The window manager has completed a request with the specific change id. 246 // The window manager has completed a request with the specific change id.
247 WmResponse(uint32 change_id, bool response); 247 WmResponse(uint32 change_id, bool response);
248 248
249 // Calls WindowTreeClient::RequestClose() on the embedded app at the 249 // Calls WindowTreeClient::RequestClose() on the embedded app at the
250 // specified window. 250 // specified window.
251 WmRequestClose(uint32 window_id); 251 WmRequestClose(uint32 window_id);
252 252
253 // Sets the frame decoration constants of the display the window manager is 253 // Sets the frame decoration constants of the display the window manager is
254 // associated with. 254 // associated with.
255 WmSetFrameDecorationValues(FrameDecorationValues values); 255 WmSetFrameDecorationValues(FrameDecorationValues values);
256 256
257 // Sets the cursor that the non-client areas of the window should use. 257 // Sets the cursor that the non-client areas of the window should use.
258 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 258 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
259 259
260 // Response from WmCreateTopLevelWindow() informing the client of the id for 260 // Response from WmCreateTopLevelWindow() informing the client of the id for
261 // the new window. 261 // the new window.
262 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 262 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
263 263
264 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 264 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
265 // that was passed to OnAccelerator(). 265 // that was passed to OnAccelerator().
266 OnAcceleratorAck(uint32 ack_id, EventResult event_result); 266 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
267 }; 267 };
OLDNEW
« no previous file with comments | « services/ui/common/accelerator_util.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698