| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual gfx::Size GetMaximumSize() const = 0; | 85 virtual gfx::Size GetMaximumSize() const = 0; |
| 86 | 86 |
| 87 // Returns the visibility requested by this window. IsVisible() takes into | 87 // Returns the visibility requested by this window. IsVisible() takes into |
| 88 // account the visibility of the layer and ancestors, where as this tracks | 88 // account the visibility of the layer and ancestors, where as this tracks |
| 89 // whether Show() without a Hide() has been invoked. | 89 // whether Show() without a Hide() has been invoked. |
| 90 virtual bool GetTargetVisibility() const = 0; | 90 virtual bool GetTargetVisibility() const = 0; |
| 91 | 91 |
| 92 virtual bool IsVisible() const = 0; | 92 virtual bool IsVisible() const = 0; |
| 93 | 93 |
| 94 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 94 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 95 virtual int GetIntProperty(WmWindowProperty key) = 0; |
| 95 | 96 |
| 96 WindowState* GetWindowState() { | 97 WindowState* GetWindowState() { |
| 97 return const_cast<WindowState*>( | 98 return const_cast<WindowState*>( |
| 98 const_cast<const WmWindow*>(this)->GetWindowState()); | 99 const_cast<const WmWindow*>(this)->GetWindowState()); |
| 99 } | 100 } |
| 100 virtual const WindowState* GetWindowState() const = 0; | 101 virtual const WindowState* GetWindowState() const = 0; |
| 101 | 102 |
| 102 virtual WmWindow* GetToplevelWindow() = 0; | 103 virtual WmWindow* GetToplevelWindow() = 0; |
| 103 | 104 |
| 104 // See aura::client::ParentWindowWithContext() for details of what this does. | 105 // See aura::client::ParentWindowWithContext() for details of what this does. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 198 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 198 | 199 |
| 199 protected: | 200 protected: |
| 200 virtual ~WmWindow() {} | 201 virtual ~WmWindow() {} |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace wm | 204 } // namespace wm |
| 204 } // namespace ash | 205 } // namespace ash |
| 205 | 206 |
| 206 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 207 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |