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 #include "ui/views/animation/test/test_ink_drop_host.h" | 5 #include "ui/views/animation/test/test_ink_drop_host.h" |
6 | 6 |
7 namespace views { | 7 namespace views { |
8 | 8 |
9 TestInkDropHost::TestInkDropHost() : num_ink_drop_layers_(0) {} | 9 TestInkDropHost::TestInkDropHost() : num_ink_drop_layers_(0) {} |
10 | 10 |
11 TestInkDropHost::~TestInkDropHost() {} | 11 TestInkDropHost::~TestInkDropHost() {} |
12 | 12 |
13 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) { | 13 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) { |
14 ++num_ink_drop_layers_; | 14 ++num_ink_drop_layers_; |
15 } | 15 } |
16 | 16 |
17 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) { | 17 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) { |
18 --num_ink_drop_layers_; | 18 --num_ink_drop_layers_; |
19 } | 19 } |
20 | 20 |
21 gfx::Point TestInkDropHost::CalculateInkDropCenter() const { | 21 gfx::Point TestInkDropHost::CalculateInkDropCenter() const { |
22 return gfx::Point(); | 22 return gfx::Point(); |
23 } | 23 } |
24 | 24 |
| 25 bool TestInkDropHost::ShouldShowInkDropHover() const { |
| 26 return false; |
| 27 } |
| 28 |
25 } // namespace views | 29 } // namespace views |
OLD | NEW |