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

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

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed pkasting@'s comments from patch set 13. Created 5 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 | « ui/views/animation/ink_drop_animation_controller_impl.cc ('k') | ui/views/animation/ink_drop_hover.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_consumer.h
diff --git a/ui/views/animation/ink_drop_consumer.h b/ui/views/animation/ink_drop_consumer.h
new file mode 100644
index 0000000000000000000000000000000000000000..84b7e3555d3e498c029edd4d0705fcde09631457
--- /dev/null
+++ b/ui/views/animation/ink_drop_consumer.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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.
+
+#ifndef UI_VIEWS_ANIMATION_INK_DROP_CONSUMER_H_
+#define UI_VIEWS_ANIMATION_INK_DROP_CONSUMER_H_
+
+#include "base/macros.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+// Pure virtual base class that defines the API required of the ink drop
Evan Stade 2015/11/12 19:31:46 nit: s/Pure virtual base class/Interface/
bruthig 2015/12/23 20:31:35 Done.
+// consuming surface such that the InkDropController can interact with it.
+class VIEWS_EXPORT InkDropConsumer {
Evan Stade 2015/11/12 19:31:46 why is this not part of InkDropHost? It looks pret
bruthig 2015/11/12 21:16:12 The thinking is that the InkDropHost could host mu
bruthig 2015/12/23 20:31:35 The InkDropConsumer has been removed.
+ public:
+ InkDropConsumer() {}
+ virtual ~InkDropConsumer() {}
+
+ // Returns true if the InkDropHover should be shown.
+ virtual bool ShouldShowInkDropHover() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InkDropConsumer);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_INK_DROP_CONSUMER_H_
« no previous file with comments | « ui/views/animation/ink_drop_animation_controller_impl.cc ('k') | ui/views/animation/ink_drop_hover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698