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

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

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout Created 4 years, 7 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 | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/ink_drop_host_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f67f6b68cd123bb036114715f1e0a4e0087f7d71..ef668e153e2b7bd3b93567a6ec4f947780399ffc 100644
--- a/ui/views/animation/ink_drop_factory.cc
+++ b/ui/views/animation/ink_drop_factory.cc
@@ -21,38 +21,23 @@ namespace {
// not enabled.
class InkDropStub : public InkDrop {
public:
- explicit InkDropStub();
- ~InkDropStub() override;
+ InkDropStub() {}
+ ~InkDropStub() override {}
// InkDrop:
- InkDropState GetTargetInkDropState() const override;
- bool IsVisible() const override;
- void AnimateToState(InkDropState state) override;
- void SnapToActivated() override;
- void SetHovered(bool is_hovered) override;
+ 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);
};
-InkDropStub::InkDropStub() {}
-
-InkDropStub::~InkDropStub() {}
-
-InkDropState InkDropStub::GetTargetInkDropState() const {
- return InkDropState::HIDDEN;
-}
-
-bool InkDropStub::IsVisible() const {
- return false;
-}
-
-void InkDropStub::AnimateToState(InkDropState state) {}
-
-void InkDropStub::SnapToActivated() {}
-
-void InkDropStub::SetHovered(bool is_hovered) {}
-
} // namespace
InkDropFactory::InkDropFactory() {}
« no previous file with comments | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/ink_drop_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698