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 // 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 | |
Tom Sepez
2016/08/24 16:07:18
WM still handles exit from immersive, right? Othe
sky
2016/08/24 16:22:17
When this is set all the windowmanager does is mak
| |
29 // window. This is typically done if the client wants to handle immersive | |
30 // themselves. | |
James Cook
2016/08/24 17:00:33
nit: Type: bool
sky
2016/08/24 19:23:29
Done.
| |
31 const string kDisableImmersive_Property = "prop:disable_immersive"; | |
28 // Initial bounds to create the window at. If empty the WindowManager decides | 32 // Initial bounds to create the window at. If empty the WindowManager decides |
29 // the initial bounds. | 33 // the initial bounds. |
30 const string kInitialBounds_Property = "prop:initial_bounds"; | 34 const string kInitialBounds_Property = "prop:initial_bounds"; |
31 // Internal window name. Useful for debugging. Type: mojom::String | 35 // Internal window name. Useful for debugging. Type: mojom::String |
32 const string kName_Property = "prop:name"; | 36 const string kName_Property = "prop:name"; |
33 // The window's preferred size as defined by its content. Type: gfx::Size. | 37 // The window's preferred size as defined by its content. Type: gfx::Size. |
34 const string kPreferredSize_Property = "prop:preferred-size"; | 38 const string kPreferredSize_Property = "prop:preferred-size"; |
39 // If true the window manager renders the title area (including frame | |
40 // decorations) of the parent window in this window. This is only checked | |
41 // at the time the window is added to its parent, which must be a top level | |
42 // window (created by way of WindowTree::NewTopLevelWindow()). Type: bool. | |
43 const string kRendererParentTitleArea_Property = | |
44 "render-parent-non-client-area"; | |
35 // The window's resize behavior. Type: ResizeBehavior. | 45 // The window's resize behavior. Type: ResizeBehavior. |
36 const string kResizeBehavior_Property = "prop:resize-behavior"; | 46 const string kResizeBehavior_Property = "prop:resize-behavior"; |
37 // Bounds the window is restored to. Type: gfx::Rect. | 47 // Bounds the window is restored to. Type: gfx::Rect. |
38 const string kRestoreBounds_Property = "prop:restore-bounds"; | 48 const string kRestoreBounds_Property = "prop:restore-bounds"; |
39 // Shadow style for the window. Type: mojom::ShadowStyle. | 49 // Shadow style for the window. Type: mojom::ShadowStyle. |
40 const string kShadowStyle_Property = "prop:shadow-style"; | 50 const string kShadowStyle_Property = "prop:shadow-style"; |
41 // The window's show state. Type: ShowState. | 51 // The window's show state. Type: ShowState. |
42 const string kShowState_Property = "prop:show-state"; | 52 const string kShowState_Property = "prop:show-state"; |
43 // The window bounds as set by user input. Type: gfx::Rect. | 53 // The window bounds as set by user input. Type: gfx::Rect. |
44 const string kUserSetBounds_Property = "prop:user-set-bounds"; | 54 const string kUserSetBounds_Property = "prop:user-set-bounds"; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 156 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
147 | 157 |
148 // Response from WmCreateTopLevelWindow() informing the client of the id for | 158 // Response from WmCreateTopLevelWindow() informing the client of the id for |
149 // the new window. | 159 // the new window. |
150 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 160 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
151 | 161 |
152 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 162 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
153 // that was passed to OnAccelerator(). | 163 // that was passed to OnAccelerator(). |
154 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 164 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
155 }; | 165 }; |
OLD | NEW |