| 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();
|
|
|