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

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

Issue 2017833003: Fixes ink drop being "stuck" on when losing focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some left-over crufty code. 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 #ifndef UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_H_
6 #define UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_H_
7
8 #include "base/macros.h"
9 #include "ui/views/animation/ink_drop.h"
10
11 namespace views {
12 namespace test {
13
14 class TestInkDrop : public InkDrop {
15 public:
16 TestInkDrop() : InkDrop() { };
sky 2016/06/02 02:01:40 nit: no ';' and no space between { }. If you run g
17 ~TestInkDrop() override { };
sky 2016/06/02 02:01:40 no ';' here either (and the rest of this file).
18
19 InkDropState GetTargetInkDropState() const override {
20 return InkDropState::HIDDEN;
21 };
22
23 bool IsVisible() const override { return false; };
24 void AnimateToState(InkDropState ink_drop_state) override { };
25 void SnapToActivated() override { };
26 void SetHovered(bool is_hovered) override { };
27 void SetFocused(bool is_focused) override { };
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(TestInkDrop);
31 };
32
33 } // namespace test
34 } // namespace views
35
36 #endif // UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_H_
37
OLDNEW
« no previous file with comments | « no previous file | ui/views/animation/test/test_ink_drop_delegate.h » ('j') | ui/views/animation/test/test_ink_drop_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698