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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 // Removes |ink_drop_layer| from the layer tree. | 38 // Removes |ink_drop_layer| from the layer tree. |
39 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; | 39 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; |
40 | 40 |
41 // Creates and returns the effect used for press. | 41 // Creates and returns the effect used for press. |
42 virtual std::unique_ptr<InkDropRipple> CreateInkDropRipple() const = 0; | 42 virtual std::unique_ptr<InkDropRipple> CreateInkDropRipple() const = 0; |
43 | 43 |
44 // Creates and returns the effect used for hover and focus. | 44 // Creates and returns the effect used for hover and focus. |
45 virtual std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const = 0; | 45 virtual std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const = 0; |
46 | 46 |
47 // Translates the root layer by |offset|. | |
48 virtual void OffsetInkDropRipple(const gfx::Vector2d& offset) = 0; | |
bruthig
2016/10/08 22:44:46
I think it would be better to move this function i
varkha
2016/10/12 00:44:59
Acknowledged.
| |
49 | |
47 private: | 50 private: |
48 DISALLOW_COPY_AND_ASSIGN(InkDropHost); | 51 DISALLOW_COPY_AND_ASSIGN(InkDropHost); |
49 }; | 52 }; |
50 | 53 |
51 } // namespace views | 54 } // namespace views |
52 | 55 |
53 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ | 56 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ |
OLD | NEW |