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

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: 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
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..327b7cfcc5a2603550c547ac53bfe2902a918059 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.h
+++ b/ash/common/wm/overview/scoped_transform_overview_window.h
@@ -89,6 +89,14 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// Returns the original target bounds of all transformed windows.
gfx::Rect GetTargetBoundsInScreen() const;
+ // Calculates the |window_| bounds after being transformed to the selector's
+ // 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.
+ 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();

Powered by Google App Engine
This is Rietveld 408576698