Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: ui/views/animation/test/test_ink_drop_host.cc

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the InkDropAnimationControllerImpl to destroy its timer when not running. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/animation/test/test_ink_drop_host.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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()
10 : num_ink_drop_layers_(0), should_show_hover_(false) {}
10 11
11 TestInkDropHost::~TestInkDropHost() {} 12 TestInkDropHost::~TestInkDropHost() {}
12 13
13 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) { 14 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) {
14 ++num_ink_drop_layers_; 15 ++num_ink_drop_layers_;
15 } 16 }
16 17
17 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) { 18 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
18 --num_ink_drop_layers_; 19 --num_ink_drop_layers_;
19 } 20 }
20 21
21 gfx::Point TestInkDropHost::CalculateInkDropCenter() const { 22 gfx::Point TestInkDropHost::CalculateInkDropCenter() const {
22 return gfx::Point(); 23 return gfx::Point();
23 } 24 }
24 25
26 bool TestInkDropHost::ShouldShowInkDropHover() const {
27 return should_show_hover_;
28 }
29
25 } // namespace views 30 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/animation/test/test_ink_drop_host.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698