| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // overview_window.SetOpacity(1); | 82 // overview_window.SetOpacity(1); |
| 83 void BeginScopedAnimation(OverviewAnimationType animation_type, | 83 void BeginScopedAnimation(OverviewAnimationType animation_type, |
| 84 ScopedAnimationSettings* animation_settings); | 84 ScopedAnimationSettings* animation_settings); |
| 85 | 85 |
| 86 // Returns true if this window selector window contains the |target|. | 86 // Returns true if this window selector window contains the |target|. |
| 87 bool Contains(const WmWindow* target) const; | 87 bool Contains(const WmWindow* target) const; |
| 88 | 88 |
| 89 // Returns the original target bounds of all transformed windows. | 89 // Returns the original target bounds of all transformed windows. |
| 90 gfx::Rect GetTargetBoundsInScreen() const; | 90 gfx::Rect GetTargetBoundsInScreen() const; |
| 91 | 91 |
| 92 // Calculates the bounds of a |window_| after being transformed to the |
| 93 // selector's space. With Material Design those bounds are a union of all |
| 94 // regular (normal and panel) windows in the |window_|'s transient hierarchy. |
| 95 // The returned Rect is in virtual screen coordinates. When |hide_header| is |
| 96 // true the returned bounds are adjusted to allow the original |window_|'s |
| 97 // header to be hidden. |
| 98 gfx::Rect GetTransformedBounds(bool hide_header) const; |
| 99 |
| 100 // Returns TOP_VIEW_INSET property of |window_| unless there are transient |
| 101 // ancestors in which case returns 0. |
| 102 int GetTopInset() const; |
| 103 |
| 92 // Restores and animates the managed window to it's non overview mode state. | 104 // Restores and animates the managed window to it's non overview mode state. |
| 93 void RestoreWindow(); | 105 void RestoreWindow(); |
| 94 | 106 |
| 95 // Forces the managed window to be shown (ie not hidden or minimized) when | 107 // Forces the managed window to be shown (ie not hidden or minimized) when |
| 96 // calling RestoreWindow(). | 108 // calling RestoreWindow(). |
| 97 void ShowWindowOnExit(); | 109 void ShowWindowOnExit(); |
| 98 | 110 |
| 99 // Informs the ScopedTransformOverviewWindow that the window being watched was | 111 // Informs the ScopedTransformOverviewWindow that the window being watched was |
| 100 // destroyed. This resets the internal window pointer. | 112 // destroyed. This resets the internal window pointer. |
| 101 void OnWindowDestroyed(); | 113 void OnWindowDestroyed(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 float original_opacity_; | 182 float original_opacity_; |
| 171 | 183 |
| 172 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; | 184 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; |
| 173 | 185 |
| 174 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); | 186 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); |
| 175 }; | 187 }; |
| 176 | 188 |
| 177 } // namespace ash | 189 } // namespace ash |
| 178 | 190 |
| 179 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ | 191 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ |
| OLD | NEW |