| 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_HOST_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/views/views_export.h" |
| 10 |
| 11 namespace ui { |
| 12 class Layer; |
| 13 } // namespace ui |
| 14 |
| 15 namespace views { |
| 16 |
| 17 // Used by the InkDropAnimationController to add and remove the ink drop layers |
| 18 // from a host's layer tree. |
| 19 // |
| 20 // Note: Some Views do not own a Layer, but you can use |
| 21 // View::SetPaintToLayer(true) to force the View to have a Layer. |
| 22 class VIEWS_EXPORT InkDropHost { |
| 23 public: |
| 24 InkDropHost() {} |
| 25 virtual ~InkDropHost() {} |
| 26 |
| 27 // Add the |ink_drop_layer| in to a visible layer tree. |
| 28 virtual void AddInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
| 29 |
| 30 // Removes |ink_drop_layer| from the layer tree. |
| 31 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(InkDropHost); |
| 35 }; |
| 36 |
| 37 } // namespace views |
| 38 |
| 39 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
| OLD | NEW |