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

Unified Diff: ash/shelf/app_list_button.h

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed TODO 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_button.h
diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h
index 8983e37d97577fc02d7458d5e554bb803ffd6abc..df3d2a1eb310cf8ad5edd3ea5d44308e13ab4bf3 100644
--- a/ash/shelf/app_list_button.h
+++ b/ash/shelf/app_list_button.h
@@ -9,12 +9,14 @@
#include "ui/views/controls/button/image_button.h"
namespace ash {
+class InkDropButtonListener;
class ShelfView;
// Button used for the AppList icon on the shelf.
class AppListButton : public views::ImageButton {
public:
- explicit AppListButton(ShelfView* shelf_view);
+ explicit AppListButton(InkDropButtonListener* listener,
+ ShelfView* shelf_view);
~AppListButton() override;
bool draw_background_as_active() { return draw_background_as_active_; }
@@ -27,6 +29,7 @@ class AppListButton : public views::ImageButton {
bool OnMouseDragged(const ui::MouseEvent& event) override;
void OnPaint(gfx::Canvas* canvas) override;
void GetAccessibleState(ui::AXViewState* state) override;
+ void NotifyClick(const ui::Event& event) override;
// ui::EventHandler overrides:
void OnGestureEvent(ui::GestureEvent* event) override;
@@ -49,6 +52,7 @@ class AppListButton : public views::ImageButton {
// the application list.
bool draw_background_as_active_;
+ InkDropButtonListener* listener_;
ShelfView* shelf_view_;
DISALLOW_COPY_AND_ASSIGN(AppListButton);
« no previous file with comments | « ash/ash.gyp ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698