| 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 "cc/ipc/frame_sink_id.mojom"; | 7 import "cc/ipc/frame_sink_id.mojom"; |
| 8 import "cc/ipc/local_surface_id.mojom"; | 8 import "cc/ipc/local_surface_id.mojom"; |
| 9 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // A few ash::ShelfItemType values are supported; TYPE_UNKNOWN means no item. | 137 // A few ash::ShelfItemType values are supported; TYPE_UNKNOWN means no item. |
| 138 const string kShelfItemType_Property = "prop:shelf-item-type"; | 138 const string kShelfItemType_Property = "prop:shelf-item-type"; |
| 139 | 139 |
| 140 // The window's show state. Maps to aura::client::kShowStateKey. | 140 // The window's show state. Maps to aura::client::kShowStateKey. |
| 141 // Type: ShowState. | 141 // Type: ShowState. |
| 142 const string kShowState_Property = "prop:show-state"; | 142 const string kShowState_Property = "prop:show-state"; |
| 143 | 143 |
| 144 // The window icon; typically 16x16 for titlebars. Type: SkBitmap | 144 // The window icon; typically 16x16 for titlebars. Type: SkBitmap |
| 145 const string kWindowIcon_Property = "prop:window-icon"; | 145 const string kWindowIcon_Property = "prop:window-icon"; |
| 146 | 146 |
| 147 // The window's pin type. Maps to aura::client::kWindowPinType. |
| 148 const string kWindowPinType_Property = "prop:window-pin-type"; |
| 149 |
| 147 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String | 150 // The window's title. Maps to aura::client::kTitleKey. Type: mojom::String |
| 148 const string kWindowTitle_Property = "prop:window-title"; | 151 const string kWindowTitle_Property = "prop:window-title"; |
| 149 | 152 |
| 150 // End long lived properties. ------------------------------------------------ | 153 // End long lived properties. ------------------------------------------------ |
| 151 | 154 |
| 152 // Called immediately when the WindowManager is obtained. | 155 // Called immediately when the WindowManager is obtained. |
| 153 OnConnect(uint16 client_id); | 156 OnConnect(uint16 client_id); |
| 154 | 157 |
| 155 // Called when a new display is added. |root| gives the root window specific | 158 // Called when a new display is added. |root| gives the root window specific |
| 156 // to this WindowManager for |display|. |frame_sink_id| uniquely identifies | 159 // to this WindowManager for |display|. |frame_sink_id| uniquely identifies |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 296 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 294 | 297 |
| 295 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 298 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 296 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 299 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 297 // handler and |event_result| is UNHANDLED, then |properties| is added to | 300 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 298 // the KeyEvent that is dispatched to the client with the focused window. | 301 // the KeyEvent that is dispatched to the client with the focused window. |
| 299 OnAcceleratorAck(uint32 ack_id, | 302 OnAcceleratorAck(uint32 ack_id, |
| 300 EventResult event_result, | 303 EventResult event_result, |
| 301 map<string, array<uint8>> properties); | 304 map<string, array<uint8>> properties); |
| 302 }; | 305 }; |
| OLD | NEW |