| 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 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/display/display.mojom"; | 8 import "services/ui/public/interfaces/display/display.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Long lived properties. ---------------------------------------------------- | 68 // Long lived properties. ---------------------------------------------------- |
| 69 | 69 |
| 70 // All primitive properties are transported as | 70 // All primitive properties are transported as |
| 71 // aura::PropertyConverter::PrimitiveType. | 71 // aura::PropertyConverter::PrimitiveType. |
| 72 | 72 |
| 73 // Whether the window is always on top. Maps to aura::client::kAlwaysOnTopKey. | 73 // Whether the window is always on top. Maps to aura::client::kAlwaysOnTopKey. |
| 74 // Type: bool. | 74 // Type: bool. |
| 75 const string kAlwaysOnTop_Property = "prop:always_on_top"; | 75 const string kAlwaysOnTop_Property = "prop:always_on_top"; |
| 76 | 76 |
| 77 // The application icon; typically larger for shelf icons, etc. Type: SkBitmap | 77 // The application icon; typically larger for shelf icons, etc. Type: SkBitmap |
| 78 // TODO(msw): map to aura::client::kAppIconKey http://crbug.com/663522? | |
| 79 const string kAppIcon_Property = "prop:app-icon"; | 78 const string kAppIcon_Property = "prop:app-icon"; |
| 80 | 79 |
| 81 // The application ID (eg. 'mojo:foo'). Maps to | 80 // The application ID (eg. 'mojo:foo'). Maps to |
| 82 // aura::client::client::kAppIdKey. Type: mojom::String | 81 // aura::client::client::kAppIdKey. Type: mojom::String |
| 83 const string kAppID_Property = "prop:app-id"; | 82 const string kAppID_Property = "prop:app-id"; |
| 84 | 83 |
| 85 // Used to explicitly control whether a window appears in the most recently | 84 // Used to explicitly control whether a window appears in the most recently |
| 86 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. | 85 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. |
| 87 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; | 86 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; |
| 88 | 87 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 116 | 115 |
| 117 // The type of item to be shown on the shelf for this window. Type: int | 116 // The type of item to be shown on the shelf for this window. Type: int |
| 118 // A few ash::ShelfItemType values are supported; TYPE_UNKNOWN means no item. | 117 // A few ash::ShelfItemType values are supported; TYPE_UNKNOWN means no item. |
| 119 const string kShelfItemType_Property = "prop:shelf-item-type"; | 118 const string kShelfItemType_Property = "prop:shelf-item-type"; |
| 120 | 119 |
| 121 // The window's show state. Maps to aura::client::kShowStateKey. | 120 // The window's show state. Maps to aura::client::kShowStateKey. |
| 122 // Type: ShowState. | 121 // Type: ShowState. |
| 123 const string kShowState_Property = "prop:show-state"; | 122 const string kShowState_Property = "prop:show-state"; |
| 124 | 123 |
| 125 // The window icon; typically 16x16 for titlebars. Type: SkBitmap | 124 // The window icon; typically 16x16 for titlebars. Type: SkBitmap |
| 126 // TODO(msw): map to aura::client::kAppIconKey http://crbug.com/663522? | |
| 127 const string kWindowIcon_Property = "prop:window-icon"; | 125 const string kWindowIcon_Property = "prop:window-icon"; |
| 128 | 126 |
| 129 // A flag controlling the window's presence on the mash shelf. Type: bool | 127 // A flag controlling the window's presence on the mash shelf. Type: bool |
| 130 // TODO: convert this to a aura::client property; http://crbug.com/671729. | 128 // TODO: convert this to a aura::client property; http://crbug.com/671729. |
| 131 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf"; | 129 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf"; |
| 132 | 130 |
| 133 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String | 131 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String |
| 134 const string kWindowTitle_Property = "prop:window-title"; | 132 const string kWindowTitle_Property = "prop:window-title"; |
| 135 | 133 |
| 136 // End long lived properties. ------------------------------------------------ | 134 // End long lived properties. ------------------------------------------------ |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 243 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 246 | 244 |
| 247 // Response from WmCreateTopLevelWindow() informing the client of the id for | 245 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 248 // the new window. | 246 // the new window. |
| 249 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 247 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 250 | 248 |
| 251 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 249 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 252 // that was passed to OnAccelerator(). | 250 // that was passed to OnAccelerator(). |
| 253 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 251 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 254 }; | 252 }; |
| OLD | NEW |