Commit d8bd04a2 authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Update visibility on overlay view as well

HeaderView is a sibling not child of the CustomFrameViewAsh, so
we need to set the visibility on overlay view as well.

BUG=b/110240289
TEST=manual, using following pip test app.
https://x20web.corp.google.com/users/ed/edcourtney/piptest.apk

Change-Id: Ide5fde4b9ead4fe89b349668d6cbce9ce7f49387
Reviewed-on: https://chromium-review.googlesource.com/1105624
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarEliot Courtney <edcourtney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568360}
parent 2e9a253d
......@@ -458,6 +458,7 @@ void CustomFrameViewAsh::SchedulePaintInRect(const gfx::Rect& r) {
}
void CustomFrameViewAsh::SetVisible(bool visible) {
overlay_view_->SetVisible(visible);
views::View::SetVisible(visible);
// We need to re-layout so that client view will occupy entire window.
InvalidateLayout();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment