| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_FACTORY_H_ | |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_FACTORY_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "ui/views/views_export.h" | |
| 12 | |
| 13 namespace views { | |
| 14 class InkDrop; | |
| 15 class InkDropHost; | |
| 16 | |
| 17 // A factory to create an InkDrop. A different InkDrop type will be created | |
| 18 // based on whether or not material design is enabled. | |
| 19 class VIEWS_EXPORT InkDropFactory { | |
| 20 public: | |
| 21 // Creates a new InkDrop that will add/remove an InkDropRipple's ui::Layer | |
| 22 // to/from the |ink_drop_host| when the animation is active/inactive. | |
| 23 static std::unique_ptr<InkDrop> CreateInkDrop(InkDropHost* ink_drop_host); | |
| 24 | |
| 25 private: | |
| 26 InkDropFactory(); | |
| 27 ~InkDropFactory(); | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(InkDropFactory); | |
| 30 }; | |
| 31 | |
| 32 } // namespace views | |
| 33 | |
| 34 #endif // UI_VIEWS_ANIMATION_INK_DROP_FACTORY_H_ | |
| OLD | NEW |