| 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 11 matching lines...) Expand all Loading... |
| 22 // This interface is only used as an associated interface and is associated | 22 // This interface is only used as an associated interface and is associated |
| 23 // with WindowTreeClient, further WindowTree requests this interface from | 23 // with WindowTreeClient, further WindowTree requests this interface from |
| 24 // WindowTreeClient supplied at the time the WindowTreeHost is created. | 24 // WindowTreeClient supplied at the time the WindowTreeHost is created. |
| 25 interface WindowManager { | 25 interface WindowManager { |
| 26 // Whether the window is always on top. Type: bool. | 26 // Whether the window is always on top. Type: bool. |
| 27 const string kAlwaysOnTop_Property = "prop:always_on_top"; | 27 const string kAlwaysOnTop_Property = "prop:always_on_top"; |
| 28 // Disables the window manager from handling immersive fullscreen for the | 28 // Disables the window manager from handling immersive fullscreen for the |
| 29 // window. This is typically done if the client wants to handle immersive | 29 // window. This is typically done if the client wants to handle immersive |
| 30 // themselves. Type: bool. | 30 // themselves. Type: bool. |
| 31 const string kDisableImmersive_Property = "prop:disable_immersive"; | 31 const string kDisableImmersive_Property = "prop:disable_immersive"; |
| 32 // Used to explicitly control whether a window appears in the most recently |
| 33 // used list of windows. Type: bool. |
| 34 const string kExcludeFromMru_Property = "prop:exclude_from_mru"; |
| 32 // Initial bounds to create the window at. If empty the WindowManager decides | 35 // Initial bounds to create the window at. If empty the WindowManager decides |
| 33 // the initial bounds. | 36 // the initial bounds. |
| 34 const string kInitialBounds_Property = "prop:initial_bounds"; | 37 const string kInitialBounds_Property = "prop:initial_bounds"; |
| 35 // The id of the display (display::Display::id()) to create the window on. | 38 // The id of the display (display::Display::id()) to create the window on. |
| 36 // Type: int64. | 39 // Type: int64. |
| 37 const string kInitialDisplayId_Property = "prop:initial_display_id"; | 40 const string kInitialDisplayId_Property = "prop:initial_display_id"; |
| 38 // Internal window name. Useful for debugging. Type: mojom::String | 41 // Internal window name. Useful for debugging. Type: mojom::String |
| 39 const string kName_Property = "prop:name"; | 42 const string kName_Property = "prop:name"; |
| 40 // The window's preferred size as defined by its content. Type: gfx::Size. | 43 // The window's preferred size as defined by its content. Type: gfx::Size. |
| 41 const string kPreferredSize_Property = "prop:preferred-size"; | 44 const string kPreferredSize_Property = "prop:preferred-size"; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 174 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 172 | 175 |
| 173 // Response from WmCreateTopLevelWindow() informing the client of the id for | 176 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 174 // the new window. | 177 // the new window. |
| 175 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 178 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 176 | 179 |
| 177 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 180 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 178 // that was passed to OnAccelerator(). | 181 // that was passed to OnAccelerator(). |
| 179 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 182 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 180 }; | 183 }; |
| OLD | NEW |