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

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

Issue 2689283003: chromeos: removes underlay surface offset (Closed)
Patch Set: log error Created 3 years, 10 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 | « ash/mus/non_client_frame_controller.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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // This interface is only used as an associated interface and is associated 222 // This interface is only used as an associated interface and is associated
223 // with WindowTree. 223 // with WindowTree.
224 interface WindowManagerClient { 224 interface WindowManagerClient {
225 // Enables (or disables) child windows of |window_id| to be activated. 225 // Enables (or disables) child windows of |window_id| to be activated.
226 AddActivationParent(uint32 window_id); 226 AddActivationParent(uint32 window_id);
227 RemoveActivationParent(uint32 window_id); 227 RemoveActivationParent(uint32 window_id);
228 228
229 ActivateNextWindow(); 229 ActivateNextWindow();
230 230
231 // Sets the underlay surface offset for the specified window and additional 231 // Sets the additional hit area. The hit area is extended from the bounds of
232 // hit area. The underlay surface is drawn at the bounds of the window minus 232 // the window by |hit_area|. This is used to allow for resizes to start
233 // the offset. The hit area is extended from the bounds of the window by 233 // outside the bounds of the window.
234 // |hit_area|. 234 SetExtendedHitArea(uint32 window_id, gfx.mojom.Insets hit_area);
235 SetUnderlaySurfaceOffsetAndExtendedHitArea(uint32 window_id,
236 int32 x_offset,
237 int32 y_offset,
238 gfx.mojom.Insets hit_area);
239 235
240 // Add and remove accelerators. When accelerators are registered the 236 // Add and remove accelerators. When accelerators are registered the
241 // WindowManager receives the event via OnAccelerator() rather than the 237 // WindowManager receives the event via OnAccelerator() rather than the
242 // target window. The id is defined by the client and can be used to more 238 // target window. The id is defined by the client and can be used to more
243 // easily identify the accelerator's action. 239 // easily identify the accelerator's action.
244 // Accelerator ids 1 << 31 and above are reserved for internal use. 240 // Accelerator ids 1 << 31 and above are reserved for internal use.
245 241
246 // See WindowTree for details on event dispatch. 242 // See WindowTree for details on event dispatch.
247 // This ignores any accelerators already defined with the same id or matcher. 243 // This ignores any accelerators already defined with the same id or matcher.
248 // Returns true if all accelerators were added successfully. 244 // Returns true if all accelerators were added successfully.
(...skipping 15 matching lines...) Expand all
264 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 260 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
265 261
266 // Response from WmCreateTopLevelWindow() informing the client of the id for 262 // Response from WmCreateTopLevelWindow() informing the client of the id for
267 // the new window. 263 // the new window.
268 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 264 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
269 265
270 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 266 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
271 // that was passed to OnAccelerator(). 267 // that was passed to OnAccelerator().
272 OnAcceleratorAck(uint32 ack_id, EventResult event_result); 268 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
273 }; 269 };
OLDNEW
« no previous file with comments | « ash/mus/non_client_frame_controller.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698