| 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_TEST_TEST_INK_DROP_HOST_H_ | 5 #ifndef UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_HOST_H_ |
| 6 #define UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_HOST_H_ | 6 #define UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/animation/ink_drop_host.h" | 9 #include "ui/views/animation/ink_drop_host.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 void set_should_show_hover(bool should_show_hover) { | 22 void set_should_show_hover(bool should_show_hover) { |
| 23 should_show_hover_ = should_show_hover; | 23 should_show_hover_ = should_show_hover; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // TestInkDropHost: | 26 // TestInkDropHost: |
| 27 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | 27 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
| 28 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; | 28 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; |
| 29 gfx::Point CalculateInkDropCenter() const override; | 29 gfx::Point CalculateInkDropCenter() const override; |
| 30 bool ShouldShowInkDropHover() const override; | 30 bool ShouldShowInkDropHover() const override; |
| 31 SkColor GetInkDropBaseColor() const override; |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 int num_ink_drop_layers_; | 34 int num_ink_drop_layers_; |
| 34 | 35 |
| 35 bool should_show_hover_; | 36 bool should_show_hover_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(TestInkDropHost); | 38 DISALLOW_COPY_AND_ASSIGN(TestInkDropHost); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace views | 41 } // namespace views |
| 41 | 42 |
| 42 #endif // UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_HOST_H_ | 43 #endif // UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_HOST_H_ |
| OLD | NEW |