| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void RemoveActivationParent(Window* window) = 0; | 56 virtual void RemoveActivationParent(Window* window) = 0; |
| 57 virtual void ActivateNextWindow() = 0; | 57 virtual void ActivateNextWindow() = 0; |
| 58 virtual void SetExtendedHitArea(Window* window, | 58 virtual void SetExtendedHitArea(Window* window, |
| 59 const gfx::Insets& hit_area) = 0; | 59 const gfx::Insets& hit_area) = 0; |
| 60 | 60 |
| 61 // Requests the client embedded in |window| to close the window. Only | 61 // Requests the client embedded in |window| to close the window. Only |
| 62 // applicable to top-level windows. If a client is not embedded in |window|, | 62 // applicable to top-level windows. If a client is not embedded in |window|, |
| 63 // this does nothing. | 63 // this does nothing. |
| 64 virtual void RequestClose(Window* window) = 0; | 64 virtual void RequestClose(Window* window) = 0; |
| 65 | 65 |
| 66 // Blocks until the initial displays have been received. |
| 67 virtual bool WaitForInitialDisplays() = 0; |
| 68 |
| 66 protected: | 69 protected: |
| 67 virtual ~WindowManagerClient() {} | 70 virtual ~WindowManagerClient() {} |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 // Used by clients implementing a window manager. | 73 // Used by clients implementing a window manager. |
| 71 // TODO(sky): this should be called WindowManager, but that's rather confusing | 74 // TODO(sky): this should be called WindowManager, but that's rather confusing |
| 72 // currently. | 75 // currently. |
| 73 class AURA_EXPORT WindowManagerDelegate { | 76 class AURA_EXPORT WindowManagerDelegate { |
| 74 public: | 77 public: |
| 75 // Called once to give the delegate access to functions only exposed to | 78 // Called once to give the delegate access to functions only exposed to |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // window. | 186 // window. |
| 184 virtual void OnWmDeactivateWindow(Window* window) = 0; | 187 virtual void OnWmDeactivateWindow(Window* window) = 0; |
| 185 | 188 |
| 186 protected: | 189 protected: |
| 187 virtual ~WindowManagerDelegate() {} | 190 virtual ~WindowManagerDelegate() {} |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace ui | 193 } // namespace ui |
| 191 | 194 |
| 192 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 195 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |