Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 // A flag controlling the presence of standard frame components. Type: bool | |
|
James Cook
2016/06/14 23:44:56
I would duplicate the comment from ui/views/widget
msw
2016/06/15 17:06:41
Done.
| |
| 54 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame"; | |
| 53 | 55 |
| 54 // When the WindowManager completes a request it must call back to | 56 // When the WindowManager completes a request it must call back to |
| 55 // WindowManagerClient::WmResponse(). | 57 // WindowManagerClient::WmResponse(). |
| 56 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); | 58 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); |
| 57 WmSetProperty(uint32 change_id, | 59 WmSetProperty(uint32 change_id, |
| 58 uint32 window_id, | 60 uint32 window_id, |
| 59 string name, | 61 string name, |
| 60 array<uint8>? value); | 62 array<uint8>? value); |
| 61 | 63 |
| 62 // Asks the WindowManager to create a new window. | 64 // Asks the WindowManager to create a new window. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 // associated with. | 116 // associated with. |
| 115 WmSetFrameDecorationValues(FrameDecorationValues values); | 117 WmSetFrameDecorationValues(FrameDecorationValues values); |
| 116 | 118 |
| 117 // Sets the cursor that the non-client areas of the window should use. | 119 // Sets the cursor that the non-client areas of the window should use. |
| 118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 120 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 119 | 121 |
| 120 // Response from WmCreateTopLevelWindow() informing the client of the id for | 122 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 121 // the new window. | 123 // the new window. |
| 122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 124 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 123 }; | 125 }; |
| OLD | NEW |