| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const base::Callback<void(bool)>& on_done) = 0; | 141 const base::Callback<void(bool)>& on_done) = 0; |
| 142 | 142 |
| 143 virtual void OnWmCancelMoveLoop(Window* window) = 0; | 143 virtual void OnWmCancelMoveLoop(Window* window) = 0; |
| 144 | 144 |
| 145 // Called when then client changes the client area of a window. | 145 // Called when then client changes the client area of a window. |
| 146 virtual void OnWmSetClientArea( | 146 virtual void OnWmSetClientArea( |
| 147 Window* window, | 147 Window* window, |
| 148 const gfx::Insets& insets, | 148 const gfx::Insets& insets, |
| 149 const std::vector<gfx::Rect>& additional_client_areas) = 0; | 149 const std::vector<gfx::Rect>& additional_client_areas) = 0; |
| 150 | 150 |
| 151 // Returns whether |window| is the current active window. |
| 152 virtual bool IsWindowActive(Window* window) = 0; |
| 153 |
| 154 // Called when a client requests that its activation be given to another |
| 155 // window. |
| 156 virtual void OnWmDeactivateWindow(Window* window) = 0; |
| 157 |
| 151 protected: | 158 protected: |
| 152 virtual ~WindowManagerDelegate() {} | 159 virtual ~WindowManagerDelegate() {} |
| 153 }; | 160 }; |
| 154 | 161 |
| 155 } // namespace ui | 162 } // namespace ui |
| 156 | 163 |
| 157 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 164 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |