| 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"; |
| 11 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 11 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| 12 import "ui/events/mojo/event.mojom"; | 12 import "ui/events/mojo/event.mojom"; |
| 13 import "ui/gfx/geometry/mojo/geometry.mojom"; | 13 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 14 | 14 |
| 15 // WindowManager is used when a WindowTreeClient attempts to modify | 15 // WindowManager is used when a WindowTreeClient attempts to modify |
| 16 // a property of the embed root. When this happens WindowTree calls the | 16 // a property of the embed root. When this happens WindowTree calls the |
| 17 // appropriate function on WindowManager. For example, if a | 17 // appropriate function on WindowManager. For example, if a |
| 18 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree | 18 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree |
| 19 // calls WmSetBounds(). WindowManager can then decide if it wants to | 19 // calls WmSetBounds(). WindowManager can then decide if it wants to |
| 20 // change the bounds or not. | 20 // change the bounds or not. |
| 21 // | 21 // |
| 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 const string kContainer_Property = "prop:container"; |
| 26 // Whether the window is always on top. Type: bool. | 27 // Whether the window is always on top. Type: bool. |
| 27 const string kAlwaysOnTop_Property = "prop:always_on_top"; | 28 const string kAlwaysOnTop_Property = "prop:always_on_top"; |
| 28 // Disables the window manager from handling immersive fullscreen for the | 29 // Disables the window manager from handling immersive fullscreen for the |
| 29 // window. This is typically done if the client wants to handle immersive | 30 // window. This is typically done if the client wants to handle immersive |
| 30 // themselves. Type: bool. | 31 // themselves. Type: bool. |
| 31 const string kDisableImmersive_Property = "prop:disable_immersive"; | 32 const string kDisableImmersive_Property = "prop:disable_immersive"; |
| 32 // Initial bounds to create the window at. If empty the WindowManager decides | 33 // Initial bounds to create the window at. If empty the WindowManager decides |
| 33 // the initial bounds. | 34 // the initial bounds. |
| 34 const string kInitialBounds_Property = "prop:initial_bounds"; | 35 const string kInitialBounds_Property = "prop:initial_bounds"; |
| 35 // Internal window name. Useful for debugging. Type: mojom::String | 36 // Internal window name. Useful for debugging. Type: mojom::String |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 162 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 162 | 163 |
| 163 // Response from WmCreateTopLevelWindow() informing the client of the id for | 164 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 164 // the new window. | 165 // the new window. |
| 165 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 166 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 166 | 167 |
| 167 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 168 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 168 // that was passed to OnAccelerator(). | 169 // that was passed to OnAccelerator(). |
| 169 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 170 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 170 }; | 171 }; |
| OLD | NEW |