Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: ash/common/wm/overview/scoped_transform_overview_window.h

Issue 2197773002: [ash-md] Properly scales windows with transient parents in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |window_| bounds after being transformed to the selector's
93 // space. The returned Rect is in virtual screen coordinates.
tdanderson 2016/07/29 20:20:02 nit: include comment about the purpose of |hide_he
varkha 2016/07/29 20:45:12 Done.
94 gfx::Rect GetTransformedBounds(bool hide_header) const;
95
96 // Returns TOP_VIEW_INSET property of |window_| unless there are transient
97 // ancestors in which case returns 0.
98 int GetTopInset() const;
99
92 // Restores and animates the managed window to it's non overview mode state. 100 // Restores and animates the managed window to it's non overview mode state.
93 void RestoreWindow(); 101 void RestoreWindow();
94 102
95 // Forces the managed window to be shown (ie not hidden or minimized) when 103 // Forces the managed window to be shown (ie not hidden or minimized) when
96 // calling RestoreWindow(). 104 // calling RestoreWindow().
97 void ShowWindowOnExit(); 105 void ShowWindowOnExit();
98 106
99 // Informs the ScopedTransformOverviewWindow that the window being watched was 107 // Informs the ScopedTransformOverviewWindow that the window being watched was
100 // destroyed. This resets the internal window pointer. 108 // destroyed. This resets the internal window pointer.
101 void OnWindowDestroyed(); 109 void OnWindowDestroyed();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 float original_opacity_; 184 float original_opacity_;
177 185
178 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 186 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
179 187
180 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 188 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
181 }; 189 };
182 190
183 } // namespace ash 191 } // namespace ash
184 192
185 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 193 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698