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

Unified Diff: ui/views/animation/ink_drop_stub.h

Issue 2041033002: Moved ButtonInkDropDelegate logic into InkDropHostView and deleted InkDropDelegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge conflict in custom_button.cc 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 | « ui/views/animation/ink_drop_impl.cc ('k') | ui/views/animation/ink_drop_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_stub.h
diff --git a/ui/views/animation/ink_drop_stub.h b/ui/views/animation/ink_drop_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3efc8dcef9f24d8c4231de09d8c0ac0513effce
--- /dev/null
+++ b/ui/views/animation/ink_drop_stub.h
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/macros.h"
+#include "ui/views/animation/ink_drop.h"
+
+namespace views {
+
+// A stub implementation of an InkDrop that can be used when no visuals should
+// be shown. e.g. material design is enabled.
+class InkDropStub : public InkDrop {
+ public:
+ InkDropStub();
+ ~InkDropStub() override;
+
+ // InkDrop:
+ InkDropState GetTargetInkDropState() const override;
+ 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 views
« no previous file with comments | « ui/views/animation/ink_drop_impl.cc ('k') | ui/views/animation/ink_drop_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698