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 |