OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ | 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ | 6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 InkDropHost() {} | 27 InkDropHost() {} |
28 virtual ~InkDropHost() {} | 28 virtual ~InkDropHost() {} |
29 | 29 |
30 // Adds the |ink_drop_layer| in to a visible layer tree. | 30 // Adds the |ink_drop_layer| in to a visible layer tree. |
31 virtual void AddInkDropLayer(ui::Layer* ink_drop_layer) = 0; | 31 virtual void AddInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
32 | 32 |
33 // Removes |ink_drop_layer| from the layer tree. | 33 // Removes |ink_drop_layer| from the layer tree. |
34 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; | 34 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
35 | 35 |
36 // Returns the Point where the ink drop should be centered. | 36 // Returns the Point where the ink drop should be centered. |
37 // TODO(varkha): This should be moved to InkDropConsumer. | |
38 virtual gfx::Point CalculateInkDropCenter() const = 0; | 37 virtual gfx::Point CalculateInkDropCenter() const = 0; |
39 | 38 |
| 39 // Returns true if the InkDropHover should be shown. |
| 40 virtual bool ShouldShowInkDropHover() const = 0; |
| 41 |
40 private: | 42 private: |
41 DISALLOW_COPY_AND_ASSIGN(InkDropHost); | 43 DISALLOW_COPY_AND_ASSIGN(InkDropHost); |
42 }; | 44 }; |
43 | 45 |
44 } // namespace views | 46 } // namespace views |
45 | 47 |
46 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ | 48 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
OLD | NEW |