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/window_manager_constants.mojom"; | 9 import "components/mus/public/interfaces/window_manager_constants.mojom"; |
10 import "components/mus/public/interfaces/window_tree_constants.mojom"; | 10 import "components/mus/public/interfaces/window_tree_constants.mojom"; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 WmCreateTopLevelWindow(uint32 change_id, | 76 WmCreateTopLevelWindow(uint32 change_id, |
77 uint16 requesting_client_id, | 77 uint16 requesting_client_id, |
78 map<string, array<uint8>> properties); | 78 map<string, array<uint8>> properties); |
79 | 79 |
80 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input | 80 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input |
81 // events within a reasonable timeframe. When a client enters or exits this | 81 // events within a reasonable timeframe. When a client enters or exits this |
82 // state, Mus will tell the window manager about it so that the window manager | 82 // state, Mus will tell the window manager about it so that the window manager |
83 // can update the UI for the janky windows. | 83 // can update the UI for the janky windows. |
84 WmClientJankinessChanged(uint16 client_id, bool janky); | 84 WmClientJankinessChanged(uint16 client_id, bool janky); |
85 | 85 |
86 // Asks the WindowManager to interactively move the window. This will return | |
87 // whether this completed successfully or not through the client's | |
88 // OnWmMoveLoopCompleted(). | |
89 WmPerformMoveLoop(uint32 change_id, uint32 window_id, | |
sky
2016/06/22 23:47:56
nit: window_id on its own line.
Also, document wha
| |
90 gfx.mojom.Point cursor_location); | |
91 | |
92 // Asks the WindowManager to cancel any outstanding move loop on |window_id|. | |
93 WmCancelMoveLoop(uint32 window_id); | |
94 | |
86 // An accelerator registered via AddAccelerator() has been triggered. | 95 // An accelerator registered via AddAccelerator() has been triggered. |
87 OnAccelerator(uint32 id, ui.mojom.Event event); | 96 OnAccelerator(uint32 id, ui.mojom.Event event); |
88 }; | 97 }; |
89 | 98 |
90 // This interface is only used as an associated interface and is associated | 99 // This interface is only used as an associated interface and is associated |
91 // with WindowTree. | 100 // with WindowTree. |
92 interface WindowManagerClient { | 101 interface WindowManagerClient { |
93 // Enables (or disables) child windows of |window_id| to be activated. | 102 // Enables (or disables) child windows of |window_id| to be activated. |
94 AddActivationParent(uint32 window_id); | 103 AddActivationParent(uint32 window_id); |
95 RemoveActivationParent(uint32 window_id); | 104 RemoveActivationParent(uint32 window_id); |
(...skipping 28 matching lines...) Expand all Loading... | |
124 // Sets the frame decoration constants of the display the window manager is | 133 // Sets the frame decoration constants of the display the window manager is |
125 // associated with. | 134 // associated with. |
126 WmSetFrameDecorationValues(FrameDecorationValues values); | 135 WmSetFrameDecorationValues(FrameDecorationValues values); |
127 | 136 |
128 // Sets the cursor that the non-client areas of the window should use. | 137 // Sets the cursor that the non-client areas of the window should use. |
129 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 138 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
130 | 139 |
131 // Response from WmCreateTopLevelWindow() informing the client of the id for | 140 // Response from WmCreateTopLevelWindow() informing the client of the id for |
132 // the new window. | 141 // the new window. |
133 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 142 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
143 | |
144 // Response from WmPerformMoveLoop(). Returns true if the move loop was | |
145 // completed successfully. | |
146 OnWmMoveLoopCompleted(uint32 change_id, uint32 window_id, bool completed); | |
sky
2016/06/22 23:47:56
Why do you need to supply the window_id here as we
| |
134 }; | 147 }; |
OLD | NEW |