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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/cursor.mojom"; | 7 import "components/mus/public/interfaces/cursor.mojom"; |
8 import "components/mus/public/interfaces/event_matcher.mojom"; | 8 import "components/mus/public/interfaces/event_matcher.mojom"; |
9 import "components/mus/public/interfaces/input_events.mojom"; | 9 import "components/mus/public/interfaces/input_events.mojom"; |
10 import "components/mus/public/interfaces/window_manager_constants.mojom"; | 10 import "components/mus/public/interfaces/window_manager_constants.mojom"; |
11 import "ui/mojo/geometry/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
12 | 12 |
13 // WindowManager is used when a WindowTreeClient attempts to modify | 13 // WindowManager is used when a WindowTreeClient attempts to modify |
14 // a property of the embed root. When this happens WindowTree calls the | 14 // a property of the embed root. When this happens WindowTree calls the |
15 // appropriate function on WindowManager. For example, if a | 15 // appropriate function on WindowManager. For example, if a |
16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree | 16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree |
17 // calls WmSetBounds(). WindowManager can then decide if it wants to | 17 // calls WmSetBounds(). WindowManager can then decide if it wants to |
18 // change the bounds or not. | 18 // change the bounds or not. |
19 // | 19 // |
20 // This interface is only used as an associated interface and is associated | 20 // This interface is only used as an associated interface and is associated |
21 // with WindowTreeClient, further WindowTree requests this interface from | 21 // with WindowTreeClient, further WindowTree requests this interface from |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // associated with. | 114 // associated with. |
115 WmSetFrameDecorationValues(FrameDecorationValues values); | 115 WmSetFrameDecorationValues(FrameDecorationValues values); |
116 | 116 |
117 // Sets the cursor that the non-client areas of the window should use. | 117 // Sets the cursor that the non-client areas of the window should use. |
118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 118 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
119 | 119 |
120 // Response from WmCreateTopLevelWindow() informing the client of the id for | 120 // Response from WmCreateTopLevelWindow() informing the client of the id for |
121 // the new window. | 121 // the new window. |
122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 122 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
123 }; | 123 }; |
OLD | NEW |