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

Unified Diff: ash/shelf/app_list_button.h

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Rebased Created 4 years, 6 months 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
Index: ash/shelf/app_list_button.h
diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h
index df3d2a1eb310cf8ad5edd3ea5d44308e13ab4bf3..077460ea704dfa641f30f5289e3e3642ab5525d9 100644
--- a/ash/shelf/app_list_button.h
+++ b/ash/shelf/app_list_button.h
@@ -19,6 +19,9 @@ class AppListButton : public views::ImageButton {
ShelfView* shelf_view);
~AppListButton() override;
+ void OnAppListShown();
+ void OnAppListDismissed();
+
bool draw_background_as_active() { return draw_background_as_active_; }
protected:
@@ -29,7 +32,10 @@ class AppListButton : public views::ImageButton {
bool OnMouseDragged(const ui::MouseEvent& event) override;
void OnPaint(gfx::Canvas* canvas) override;
void GetAccessibleState(ui::AXViewState* state) override;
+ std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
void NotifyClick(const ui::Event& event) override;
+ bool ShouldEnterPushedState(const ui::Event& event) override;
+ bool ShouldShowInkDropHighlight() const override;
// ui::EventHandler overrides:
void OnGestureEvent(ui::GestureEvent* event) override;

Powered by Google App Engine
This is Rietveld 408576698