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

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

Issue 2027203002: Rename mojo.* ui/gfx/geometry/mojo types to gfx.mojom.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 4 years, 6 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/cursor.mojom"; 7 import "components/mus/public/interfaces/cursor.mojom";
8 import "components/mus/public/interfaces/event_matcher.mojom"; 8 import "components/mus/public/interfaces/event_matcher.mojom";
9 import "components/mus/public/interfaces/input_events.mojom"; 9 import "components/mus/public/interfaces/input_events.mojom";
10 import "components/mus/public/interfaces/window_manager_constants.mojom"; 10 import "components/mus/public/interfaces/window_manager_constants.mojom";
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const string kWindowType_Property = "prop:window-type"; 46 const string kWindowType_Property = "prop:window-type";
47 // The window's title. Type: mojom::String 47 // The window's title. Type: mojom::String
48 const string kWindowTitle_Property = "prop:window-title"; 48 const string kWindowTitle_Property = "prop:window-title";
49 // A flag controlling the window's presence on the mash shelf. Type: bool 49 // A flag controlling the window's presence on the mash shelf. Type: bool
50 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf"; 50 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf";
51 // The application ID (eg. 'mojo:foo'). Type: mojom::String 51 // The application ID (eg. 'mojo:foo'). Type: mojom::String
52 const string kAppID_Property = "prop:app-id"; 52 const string kAppID_Property = "prop:app-id";
53 53
54 // When the WindowManager completes a request it must call back to 54 // When the WindowManager completes a request it must call back to
55 // WindowManagerClient::WmResponse(). 55 // WindowManagerClient::WmResponse().
56 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 56 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
57 WmSetProperty(uint32 change_id, 57 WmSetProperty(uint32 change_id,
58 uint32 window_id, 58 uint32 window_id,
59 string name, 59 string name,
60 array<uint8>? value); 60 array<uint8>? value);
61 61
62 // Asks the WindowManager to create a new window. 62 // Asks the WindowManager to create a new window.
63 // |requesting_client_id| is the id of the client issuing the request. This 63 // |requesting_client_id| is the id of the client issuing the request. This
64 // allows the window manager to track top level windows by client. 64 // allows the window manager to track top level windows by client.
65 WmCreateTopLevelWindow(uint32 change_id, 65 WmCreateTopLevelWindow(uint32 change_id,
66 uint16 requesting_client_id, 66 uint16 requesting_client_id,
(...skipping 18 matching lines...) Expand all
85 85
86 ActivateNextWindow(); 86 ActivateNextWindow();
87 87
88 // Sets the underlay surface offset for the specified window and additional 88 // Sets the underlay surface offset for the specified window and additional
89 // hit area. The underlay surface is drawn at the bounds of the window minus 89 // hit area. The underlay surface is drawn at the bounds of the window minus
90 // the offset. The hit area is extended from the bounds of the window by 90 // the offset. The hit area is extended from the bounds of the window by
91 // |hit_area|. 91 // |hit_area|.
92 SetUnderlaySurfaceOffsetAndExtendedHitArea(uint32 window_id, 92 SetUnderlaySurfaceOffsetAndExtendedHitArea(uint32 window_id,
93 int32 x_offset, 93 int32 x_offset,
94 int32 y_offset, 94 int32 y_offset,
95 mojo.Insets hit_area); 95 gfx.mojom.Insets hit_area);
96 96
97 // Add and remove accelerators. When accelerators are registered the 97 // Add and remove accelerators. When accelerators are registered the
98 // WindowManager receives the event via OnAccelerator() rather than the 98 // WindowManager receives the event via OnAccelerator() rather than the
99 // target window. The id is defined by the client and can be used to more 99 // target window. The id is defined by the client and can be used to more
100 // easily identify the accelerator's action. If an accelerator with the same 100 // easily identify the accelerator's action. If an accelerator with the same
101 // id or the same matcher already exists, then the accelerator is not added. 101 // id or the same matcher already exists, then the accelerator is not added.
102 // Accelerator ids 1 << 31 and above are reserved for internal use. 102 // Accelerator ids 1 << 31 and above are reserved for internal use.
103 AddAccelerator(uint32 id, EventMatcher matcher) => (bool success); 103 AddAccelerator(uint32 id, EventMatcher matcher) => (bool success);
104 RemoveAccelerator(uint32 id); 104 RemoveAccelerator(uint32 id);
105 105
106 // The window manager has completed a request with the specific change id. 106 // The window manager has completed a request with the specific change id.
107 WmResponse(uint32 change_id, bool response); 107 WmResponse(uint32 change_id, bool response);
108 108
109 // Calls WindowTreeClient::RequestClose() on the embedded app at the 109 // Calls WindowTreeClient::RequestClose() on the embedded app at the
110 // specified window. 110 // specified window.
111 WmRequestClose(uint32 window_id); 111 WmRequestClose(uint32 window_id);
112 112
113 // Sets the frame decoration constants of the display the window manager is 113 // Sets the frame decoration constants of the display the window manager is
114 // associated with. 114 // associated with.
115 WmSetFrameDecorationValues(FrameDecorationValues values); 115 WmSetFrameDecorationValues(FrameDecorationValues values);
116 116
117 // Sets the cursor that the non-client areas of the window should use. 117 // Sets the cursor that the non-client areas of the window should use.
118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
119 119
120 // Response from WmCreateTopLevelWindow() informing the client of the id for 120 // Response from WmCreateTopLevelWindow() informing the client of the id for
121 // the new window. 121 // the new window.
122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
123 }; 123 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/quads.mojom ('k') | components/mus/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698