Commit 83c8148d authored by Tatsuhisa Yamaguchi's avatar Tatsuhisa Yamaguchi Committed by Commit Bot

Prevent tab focus moved onto buttons not visible in collapsed mode.

Test: manually verified
Bug: 858957
Change-Id: I31c2b69ca92680ea38ab38ba65f13169e0e11b45
Reviewed-on: https://chromium-review.googlesource.com/1128822Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: default avatarYoshiki Iguchi <yoshiki@chromium.org>
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574097}
parent 900ceec6
......@@ -84,6 +84,11 @@ void FeaturePodsContainerView::ChildVisibilityChanged(View* child) {
SchedulePaint();
}
void FeaturePodsContainerView::ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) {
UpdateChildVisibility();
}
void FeaturePodsContainerView::Layout() {
UpdateCollapsedSidePadding();
......
......@@ -36,6 +36,8 @@ class ASH_EXPORT FeaturePodsContainerView : public views::View {
// Overridden views::View:
gfx::Size CalculatePreferredSize() const override;
void ChildVisibilityChanged(View* child) override;
void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) override;
void Layout() override;
private:
......
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