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

Unified Diff: ash/common/shelf/app_list_button.cc

Issue 2534953006: Fix shelf auto-hide calculation for app-list visibility. (Closed)
Patch Set: Address comments. Created 4 years 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/common/shelf/app_list_button.h ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/app_list_button.cc
diff --git a/ash/common/shelf/app_list_button.cc b/ash/common/shelf/app_list_button.cc
index e3bdf2235a90325706f67cd8ea8629f517d3f534..827656cac707f2cc56d09ff618dcc70818b6e13c 100644
--- a/ash/common/shelf/app_list_button.cc
+++ b/ash/common/shelf/app_list_button.cc
@@ -33,6 +33,7 @@ AppListButton::AppListButton(InkDropButtonListener* listener,
ShelfView* shelf_view,
WmShelf* wm_shelf)
: views::ImageButton(nullptr),
+ is_showing_app_list_(false),
draw_background_as_active_(false),
background_alpha_(0),
listener_(listener),
@@ -62,6 +63,8 @@ void AppListButton::OnAppListShown() {
AnimateInkDrop(views::InkDropState::ACTIVATED, nullptr);
else
SchedulePaint();
+ is_showing_app_list_ = true;
+ wm_shelf_->UpdateAutoHideState();
}
void AppListButton::OnAppListDismissed() {
@@ -69,6 +72,8 @@ void AppListButton::OnAppListDismissed() {
AnimateInkDrop(views::InkDropState::DEACTIVATED, nullptr);
else
SchedulePaint();
+ is_showing_app_list_ = false;
+ wm_shelf_->UpdateAutoHideState();
}
void AppListButton::SetBackgroundAlpha(int alpha) {
« no previous file with comments | « ash/common/shelf/app_list_button.h ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698