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/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor/cursor.mojom"; |
10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // All primitive properties are transported as | 83 // All primitive properties are transported as |
84 // aura::PropertyConverter::PrimitiveType. | 84 // aura::PropertyConverter::PrimitiveType. |
85 | 85 |
86 // Whether the window is always on top. Maps to aura::client::kAlwaysOnTopKey. | 86 // Whether the window is always on top. Maps to aura::client::kAlwaysOnTopKey. |
87 // Type: bool. | 87 // Type: bool. |
88 const string kAlwaysOnTop_Property = "prop:always_on_top"; | 88 const string kAlwaysOnTop_Property = "prop:always_on_top"; |
89 | 89 |
90 // The application icon; typically larger for shelf icons, etc. Type: SkBitmap | 90 // The application icon; typically larger for shelf icons, etc. Type: SkBitmap |
91 const string kAppIcon_Property = "prop:app-icon"; | 91 const string kAppIcon_Property = "prop:app-icon"; |
92 | 92 |
93 // The application ID (eg. 'mojo:foo'). Maps to | |
94 // aura::client::client::kAppIdKey. Type: mojom::String | |
95 const string kAppID_Property = "prop:app-id"; | |
96 | |
97 // Used to explicitly control whether a window appears in the most recently | 93 // Used to explicitly control whether a window appears in the most recently |
98 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. | 94 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. |
99 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; | 95 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; |
100 | 96 |
101 // If true, when a window is in in fullscreen mode, the user cannot reveal | 97 // If true, when a window is in in fullscreen mode, the user cannot reveal |
102 // the top portion of the window through a touch / mouse gesture. | 98 // the top portion of the window through a touch / mouse gesture. |
103 // Type: bool. | 99 // Type: bool. |
104 const string kImmersiveFullscreen_Property = "prop:immersive-fullscreen"; | 100 const string kImmersiveFullscreen_Property = "prop:immersive-fullscreen"; |
105 | 101 |
106 // Internal window name. Useful for debugging. Maps to aura::client::kNameKey. | 102 // Internal window name. Useful for debugging. Maps to aura::client::kNameKey. |
(...skipping 20 matching lines...) Expand all Loading... |
127 // Type: ResizeBehavior. | 123 // Type: ResizeBehavior. |
128 const string kResizeBehavior_Property = "prop:resize-behavior"; | 124 const string kResizeBehavior_Property = "prop:resize-behavior"; |
129 | 125 |
130 // Bounds the window is restored to. Maps to client::kRestoreBoundsKey. | 126 // Bounds the window is restored to. Maps to client::kRestoreBoundsKey. |
131 // Type: gfx::Rect. | 127 // Type: gfx::Rect. |
132 const string kRestoreBounds_Property = "prop:restore-bounds"; | 128 const string kRestoreBounds_Property = "prop:restore-bounds"; |
133 | 129 |
134 // See ShadowElevation for details. Type: wm::ShadowElevation. | 130 // See ShadowElevation for details. Type: wm::ShadowElevation. |
135 const string kShadowElevation_Property = "prop:shadow-elevation"; | 131 const string kShadowElevation_Property = "prop:shadow-elevation"; |
136 | 132 |
| 133 // The shelf ID struct. Maps to ash::kShelfIDKey. Type: ash::ShelfID. |
| 134 const string kShelfID_Property = "prop:shelf-id"; |
| 135 |
137 // The type of item to be shown on the shelf for this window. Type: int | 136 // The type of item to be shown on the shelf for this window. Type: int |
138 // 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. |
139 const string kShelfItemType_Property = "prop:shelf-item-type"; | 138 const string kShelfItemType_Property = "prop:shelf-item-type"; |
140 | 139 |
141 // The window's show state. Maps to aura::client::kShowStateKey. | 140 // The window's show state. Maps to aura::client::kShowStateKey. |
142 // Type: ShowState. | 141 // Type: ShowState. |
143 const string kShowState_Property = "prop:show-state"; | 142 const string kShowState_Property = "prop:show-state"; |
144 | 143 |
145 // The window icon; typically 16x16 for titlebars. Type: SkBitmap | 144 // The window icon; typically 16x16 for titlebars. Type: SkBitmap |
146 const string kWindowIcon_Property = "prop:window-icon"; | 145 const string kWindowIcon_Property = "prop:window-icon"; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 304 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
306 | 305 |
307 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 306 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
308 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 307 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
309 // handler and |event_result| is UNHANDLED, then |properties| is added to | 308 // handler and |event_result| is UNHANDLED, then |properties| is added to |
310 // the KeyEvent that is dispatched to the client with the focused window. | 309 // the KeyEvent that is dispatched to the client with the focused window. |
311 OnAcceleratorAck(uint32 ack_id, | 310 OnAcceleratorAck(uint32 ack_id, |
312 EventResult event_result, | 311 EventResult event_result, |
313 map<string, array<uint8>> properties); | 312 map<string, array<uint8>> properties); |
314 }; | 313 }; |
OLD | NEW |