| 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 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/base/ui_base_types.h" | 15 #include "ui/base/ui_base_types.h" |
| 15 #include "ui/compositor/layer_animation_element.h" | 16 #include "ui/compositor/layer_animation_element.h" |
| 16 #include "ui/wm/core/window_animations.h" | 17 #include "ui/wm/core/window_animations.h" |
| 17 #include "ui/wm/public/window_types.h" | 18 #include "ui/wm/public/window_types.h" |
| 18 | 19 |
| 19 namespace display { | 20 namespace display { |
| 20 class Display; | 21 class Display; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace gfx { | 24 namespace gfx { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Returns the visibility requested by this window. IsVisible() takes into | 113 // Returns the visibility requested by this window. IsVisible() takes into |
| 113 // account the visibility of the layer and ancestors, where as this tracks | 114 // account the visibility of the layer and ancestors, where as this tracks |
| 114 // whether Show() without a Hide() has been invoked. | 115 // whether Show() without a Hide() has been invoked. |
| 115 virtual bool GetTargetVisibility() const = 0; | 116 virtual bool GetTargetVisibility() const = 0; |
| 116 | 117 |
| 117 virtual bool IsVisible() const = 0; | 118 virtual bool IsVisible() const = 0; |
| 118 | 119 |
| 119 virtual void SetOpacity(float opacity) = 0; | 120 virtual void SetOpacity(float opacity) = 0; |
| 120 virtual float GetTargetOpacity() const = 0; | 121 virtual float GetTargetOpacity() const = 0; |
| 121 | 122 |
| 123 virtual gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const = 0; |
| 124 |
| 122 virtual void SetTransform(const gfx::Transform& transform) = 0; | 125 virtual void SetTransform(const gfx::Transform& transform) = 0; |
| 123 virtual gfx::Transform GetTargetTransform() const = 0; | 126 virtual gfx::Transform GetTargetTransform() const = 0; |
| 124 | 127 |
| 125 virtual bool IsSystemModal() const = 0; | 128 virtual bool IsSystemModal() const = 0; |
| 126 | 129 |
| 127 virtual bool GetBoolProperty(WmWindowProperty key) = 0; | 130 virtual bool GetBoolProperty(WmWindowProperty key) = 0; |
| 131 virtual SkColor GetColorProperty(WmWindowProperty key) = 0; |
| 132 virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0; |
| 128 virtual int GetIntProperty(WmWindowProperty key) = 0; | 133 virtual int GetIntProperty(WmWindowProperty key) = 0; |
| 129 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; | 134 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; |
| 130 | 135 |
| 131 // Returns null if there are no details. | 136 // Returns null if there are no details. |
| 132 virtual ShelfItemDetails* GetShelfItemDetails() = 0; | 137 virtual ShelfItemDetails* GetShelfItemDetails() = 0; |
| 133 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0; | 138 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0; |
| 134 virtual void ClearShelfItemDetails() = 0; | 139 virtual void ClearShelfItemDetails() = 0; |
| 135 | 140 |
| 136 wm::WindowState* GetWindowState() { | 141 wm::WindowState* GetWindowState() { |
| 137 return const_cast<wm::WindowState*>( | 142 return const_cast<wm::WindowState*>( |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 324 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 320 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 325 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 321 | 326 |
| 322 protected: | 327 protected: |
| 323 virtual ~WmWindow() {} | 328 virtual ~WmWindow() {} |
| 324 }; | 329 }; |
| 325 | 330 |
| 326 } // namespace ash | 331 } // namespace ash |
| 327 | 332 |
| 328 #endif // ASH_COMMON_WM_WINDOW_H_ | 333 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |