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

Unified 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, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/scoped_transform_overview_window.h
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.h b/ash/common/wm/overview/scoped_transform_overview_window.h
index 6f8a904ae991e249daec6d9c131527cc79fad676..11b50ef1c146b9bc6358793687b1e6085d90749c 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.h
+++ b/ash/common/wm/overview/scoped_transform_overview_window.h
@@ -89,6 +89,18 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// Returns the original target bounds of all transformed windows.
gfx::Rect GetTargetBoundsInScreen() const;
+ // Calculates the bounds of a |window_| after being transformed to the
+ // selector's space. With Material Design those bounds are a union of all
+ // regular (normal and panel) windows in the |window_|'s transient hierarchy.
+ // The returned Rect is in virtual screen coordinates. When |hide_header| is
+ // true the returned bounds are adjusted to allow the original |window_|'s
+ // header to be hidden.
+ gfx::Rect GetTransformedBounds(bool hide_header) const;
+
+ // Returns TOP_VIEW_INSET property of |window_| unless there are transient
+ // ancestors in which case returns 0.
+ int GetTopInset() const;
+
// Restores and animates the managed window to it's non overview mode state.
void RestoreWindow();
« 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