Chromium Code Reviews| Index: ui/views/animation/ink_drop_host.h |
| diff --git a/ui/views/animation/ink_drop_host.h b/ui/views/animation/ink_drop_host.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b787abe581073c08abc21dd355f066509b1a65b4 |
| --- /dev/null |
| +++ b/ui/views/animation/ink_drop_host.h |
| @@ -0,0 +1,36 @@ |
| +// 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_HOST_H_ |
| +#define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
| + |
| +#include "base/macros.h" |
| +#include "ui/views/views_export.h" |
| + |
| +namespace ui { |
| +class Layer; |
| +} // namespace ui |
| + |
| +namespace views { |
| + |
| +// Used by the InkDropAnimationController to add and remove the ink drop layers |
| +// from a hosts layer tree. |
|
tdanderson
2015/08/10 16:31:01
nit: hosts -> host's
bruthig
2015/08/10 21:57:15
Done.
|
| +class VIEWS_EXPORT InkDropHost { |
| + public: |
| + InkDropHost() {} |
| + virtual ~InkDropHost() {} |
| + |
| + // Add the |ink_drop_layer| in to a visible layer tree. |
| + virtual void AddInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
| + |
| + // Removes |ink_drop_layer| from the layer tree. |
| + virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(InkDropHost); |
| +}; |
| + |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |