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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Returns the visibility requested by this window. IsVisible() takes into | 110 // Returns the visibility requested by this window. IsVisible() takes into |
111 // account the visibility of the layer and ancestors, where as this tracks | 111 // account the visibility of the layer and ancestors, where as this tracks |
112 // whether Show() without a Hide() has been invoked. | 112 // whether Show() without a Hide() has been invoked. |
113 virtual bool GetTargetVisibility() const = 0; | 113 virtual bool GetTargetVisibility() const = 0; |
114 | 114 |
115 virtual bool IsVisible() const = 0; | 115 virtual bool IsVisible() const = 0; |
116 | 116 |
117 virtual void SetOpacity(float opacity) = 0; | 117 virtual void SetOpacity(float opacity) = 0; |
118 virtual float GetTargetOpacity() const = 0; | 118 virtual float GetTargetOpacity() const = 0; |
119 | 119 |
| 120 virtual gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const = 0; |
| 121 |
120 virtual void SetTransform(const gfx::Transform& transform) = 0; | 122 virtual void SetTransform(const gfx::Transform& transform) = 0; |
121 virtual gfx::Transform GetTargetTransform() const = 0; | 123 virtual gfx::Transform GetTargetTransform() const = 0; |
122 | 124 |
123 virtual bool IsSystemModal() const = 0; | 125 virtual bool IsSystemModal() const = 0; |
124 | 126 |
125 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 127 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
126 virtual int GetIntProperty(WmWindowProperty key) = 0; | 128 virtual int GetIntProperty(WmWindowProperty key) = 0; |
127 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; | 129 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; |
128 | 130 |
129 // Returns null if there are no details. | 131 // Returns null if there are no details. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 316 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
315 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 317 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
316 | 318 |
317 protected: | 319 protected: |
318 virtual ~WmWindow() {} | 320 virtual ~WmWindow() {} |
319 }; | 321 }; |
320 | 322 |
321 } // namespace ash | 323 } // namespace ash |
322 | 324 |
323 #endif // ASH_COMMON_WM_WINDOW_H_ | 325 #endif // ASH_COMMON_WM_WINDOW_H_ |
OLD | NEW |