| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual float GetTargetOpacity() const = 0; | 118 virtual float GetTargetOpacity() const = 0; |
| 119 | 119 |
| 120 virtual void SetTransform(const gfx::Transform& transform) = 0; | 120 virtual void SetTransform(const gfx::Transform& transform) = 0; |
| 121 virtual gfx::Transform GetTargetTransform() const = 0; | 121 virtual gfx::Transform GetTargetTransform() const = 0; |
| 122 | 122 |
| 123 virtual bool IsSystemModal() const = 0; | 123 virtual bool IsSystemModal() const = 0; |
| 124 | 124 |
| 125 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 125 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 126 virtual int GetIntProperty(WmWindowProperty key) = 0; | 126 virtual int GetIntProperty(WmWindowProperty key) = 0; |
| 127 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; | 127 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; |
| 128 virtual gfx::Rect* GetRectProperty(WmWindowProperty key) = 0; |
| 128 | 129 |
| 129 // Returns null if there are no details. | 130 // Returns null if there are no details. |
| 130 virtual ShelfItemDetails* GetShelfItemDetails() = 0; | 131 virtual ShelfItemDetails* GetShelfItemDetails() = 0; |
| 131 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0; | 132 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0; |
| 132 virtual void ClearShelfItemDetails() = 0; | 133 virtual void ClearShelfItemDetails() = 0; |
| 133 | 134 |
| 134 wm::WindowState* GetWindowState() { | 135 wm::WindowState* GetWindowState() { |
| 135 return const_cast<wm::WindowState*>( | 136 return const_cast<wm::WindowState*>( |
| 136 const_cast<const WmWindow*>(this)->GetWindowState()); | 137 const_cast<const WmWindow*>(this)->GetWindowState()); |
| 137 } | 138 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 313 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 313 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 314 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 314 | 315 |
| 315 protected: | 316 protected: |
| 316 virtual ~WmWindow() {} | 317 virtual ~WmWindow() {} |
| 317 }; | 318 }; |
| 318 | 319 |
| 319 } // namespace ash | 320 } // namespace ash |
| 320 | 321 |
| 321 #endif // ASH_COMMON_WM_WINDOW_H_ | 322 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |