| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual gfx::Transform GetTargetTransform() const = 0; | 117 virtual gfx::Transform GetTargetTransform() const = 0; |
| 118 | 118 |
| 119 virtual bool IsSystemModal() const = 0; | 119 virtual bool IsSystemModal() const = 0; |
| 120 | 120 |
| 121 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 121 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 122 virtual int GetIntProperty(WmWindowProperty key) = 0; | 122 virtual int GetIntProperty(WmWindowProperty key) = 0; |
| 123 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; | 123 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; |
| 124 | 124 |
| 125 // Returns null if there are no details. | 125 // Returns null if there are no details. |
| 126 virtual ShelfItemDetails* GetShelfItemDetails() = 0; | 126 virtual ShelfItemDetails* GetShelfItemDetails() = 0; |
| 127 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0; |
| 128 virtual void ClearShelfItemDetails() = 0; |
| 127 | 129 |
| 128 wm::WindowState* GetWindowState() { | 130 wm::WindowState* GetWindowState() { |
| 129 return const_cast<wm::WindowState*>( | 131 return const_cast<wm::WindowState*>( |
| 130 const_cast<const WmWindow*>(this)->GetWindowState()); | 132 const_cast<const WmWindow*>(this)->GetWindowState()); |
| 131 } | 133 } |
| 132 virtual const wm::WindowState* GetWindowState() const = 0; | 134 virtual const wm::WindowState* GetWindowState() const = 0; |
| 133 | 135 |
| 134 // The implementation of this matches aura::Window::GetToplevelWindow(). | 136 // The implementation of this matches aura::Window::GetToplevelWindow(). |
| 135 virtual WmWindow* GetToplevelWindow() = 0; | 137 virtual WmWindow* GetToplevelWindow() = 0; |
| 136 // The implementation of this matches | 138 // The implementation of this matches |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 298 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 297 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 299 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 298 | 300 |
| 299 protected: | 301 protected: |
| 300 virtual ~WmWindow() {} | 302 virtual ~WmWindow() {} |
| 301 }; | 303 }; |
| 302 | 304 |
| 303 } // namespace ash | 305 } // namespace ash |
| 304 | 306 |
| 305 #endif // ASH_COMMON_WM_WINDOW_H_ | 307 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |