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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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/overflow_button.h ('k') | ash/common/shelf/shelf_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_button.cc
diff --git a/ash/common/shelf/overflow_button.cc b/ash/common/shelf/overflow_button.cc
index 0af3880a51da2b3409c4006648f148bf7630ab7a..607d07a1f1505f5437f06b971efea7456ab65dfe 100644
--- a/ash/common/shelf/overflow_button.cc
+++ b/ash/common/shelf/overflow_button.cc
@@ -26,6 +26,7 @@
#include "ui/gfx/transform.h"
#include "ui/gfx/vector_icons_public.h"
#include "ui/views/animation/flood_fill_ink_drop_ripple.h"
+#include "ui/views/animation/ink_drop_impl.h"
namespace ash {
@@ -82,6 +83,10 @@ void OverflowButton::OnPaint(gfx::Canvas* canvas) {
PaintForeground(canvas, bounds);
}
+std::unique_ptr<views::InkDrop> OverflowButton::CreateInkDrop() {
+ return CreateDefaultFloodFillInkDropImpl();
+}
+
std::unique_ptr<views::InkDropRipple> OverflowButton::CreateInkDropRipple()
const {
return base::MakeUnique<views::FloodFillInkDropRipple>(
@@ -96,10 +101,6 @@ bool OverflowButton::ShouldEnterPushedState(const ui::Event& event) {
return CustomButton::ShouldEnterPushedState(event);
}
-bool OverflowButton::ShouldShowInkDropHighlight() const {
- return false;
-}
-
void OverflowButton::NotifyClick(const ui::Event& event) {
CustomButton::NotifyClick(event);
shelf_view_->ButtonPressed(this, event, GetInkDrop());
« no previous file with comments | « ash/common/shelf/overflow_button.h ('k') | ash/common/shelf/shelf_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698