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

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

Issue 2720183002: [Views] Update ink drop for omnibox icons (Closed)
Patch Set: Removed CanProcessEventsWithinSubtree Created 3 years, 7 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.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.h" 5 #include "ui/views/animation/test/test_ink_drop.h"
6 6
7 namespace views { 7 namespace views {
8 namespace test { 8 namespace test {
9 9
10 TestInkDrop::TestInkDrop() : state_(InkDropState::HIDDEN), is_hovered_(false) {} 10 TestInkDrop::TestInkDrop() : state_(InkDropState::HIDDEN), is_hovered_(false) {}
(...skipping 12 matching lines...) Expand all
23 void TestInkDrop::SnapToActivated() { 23 void TestInkDrop::SnapToActivated() {
24 state_ = InkDropState::ACTIVATED; 24 state_ = InkDropState::ACTIVATED;
25 } 25 }
26 26
27 void TestInkDrop::SetHovered(bool is_hovered) { 27 void TestInkDrop::SetHovered(bool is_hovered) {
28 is_hovered_ = is_hovered; 28 is_hovered_ = is_hovered;
29 } 29 }
30 30
31 void TestInkDrop::SetFocused(bool is_focused) {} 31 void TestInkDrop::SetFocused(bool is_focused) {}
32 32
33 bool TestInkDrop::IsHighlightFadingInOrVisible() const {
34 return false;
35 }
36
37 void TestInkDrop::SetShowHighlightOnHover(bool show_highlight_on_hover) {}
38
39 void TestInkDrop::SetShowHighlightOnFocus(bool show_highlight_on_focus) {}
40
33 } // namespace test 41 } // namespace test
34 } // namespace views 42 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/animation/test/test_ink_drop.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698