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

Unified Diff: ash/wm/window_mirror_view.cc

Issue 2470343003: Use mirror layer for minimized windows in overview mode (Closed)
Patch Set: Use mirror layer for minimized windows in overview mode Created 4 years, 1 month 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 | « ash/wm/overview/window_selector_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_mirror_view.cc
diff --git a/ash/wm/window_mirror_view.cc b/ash/wm/window_mirror_view.cc
index a128a42bedaac454016f1802cd3c474963b4f05f..7ba91a8d13cbf82f2fadc342382a4351b471792f 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -6,6 +6,7 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/wm/window_state.h"
+#include "ash/common/wm_window_property.h"
#include "ash/wm/window_state_aura.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
@@ -102,6 +103,12 @@ ui::Layer* WindowMirrorView::GetMirrorLayer() {
}
gfx::Rect WindowMirrorView::GetClientAreaBounds() const {
+ int insets = target_->GetIntProperty(WmWindowProperty::TOP_VIEW_INSET);
+ if (insets > 0) {
+ gfx::Rect bounds(target_->GetBounds().size());
+ bounds.Inset(0, insets, 0, 0);
+ return bounds;
+ }
// The target window may not have a widget in unit tests.
if (!target_->GetInternalWidget())
return gfx::Rect();
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698