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

Unified Diff: ash/shelf/overflow_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/shelf/ink_drop_button_listener.h ('k') | ash/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/overflow_button.h
diff --git a/ash/shelf/overflow_button.h b/ash/shelf/overflow_button.h
index 94d52c72eda6c84285f42b2f54f10e65b8bd85ee..4447d9c07433b6a904fe7043b0b7eb4b77c5dfb3 100644
--- a/ash/shelf/overflow_button.h
+++ b/ash/shelf/overflow_button.h
@@ -12,13 +12,13 @@
#include "ui/views/controls/button/custom_button.h"
namespace ash {
-
+class InkDropButtonListener;
class Shelf;
// Shelf overflow chevron button.
class OverflowButton : public views::CustomButton {
public:
- OverflowButton(views::ButtonListener* listener, Shelf* shelf);
+ OverflowButton(InkDropButtonListener* listener, Shelf* shelf);
~OverflowButton() override;
void OnShelfAlignmentChanged();
@@ -27,6 +27,9 @@ class OverflowButton : public views::CustomButton {
// views::View:
void OnPaint(gfx::Canvas* canvas) override;
+ // views::CustomButton:
+ void NotifyClick(const ui::Event& event) override;
+
// Helper functions to paint the background and foreground of the button
// at |bounds|.
void PaintBackground(gfx::Canvas* canvas, const gfx::Rect& bounds);
@@ -56,6 +59,7 @@ class OverflowButton : public views::CustomButton {
gfx::ImageSkia left_image_;
gfx::ImageSkia right_image_;
+ InkDropButtonListener* listener_;
Shelf* shelf_;
DISALLOW_COPY_AND_ASSIGN(OverflowButton);
« no previous file with comments | « ash/shelf/ink_drop_button_listener.h ('k') | ash/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698