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

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

Issue 1937353002: Rename of InkDropAnimationController classes to InkDrop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed tdanderson@ comments from patch set 2. 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
Index: ui/views/animation/ink_drop_factory.h
diff --git a/ui/views/animation/ink_drop_factory.h b/ui/views/animation/ink_drop_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..0fc57d82d5470fc5cd399ffd51f1f465746457d3
--- /dev/null
+++ b/ui/views/animation/ink_drop_factory.h
@@ -0,0 +1,34 @@
+// 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_FACTORY_H_
+#define UI_VIEWS_ANIMATION_INK_DROP_FACTORY_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+class InkDrop;
+class InkDropHost;
+
+// A factory to create an InkDrop. A different InkDrop type will be created
+// based on whether or not material design is enabled.
+class VIEWS_EXPORT InkDropFactory {
+ public:
+ // Creates a new InkDrop that will add/remove an InkDropRipple's ui::Layer
+ // to/from the |ink_drop_host| when the animation is active/inactive.
+ static std::unique_ptr<InkDrop> CreateInkDrop(InkDropHost* ink_drop_host);
+
+ private:
+ InkDropFactory();
+ ~InkDropFactory();
+
+ DISALLOW_COPY_AND_ASSIGN(InkDropFactory);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_INK_DROP_FACTORY_H_
« no previous file with comments | « ui/views/animation/ink_drop_animation_controller_impl_unittest.cc ('k') | ui/views/animation/ink_drop_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698