| 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_ANIMATION_CONTROLLER_FACTORY_H_ | |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_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 InkDropAnimationController; | |
| 15 class InkDropHost; | |
| 16 | |
| 17 // A factory to create InkDropAnimationController. A different | |
| 18 // InkDropAnimationController type will be created based on whether or not | |
| 19 // material design is enabled. | |
| 20 class VIEWS_EXPORT InkDropAnimationControllerFactory { | |
| 21 public: | |
| 22 // Creates a new InkDropAnimationController that will add/remove an | |
| 23 // InkDropAnimation's ui::Layer to/from the |ink_drop_host| when the animation | |
| 24 // is active/inactive. | |
| 25 static std::unique_ptr<InkDropAnimationController> | |
| 26 CreateInkDropAnimationController(InkDropHost* ink_drop_host); | |
| 27 | |
| 28 private: | |
| 29 InkDropAnimationControllerFactory(); | |
| 30 ~InkDropAnimationControllerFactory(); | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerFactory); | |
| 33 }; | |
| 34 | |
| 35 } // namespace views | |
| 36 | |
| 37 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_FACTORY_H_ | |
| OLD | NEW |