| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // The implementation of this matches aura::Window::GetToplevelWindow(). | 147 // The implementation of this matches aura::Window::GetToplevelWindow(). |
| 148 virtual WmWindow* GetToplevelWindow() = 0; | 148 virtual WmWindow* GetToplevelWindow() = 0; |
| 149 // The implementation of this matches | 149 // The implementation of this matches |
| 150 // aura::client::ActivationClient::GetToplevelWindow(). | 150 // aura::client::ActivationClient::GetToplevelWindow(). |
| 151 virtual WmWindow* GetToplevelWindowForFocus() = 0; | 151 virtual WmWindow* GetToplevelWindowForFocus() = 0; |
| 152 | 152 |
| 153 // See aura::client::ParentWindowWithContext() for details of what this does. | 153 // See aura::client::ParentWindowWithContext() for details of what this does. |
| 154 virtual void SetParentUsingContext(WmWindow* context, | 154 virtual void SetParentUsingContext(WmWindow* context, |
| 155 const gfx::Rect& screen_bounds) = 0; | 155 const gfx::Rect& screen_bounds) = 0; |
| 156 virtual void AddChild(WmWindow* window) = 0; | 156 virtual void AddChild(WmWindow* window) = 0; |
| 157 virtual void RemoveChild(WmWindow* child) = 0; |
| 157 | 158 |
| 158 WmWindow* GetParent() { | 159 WmWindow* GetParent() { |
| 159 return const_cast<WmWindow*>( | 160 return const_cast<WmWindow*>( |
| 160 const_cast<const WmWindow*>(this)->GetParent()); | 161 const_cast<const WmWindow*>(this)->GetParent()); |
| 161 } | 162 } |
| 162 virtual const WmWindow* GetParent() const = 0; | 163 virtual const WmWindow* GetParent() const = 0; |
| 163 | 164 |
| 164 WmWindow* GetTransientParent() { | 165 WmWindow* GetTransientParent() { |
| 165 return const_cast<WmWindow*>( | 166 return const_cast<WmWindow*>( |
| 166 const_cast<const WmWindow*>(this)->GetTransientParent()); | 167 const_cast<const WmWindow*>(this)->GetTransientParent()); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 327 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 327 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 328 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 328 | 329 |
| 329 protected: | 330 protected: |
| 330 virtual ~WmWindow() {} | 331 virtual ~WmWindow() {} |
| 331 }; | 332 }; |
| 332 | 333 |
| 333 } // namespace ash | 334 } // namespace ash |
| 334 | 335 |
| 335 #endif // ASH_COMMON_WM_WINDOW_H_ | 336 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |