| 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/event_matcher.mojom"; | 8 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 9 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 9 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 10 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 10 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const string kShowState_Property = "prop:show-state"; | 137 const string kShowState_Property = "prop:show-state"; |
| 138 | 138 |
| 139 // The window icon; typically 16x16 for titlebars. Type: SkBitmap | 139 // The window icon; typically 16x16 for titlebars. Type: SkBitmap |
| 140 const string kWindowIcon_Property = "prop:window-icon"; | 140 const string kWindowIcon_Property = "prop:window-icon"; |
| 141 | 141 |
| 142 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String | 142 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String |
| 143 const string kWindowTitle_Property = "prop:window-title"; | 143 const string kWindowTitle_Property = "prop:window-title"; |
| 144 | 144 |
| 145 // End long lived properties. ------------------------------------------------ | 145 // End long lived properties. ------------------------------------------------ |
| 146 | 146 |
| 147 // Shadow style for the window. Type: mojom::ShadowStyle. | |
| 148 // TODO(sky): this is currently unused, either wire up or nuke: | |
| 149 // http://crbug.com/671714. | |
| 150 const string kShadowStyle_Property = "prop:shadow-style"; | |
| 151 | |
| 152 // Called immediately when the WindowManager is obtained. | 147 // Called immediately when the WindowManager is obtained. |
| 153 OnConnect(uint16 client_id); | 148 OnConnect(uint16 client_id); |
| 154 | 149 |
| 155 // Called when a new display is added. |root| gives the root window specific | 150 // Called when a new display is added. |root| gives the root window specific |
| 156 // to this WindowManager for |display|. | 151 // to this WindowManager for |display|. |
| 157 WmNewDisplayAdded(display.mojom.Display display, | 152 WmNewDisplayAdded(display.mojom.Display display, |
| 158 WindowData root, | 153 WindowData root, |
| 159 bool parent_drawn); | 154 bool parent_drawn); |
| 160 | 155 |
| 161 // Called when a display is removed. The root of the specified display is | 156 // Called when a display is removed. The root of the specified display is |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 258 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 264 | 259 |
| 265 // Response from WmCreateTopLevelWindow() informing the client of the id for | 260 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 266 // the new window. | 261 // the new window. |
| 267 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 262 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 268 | 263 |
| 269 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 264 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 270 // that was passed to OnAccelerator(). | 265 // that was passed to OnAccelerator(). |
| 271 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 266 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 272 }; | 267 }; |
| OLD | NEW |