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

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

Issue 2028303004: Hide hover effect on hidden ink drop host views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/views/animation/test/test_ink_drop_delegate.h"
6
7 namespace views {
8 namespace test {
9
10 TestInkDropDelegate::TestInkDropDelegate() {}
11
12 TestInkDropDelegate::~TestInkDropDelegate() {}
13
14 void TestInkDropDelegate::OnAction(InkDropState state) {
15 ink_drop_.AnimateToState(state);
16 }
17
18 void TestInkDropDelegate::SnapToActivated() {
19 ink_drop_.SnapToActivated();
20 }
21
22 void TestInkDropDelegate::SetHovered(bool is_hovered) {
23 ink_drop_.SetHovered(is_hovered);
24 }
25
26 InkDropState TestInkDropDelegate::GetTargetInkDropState() const {
27 return ink_drop_.GetTargetInkDropState();
28 }
29
30 InkDrop* TestInkDropDelegate::GetInkDrop() {
31 return &ink_drop_;
32 }
33
34 } // namespace test
35 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/animation/test/test_ink_drop_delegate.h ('k') | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698