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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // Used to explicitly control whether a window appears in the most recently | 96 // Used to explicitly control whether a window appears in the most recently |
97 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. | 97 // used list of windows. Maps to aura::client::kExcludeFromMruKey. Type: bool. |
98 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; | 98 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; |
99 | 99 |
100 // If true, when a window is in in fullscreen mode, the user cannot reveal | 100 // If true, when a window is in in fullscreen mode, the user cannot reveal |
101 // the top portion of the window through a touch / mouse gesture. | 101 // the top portion of the window through a touch / mouse gesture. |
102 // Type: bool. | 102 // Type: bool. |
103 const string kImmersiveFullscreen_Property = "prop:immersive-fullscreen"; | 103 const string kImmersiveFullscreen_Property = "prop:immersive-fullscreen"; |
104 | 104 |
| 105 // The window's minimum size as defined by its content. Maps to |
| 106 // aura::client::kMinimumSize_Property. Type: gfx::Size. |
| 107 const string kMinimumSize_Property = "prop:minimum-size"; |
| 108 |
105 // Internal window name. Useful for debugging. Maps to aura::client::kNameKey. | 109 // Internal window name. Useful for debugging. Maps to aura::client::kNameKey. |
106 // Type: mojom::String | 110 // Type: mojom::String |
107 const string kName_Property = "prop:name"; | 111 const string kName_Property = "prop:name"; |
108 | 112 |
109 // If true (and the window is a panel), it's attached to its shelf item. | 113 // If true (and the window is a panel), it's attached to its shelf item. |
110 const string kPanelAttached_Property = "prop:panel-attached"; | 114 const string kPanelAttached_Property = "prop:panel-attached"; |
111 | 115 |
112 // The window's preferred size as defined by its content. Maps to | 116 // The window's preferred size as defined by its content. Maps to |
113 // aura::client::kPreferredSize_Property. Type: gfx::Size. | 117 // aura::client::kPreferredSize_Property. Type: gfx::Size. |
114 const string kPreferredSize_Property = "prop:preferred-size"; | 118 const string kPreferredSize_Property = "prop:preferred-size"; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 336 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
333 | 337 |
334 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 338 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
335 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 339 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
336 // handler and |event_result| is UNHANDLED, then |properties| is added to | 340 // handler and |event_result| is UNHANDLED, then |properties| is added to |
337 // the KeyEvent that is dispatched to the client with the focused window. | 341 // the KeyEvent that is dispatched to the client with the focused window. |
338 OnAcceleratorAck(uint32 ack_id, | 342 OnAcceleratorAck(uint32 ack_id, |
339 EventResult event_result, | 343 EventResult event_result, |
340 map<string, array<uint8>> properties); | 344 map<string, array<uint8>> properties); |
341 }; | 345 }; |
OLD | NEW |