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

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: [ash-md] Disables rounded corners by default in overview mode (nits) 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
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 float original_opacity_; 188 float original_opacity_;
177 189
178 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 190 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
179 191
180 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 192 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
181 }; 193 };
182 194
183 } // namespace ash 195 } // namespace ash
184 196
185 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 197 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698