| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_H_ |
| 6 #define ASH_COMMON_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 // Makes the hit region for children slightly larger for easier resizing. | 267 // Makes the hit region for children slightly larger for easier resizing. |
| 268 virtual void SetChildrenUseExtendedHitRegion() = 0; | 268 virtual void SetChildrenUseExtendedHitRegion() = 0; |
| 269 | 269 |
| 270 // Sets whether descendants of this should not be moved to a different | 270 // Sets whether descendants of this should not be moved to a different |
| 271 // container. This is used by SetBoundsInScreen(). | 271 // container. This is used by SetBoundsInScreen(). |
| 272 virtual void SetDescendantsStayInSameRootWindow(bool value) = 0; | 272 virtual void SetDescendantsStayInSameRootWindow(bool value) = 0; |
| 273 | 273 |
| 274 virtual void AddObserver(WmWindowObserver* observer) = 0; | 274 virtual void AddObserver(WmWindowObserver* observer) = 0; |
| 275 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 275 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 276 virtual bool HasObserver(const WmWindowObserver* observer) const = 0; |
| 276 | 277 |
| 277 protected: | 278 protected: |
| 278 virtual ~WmWindow() {} | 279 virtual ~WmWindow() {} |
| 279 }; | 280 }; |
| 280 | 281 |
| 281 } // namespace ash | 282 } // namespace ash |
| 282 | 283 |
| 283 #endif // ASH_COMMON_WM_WINDOW_H_ | 284 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |