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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 virtual float GetTargetOpacity() const = 0; | 127 virtual float GetTargetOpacity() const = 0; |
128 | 128 |
129 virtual gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const = 0; | 129 virtual gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const = 0; |
130 | 130 |
131 virtual void SetTransform(const gfx::Transform& transform) = 0; | 131 virtual void SetTransform(const gfx::Transform& transform) = 0; |
132 virtual gfx::Transform GetTargetTransform() const = 0; | 132 virtual gfx::Transform GetTargetTransform() const = 0; |
133 | 133 |
134 virtual bool IsSystemModal() const = 0; | 134 virtual bool IsSystemModal() const = 0; |
135 | 135 |
136 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 136 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 137 virtual void SetBoolProperty(WmWindowProperty key, bool value) = 0; |
137 virtual SkColor GetColorProperty(WmWindowProperty key) = 0; | 138 virtual SkColor GetColorProperty(WmWindowProperty key) = 0; |
138 virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0; | 139 virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0; |
139 virtual int GetIntProperty(WmWindowProperty key) = 0; | 140 virtual int GetIntProperty(WmWindowProperty key) = 0; |
140 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; | 141 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; |
141 virtual std::string GetStringProperty(WmWindowProperty key) = 0; | 142 virtual std::string GetStringProperty(WmWindowProperty key) = 0; |
142 virtual void SetStringProperty(WmWindowProperty key, | 143 virtual void SetStringProperty(WmWindowProperty key, |
143 const std::string& value) = 0; | 144 const std::string& value) = 0; |
144 | 145 |
145 virtual gfx::ImageSkia GetWindowIcon() = 0; | 146 virtual gfx::ImageSkia GetWindowIcon() = 0; |
146 virtual gfx::ImageSkia GetAppIcon() = 0; | 147 virtual gfx::ImageSkia GetAppIcon() = 0; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 341 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
341 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 342 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
342 | 343 |
343 protected: | 344 protected: |
344 virtual ~WmWindow() {} | 345 virtual ~WmWindow() {} |
345 }; | 346 }; |
346 | 347 |
347 } // namespace ash | 348 } // namespace ash |
348 | 349 |
349 #endif // ASH_COMMON_WM_WINDOW_H_ | 350 #endif // ASH_COMMON_WM_WINDOW_H_ |
OLD | NEW |