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

Side by Side Diff: ui/views/animation/test/test_ink_drop_consumer.h

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed pkasting@'s comments from patch set 13. Created 5 years, 1 month 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 2015 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 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_
7
8 #include "base/macros.h"
9 #include "ui/views/animation/ink_drop_consumer.h"
10 #include "ui/views/view.h"
11 #include "ui/views/views_export.h"
12
13 namespace views {
14 namespace test {
15
16 // A non-functional, dummy implementation of an InkDropConsumer that can be used
17 // as a placeholder during tests.
18 class TestInkDropConsumer : public views::InkDropConsumer {
19 public:
20 TestInkDropConsumer();
21 ~TestInkDropConsumer() override;
22
23 void set_should_show_ink_drop_hover(bool should_show_ink_drop_hover) {
24 should_show_ink_drop_hover_ = should_show_ink_drop_hover;
25 }
26
27 // InkDropConsumer:
28 bool ShouldShowInkDropHover() override;
29
30 private:
31 // The return value for ShouldShowInkDropHover().
32 bool should_show_ink_drop_hover_;
33
34 DISALLOW_COPY_AND_ASSIGN(TestInkDropConsumer);
35 };
36
37 } // namespace test
38 } // namespace views
39
40 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698