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

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

Issue 2042903002: Support app window draggable areas in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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/window_manager_constants.mojom"; 9 import "components/mus/public/interfaces/window_manager_constants.mojom";
10 import "ui/events/mojo/event.mojom"; 10 import "ui/events/mojo/event.mojom";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // The window's app icon. Type: SkBitmap 43 // The window's app icon. Type: SkBitmap
44 const string kWindowAppIcon_Property = "prop:window-app-icon"; 44 const string kWindowAppIcon_Property = "prop:window-app-icon";
45 // The window type. Type: mojom::WindowType 45 // The window type. Type: mojom::WindowType
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 // Specifies that the system default caption and icon should not be rendered,
54 // and the client area should be equivalent to the window area. Type: bool
55 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame";
53 56
54 // When the WindowManager completes a request it must call back to 57 // When the WindowManager completes a request it must call back to
55 // WindowManagerClient::WmResponse(). 58 // WindowManagerClient::WmResponse().
56 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); 59 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
57 WmSetProperty(uint32 change_id, 60 WmSetProperty(uint32 change_id,
58 uint32 window_id, 61 uint32 window_id,
59 string name, 62 string name,
60 array<uint8>? value); 63 array<uint8>? value);
61 64
62 // Asks the WindowManager to create a new window. 65 // Asks the WindowManager to create a new window.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // associated with. 117 // associated with.
115 WmSetFrameDecorationValues(FrameDecorationValues values); 118 WmSetFrameDecorationValues(FrameDecorationValues values);
116 119
117 // Sets the cursor that the non-client areas of the window should use. 120 // Sets the cursor that the non-client areas of the window should use.
118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 121 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
119 122
120 // Response from WmCreateTopLevelWindow() informing the client of the id for 123 // Response from WmCreateTopLevelWindow() informing the client of the id for
121 // the new window. 124 // the new window.
122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 125 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
123 }; 126 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698