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

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

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/ink_drop_stub.cc ('k') | ui/views/animation/test/test_ink_drop.cc » ('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 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_H_ 5 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_H_ 6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_H_
7 7
8 #include "ui/views/animation/ink_drop.h" 8 #include "ui/views/animation/ink_drop.h"
9 9
10 namespace views { 10 namespace views {
11 namespace test { 11 namespace test {
12 12
13 // A InkDrop test double that tracks the last requested state changes. 13 // A InkDrop test double that tracks the last requested state changes.
14 // 14 //
15 // NOTE: This does not auto transition between any of the InkDropStates. 15 // NOTE: This does not auto transition between any of the InkDropStates.
16 // 16 //
17 class TestInkDrop : public InkDrop { 17 class TestInkDrop : public InkDrop {
18 public: 18 public:
19 TestInkDrop(); 19 TestInkDrop();
20 ~TestInkDrop() override; 20 ~TestInkDrop() override;
21 21
22 bool is_hovered() const { return is_hovered_; } 22 bool is_hovered() const { return is_hovered_; }
23 23
24 void HostSizeChanged(const gfx::Size& new_size) override; 24 void HostSizeChanged(const gfx::Size& new_size) override;
25 InkDropState GetTargetInkDropState() const override; 25 InkDropState GetTargetInkDropState() const override;
26 void AnimateToState(InkDropState ink_drop_state) override; 26 void AnimateToState(InkDropState ink_drop_state) override;
27 void SnapToActivated() override; 27 void SnapToActivated() override;
28 void SetHovered(bool is_hovered) override; 28 void SetHovered(bool is_hovered) override;
29 void SetFocused(bool is_focused) override; 29 void SetFocused(bool is_focused) override;
30 bool IsHighlightFadingInOrVisible() const override;
31 void SetShowHighlightOnHover(bool show_highlight_on_hover) override;
32 void SetShowHighlightOnFocus(bool show_highlight_on_focus) override;
30 33
31 private: 34 private:
32 InkDropState state_; 35 InkDropState state_;
33 bool is_hovered_; 36 bool is_hovered_;
34 37
35 DISALLOW_COPY_AND_ASSIGN(TestInkDrop); 38 DISALLOW_COPY_AND_ASSIGN(TestInkDrop);
36 }; 39 };
37 40
38 } // namespace test 41 } // namespace test
39 } // namespace views 42 } // namespace views
40 43
41 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_H_ 44 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_stub.cc ('k') | ui/views/animation/test/test_ink_drop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698