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

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

Issue 1474543002: Makes NewWindow() take set of properties for window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke shadow_style changes Created 5 years 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 "components/mus/public/interfaces/compositor_frame.mojom"; 7 import "components/mus/public/interfaces/compositor_frame.mojom";
8 import "components/mus/public/interfaces/input_events.mojom"; 8 import "components/mus/public/interfaces/input_events.mojom";
9 import "components/mus/public/interfaces/mus_constants.mojom"; 9 import "components/mus/public/interfaces/mus_constants.mojom";
10 import "components/mus/public/interfaces/surface_id.mojom"; 10 import "components/mus/public/interfaces/surface_id.mojom";
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 }; 79 };
80 80
81 // Creates a new window with the specified id. It is up to the client to 81 // Creates a new window with the specified id. It is up to the client to
82 // ensure the id is unique to the connection (the id need not be globally 82 // ensure the id is unique to the connection (the id need not be globally
83 // unique). Additionally the connection id (embedded in |window_id|) must 83 // unique). Additionally the connection id (embedded in |window_id|) must
84 // match that of the connection. 84 // match that of the connection.
85 // Errors: 85 // Errors:
86 // ERROR_CODE_VALUE_IN_USE: a window already exists with the specified id. 86 // ERROR_CODE_VALUE_IN_USE: a window already exists with the specified id.
87 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |window_id| does not 87 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |window_id| does not
88 // match the connection id of the client. 88 // match the connection id of the client.
89 // 89 NewWindow(uint32 change_id,
90 // TODO(erg): Once we have default values in mojo, make this take a map of 90 uint32 window_id,
91 // properties. 91 map<string, array<uint8>>? properties);
92 NewWindow(uint32 change_id, uint32 window_id);
93 92
94 // Deletes a window. This does not recurse. No hierarchy change notifications 93 // Deletes a window. This does not recurse. No hierarchy change notifications
95 // are sent as a result of this. Only the connection that created the window 94 // are sent as a result of this. Only the connection that created the window
96 // can delete it. 95 // can delete it.
97 DeleteWindow(uint32 window_id) => (bool success); 96 DeleteWindow(uint32 window_id) => (bool success);
98 97
99 // Sets the specified bounds of the specified window. 98 // Sets the specified bounds of the specified window.
100 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 99 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
101 100
102 // Sets the insets of the client area of the specified window. 101 // Sets the insets of the client area of the specified window.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // WindowManager interface once we get associated interfaces. 317 // WindowManager interface once we get associated interfaces.
319 318
320 // Calls to SetWindowBounds() for windows owned by the window manager end up 319 // Calls to SetWindowBounds() for windows owned by the window manager end up
321 // here. The window manager should reply with WmResponse() as appropriate. 320 // here. The window manager should reply with WmResponse() as appropriate.
322 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 321 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
323 WmSetProperty(uint32 change_id, 322 WmSetProperty(uint32 change_id,
324 uint32 window_id, 323 uint32 window_id,
325 string name, 324 string name,
326 array<uint8>? value); 325 array<uint8>? value);
327 }; 326 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | components/mus/ws/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698