OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/compositor_frame.mojom"; | 7 import "components/mus/public/interfaces/compositor_frame.mojom"; |
8 import "components/mus/public/interfaces/cursor.mojom"; | 8 import "components/mus/public/interfaces/cursor.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/mus_constants.mojom"; | 10 import "components/mus/public/interfaces/mus_constants.mojom"; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 // . |window_id| or |transient_window_id| does not identify a valid window. | 172 // . |window_id| or |transient_window_id| does not identify a valid window. |
173 // . |transient_window_id| is an ancestor of |window_id|. | 173 // . |transient_window_id| is an ancestor of |window_id|. |
174 AddTransientWindow(uint32 change_id, | 174 AddTransientWindow(uint32 change_id, |
175 uint32 window_id, | 175 uint32 window_id, |
176 uint32 transient_window_id); | 176 uint32 transient_window_id); |
177 | 177 |
178 // Decouples the lifetime of |transient_window_id| from its transient parent. | 178 // Decouples the lifetime of |transient_window_id| from its transient parent. |
179 // This does not change transient window's position in the window hierarchy. | 179 // This does not change transient window's position in the window hierarchy. |
180 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id); | 180 RemoveTransientWindowFromParent(uint32 change_id, uint32 transient_window_id); |
181 | 181 |
182 // Sets |window_id| to be modal to its transient parent. | |
183 // This fails if |window_id| does not identify a valid window. | |
184 // TODO(mohsen): If |window_id| does not have a transient parent, this will | |
185 // have no effect. Plan is to make a window modal to system if it does not | |
186 // have a transient parent. | |
187 SetAsModal(uint32 change_id, uint32 window_id); | |
sky
2016/03/09 16:33:56
SetModal here too.
mohsen
2016/03/09 18:32:51
Done.
| |
188 | |
182 // Reorders a window in its parent, relative to |relative_window_id| according | 189 // Reorders a window in its parent, relative to |relative_window_id| according |
183 // to |direction|. Only the connection that created the window's parent can | 190 // to |direction|. Only the connection that created the window's parent can |
184 // reorder its children. | 191 // reorder its children. |
185 ReorderWindow(uint32 change_id, | 192 ReorderWindow(uint32 change_id, |
186 uint32 window_id, | 193 uint32 window_id, |
187 uint32 relative_window_id, | 194 uint32 relative_window_id, |
188 OrderDirection direction); | 195 OrderDirection direction); |
189 | 196 |
190 // Returns the windows comprising the tree starting at |window_id|. | 197 // Returns the windows comprising the tree starting at |window_id|. |
191 // |window_id| is the first result in the return value, unless |window_id| is | 198 // |window_id| is the first result in the return value, unless |window_id| is |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 // See description of WindowManager for details. | 376 // See description of WindowManager for details. |
370 GetWindowManager(associated WindowManager& internal); | 377 GetWindowManager(associated WindowManager& internal); |
371 }; | 378 }; |
372 | 379 |
373 // Mus provides this interface as a way for clients to connect and obtain a | 380 // Mus provides this interface as a way for clients to connect and obtain a |
374 // WindowTree handle with a supplied WindowTreeClient handle. The | 381 // WindowTree handle with a supplied WindowTreeClient handle. The |
375 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 382 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
376 interface WindowTreeFactory { | 383 interface WindowTreeFactory { |
377 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 384 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
378 }; | 385 }; |
OLD | NEW |