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

Unified Diff: ui/views/animation/ink_drop_factory.cc

Issue 2041033002: Moved ButtonInkDropDelegate logic into InkDropHostView and deleted InkDropDelegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ui/views/animation/ink_drop_factory.cc
diff --git a/ui/views/animation/ink_drop_factory.cc b/ui/views/animation/ink_drop_factory.cc
index ef668e153e2b7bd3b93567a6ec4f947780399ffc..7f896510ae90c2cff9b03bb41816f8ecfe6f3d80 100644
--- a/ui/views/animation/ink_drop_factory.cc
+++ b/ui/views/animation/ink_drop_factory.cc
@@ -11,35 +11,11 @@
#include "ui/gfx/geometry/size.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/animation/ink_drop_impl.h"
+#include "ui/views/animation/ink_drop_stub.h"
#include "ui/views/views_export.h"
namespace views {
-namespace {
-
-// A stub implementation of an InkDrop that can be used when material design is
-// not enabled.
-class InkDropStub : public InkDrop {
- public:
- InkDropStub() {}
- ~InkDropStub() override {}
-
- // InkDrop:
- InkDropState GetTargetInkDropState() const override {
- return InkDropState::HIDDEN;
- }
- bool IsVisible() const override { return false; }
- void AnimateToState(InkDropState state) override {}
- void SnapToActivated() override {}
- void SetHovered(bool is_hovered) override {}
- void SetFocused(bool is_hovered) override {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InkDropStub);
-};
-
-} // namespace
-
InkDropFactory::InkDropFactory() {}
InkDropFactory::~InkDropFactory() {}

Powered by Google App Engine
This is Rietveld 408576698