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 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void RemoveActivationParent(Window* window) = 0; | 58 virtual void RemoveActivationParent(Window* window) = 0; |
59 virtual void ActivateNextWindow() = 0; | 59 virtual void ActivateNextWindow() = 0; |
60 virtual void SetExtendedHitArea(Window* window, | 60 virtual void SetExtendedHitArea(Window* window, |
61 const gfx::Insets& hit_area) = 0; | 61 const gfx::Insets& hit_area) = 0; |
62 | 62 |
63 // Requests the client embedded in |window| to close the window. Only | 63 // Requests the client embedded in |window| to close the window. Only |
64 // applicable to top-level windows. If a client is not embedded in |window|, | 64 // applicable to top-level windows. If a client is not embedded in |window|, |
65 // this does nothing. | 65 // this does nothing. |
66 virtual void RequestClose(Window* window) = 0; | 66 virtual void RequestClose(Window* window) = 0; |
67 | 67 |
68 // Blocks until the initial displays have been received. | 68 // Blocks until the initial displays have been received, or if displays are |
| 69 // not automatically created until the connection to mus has been |
| 70 // established. |
69 virtual bool WaitForInitialDisplays() = 0; | 71 virtual bool WaitForInitialDisplays() = 0; |
70 | 72 |
71 // Used by the window manager to create a new display. This is only useful if | 73 // Used by the window manager to create a new display. This is only useful if |
72 // the WindowTreeClient was configured not to automatically create displays | 74 // the WindowTreeClient was configured not to automatically create displays |
73 // (see ConnectAsWindowManager()). The caller needs to configure | 75 // (see ConnectAsWindowManager()). The caller needs to configure |
74 // DisplayInitParams on the returned object. | 76 // DisplayInitParams on the returned object. |
75 virtual WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() = 0; | 77 virtual WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() = 0; |
76 | 78 |
77 protected: | 79 protected: |
78 virtual ~WindowManagerClient() {} | 80 virtual ~WindowManagerClient() {} |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // window. | 195 // window. |
194 virtual void OnWmDeactivateWindow(Window* window) = 0; | 196 virtual void OnWmDeactivateWindow(Window* window) = 0; |
195 | 197 |
196 protected: | 198 protected: |
197 virtual ~WindowManagerDelegate() {} | 199 virtual ~WindowManagerDelegate() {} |
198 }; | 200 }; |
199 | 201 |
200 } // namespace ui | 202 } // namespace ui |
201 | 203 |
202 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 204 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
OLD | NEW |