| 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_WM_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_WM_COMMON_WM_WINDOW_H_ |
| 6 #define ASH_WM_COMMON_WM_WINDOW_H_ | 6 #define ASH_WM_COMMON_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual gfx::Size GetMinimumSize() const = 0; | 80 virtual gfx::Size GetMinimumSize() const = 0; |
| 81 virtual gfx::Size GetMaximumSize() const = 0; | 81 virtual gfx::Size GetMaximumSize() const = 0; |
| 82 | 82 |
| 83 // Returns the visibility requested by this window. IsVisible() takes into | 83 // Returns the visibility requested by this window. IsVisible() takes into |
| 84 // account the visibility of the layer and ancestors, where as this tracks | 84 // account the visibility of the layer and ancestors, where as this tracks |
| 85 // whether Show() without a Hide() has been invoked. | 85 // whether Show() without a Hide() has been invoked. |
| 86 virtual bool GetTargetVisibility() const = 0; | 86 virtual bool GetTargetVisibility() const = 0; |
| 87 | 87 |
| 88 virtual bool IsVisible() const = 0; | 88 virtual bool IsVisible() const = 0; |
| 89 | 89 |
| 90 virtual bool IsSystemModal() const = 0; |
| 91 |
| 90 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 92 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 91 virtual int GetIntProperty(WmWindowProperty key) = 0; | 93 virtual int GetIntProperty(WmWindowProperty key) = 0; |
| 92 | 94 |
| 93 WindowState* GetWindowState() { | 95 WindowState* GetWindowState() { |
| 94 return const_cast<WindowState*>( | 96 return const_cast<WindowState*>( |
| 95 const_cast<const WmWindow*>(this)->GetWindowState()); | 97 const_cast<const WmWindow*>(this)->GetWindowState()); |
| 96 } | 98 } |
| 97 virtual const WindowState* GetWindowState() const = 0; | 99 virtual const WindowState* GetWindowState() const = 0; |
| 98 | 100 |
| 99 virtual WmWindow* GetToplevelWindow() = 0; | 101 virtual WmWindow* GetToplevelWindow() = 0; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 196 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 195 | 197 |
| 196 protected: | 198 protected: |
| 197 virtual ~WmWindow() {} | 199 virtual ~WmWindow() {} |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace wm | 202 } // namespace wm |
| 201 } // namespace ash | 203 } // namespace ash |
| 202 | 204 |
| 203 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 205 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |