Chromium Code Reviews| Index: ash/shelf/app_list_button.cc |
| diff --git a/ash/shelf/app_list_button.cc b/ash/shelf/app_list_button.cc |
| index cbef0f4cf36c92393f5913e6ecbb39e28968dba4..b93bb879f10b8772c17024a390e88bf33a3c0519 100644 |
| --- a/ash/shelf/app_list_button.cc |
| +++ b/ash/shelf/app_list_button.cc |
| @@ -267,7 +267,11 @@ void AppListButton::NotifyClick(const ui::Event& event) { |
| } |
| bool AppListButton::ShouldEnterPushedState(const ui::Event& event) { |
| - return !Shell::GetInstance()->IsApplistVisible(); |
| + if (!shelf_view_->ShouldEventActivateButton(this, event)) |
| + return false; |
| + if (Shell::GetInstance()->IsApplistVisible()) |
| + return false; |
| + return views::ImageButton::ShouldEnterPushedState(event); |
|
Dan Beam
2016/07/08 23:32:28
wat
dschuyler
2016/07/20 19:03:01
Done.
|
| } |
| bool AppListButton::ShouldShowInkDropHighlight() const { |