| 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 "third_party/skia/include/core/SkColor.h" |
| 9 #include "ui/gfx/geometry/point.h" | 10 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 class Layer; | 14 class Layer; |
| 14 } // namespace ui | 15 } // namespace ui |
| 15 | 16 |
| 16 namespace views { | 17 namespace views { |
| 17 | 18 |
| 18 // Used by the InkDropAnimationController to add and remove the ink drop layers | 19 // Used by the InkDropAnimationController to add and remove the ink drop layers |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 | 33 |
| 33 // Removes |ink_drop_layer| from the layer tree. | 34 // Removes |ink_drop_layer| from the layer tree. |
| 34 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; | 35 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
| 35 | 36 |
| 36 // Returns the Point where the ink drop should be centered. | 37 // Returns the Point where the ink drop should be centered. |
| 37 virtual gfx::Point CalculateInkDropCenter() const = 0; | 38 virtual gfx::Point CalculateInkDropCenter() const = 0; |
| 38 | 39 |
| 39 // Returns true if the InkDropHover should be shown. | 40 // Returns true if the InkDropHover should be shown. |
| 40 virtual bool ShouldShowInkDropHover() const = 0; | 41 virtual bool ShouldShowInkDropHover() const = 0; |
| 41 | 42 |
| 43 // Returns the color to be used to draw the press and hover effects (before an |
| 44 // alpha is applied). |
| 45 virtual SkColor GetInkDropBaseColor() const = 0; |
| 46 |
| 42 private: | 47 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(InkDropHost); | 48 DISALLOW_COPY_AND_ASSIGN(InkDropHost); |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace views | 51 } // namespace views |
| 47 | 52 |
| 48 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ | 53 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
| OLD | NEW |