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

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

Issue 1682893002: Color the ink drop ripple and hover effects based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit tests 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
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 #include "ui/gfx/color_palette.h"
8
7 namespace views { 9 namespace views {
8 10
9 TestInkDropHost::TestInkDropHost() 11 TestInkDropHost::TestInkDropHost()
10 : num_ink_drop_layers_(0), should_show_hover_(false) {} 12 : num_ink_drop_layers_(0), should_show_hover_(false) {}
11 13
12 TestInkDropHost::~TestInkDropHost() {} 14 TestInkDropHost::~TestInkDropHost() {}
13 15
14 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) { 16 void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) {
15 ++num_ink_drop_layers_; 17 ++num_ink_drop_layers_;
16 } 18 }
17 19
18 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) { 20 void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
19 --num_ink_drop_layers_; 21 --num_ink_drop_layers_;
20 } 22 }
21 23
22 gfx::Point TestInkDropHost::CalculateInkDropCenter() const { 24 gfx::Point TestInkDropHost::CalculateInkDropCenter() const {
23 return gfx::Point(); 25 return gfx::Point();
24 } 26 }
25 27
26 bool TestInkDropHost::ShouldShowInkDropHover() const { 28 bool TestInkDropHost::ShouldShowInkDropHover() const {
27 return should_show_hover_; 29 return should_show_hover_;
28 } 30 }
29 31
32 SkColor TestInkDropHost::GetInkDropBaseColor() const {
33 return gfx::kPlaceholderColor;
34 }
35
30 } // namespace views 36 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698