| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 82 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 83 | 83 |
| 84 WindowState* GetWindowState() { | 84 WindowState* GetWindowState() { |
| 85 return const_cast<WindowState*>( | 85 return const_cast<WindowState*>( |
| 86 const_cast<const WmWindow*>(this)->GetWindowState()); | 86 const_cast<const WmWindow*>(this)->GetWindowState()); |
| 87 } | 87 } |
| 88 virtual const WindowState* GetWindowState() const = 0; | 88 virtual const WindowState* GetWindowState() const = 0; |
| 89 | 89 |
| 90 virtual WmWindow* GetToplevelWindow() = 0; | 90 virtual WmWindow* GetToplevelWindow() = 0; |
| 91 | 91 |
| 92 // See aura::client::ParentWindowWithContext() for details of what this does. |
| 93 virtual void SetParentUsingContext(WmWindow* context, |
| 94 const gfx::Rect& screen_bounds) = 0; |
| 92 virtual void AddChild(WmWindow* window) = 0; | 95 virtual void AddChild(WmWindow* window) = 0; |
| 93 | 96 |
| 94 virtual WmWindow* GetParent() = 0; | 97 virtual WmWindow* GetParent() = 0; |
| 95 | 98 |
| 96 virtual WmWindow* GetTransientParent() = 0; | 99 virtual WmWindow* GetTransientParent() = 0; |
| 97 virtual std::vector<WmWindow*> GetTransientChildren() = 0; | 100 virtual std::vector<WmWindow*> GetTransientChildren() = 0; |
| 98 | 101 |
| 99 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. | 102 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. |
| 100 virtual void SetVisibilityAnimationType(int type) = 0; | 103 virtual void SetVisibilityAnimationType(int type) = 0; |
| 101 virtual void Animate(::wm::WindowAnimationType type) = 0; | 104 virtual void Animate(::wm::WindowAnimationType type) = 0; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 164 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 162 | 165 |
| 163 protected: | 166 protected: |
| 164 virtual ~WmWindow() {} | 167 virtual ~WmWindow() {} |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 } // namespace wm | 170 } // namespace wm |
| 168 } // namespace ash | 171 } // namespace ash |
| 169 | 172 |
| 170 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 173 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |