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

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

Issue 2340993002: Tweaks to "Allow InkDropRipple to co-exist with highlight or not exist at all." (Closed)
Patch Set: Fixed InkDropImplTest.HighlightCanExistWithoutRipple. Created 4 years, 3 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_EMPTY_INK_DROP_RIPPLE_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_EMPTY_INK_DROP_RIPPLE_TEST_API_H_
7
8 #include <vector>
9
10 #include "base/macros.h"
11 #include "ui/views/animation/empty_ink_drop_ripple.h"
12 #include "ui/views/animation/test/ink_drop_ripple_test_api.h"
13
14 namespace ui {
15 class LayerAnimator;
16 } // namespace ui
17
18 namespace views {
19 namespace test {
20
21 // Test API to provide internal access to a EmptyInkDropRipple.
22 class EmptyInkDropRippleTestApi : public InkDropRippleTestApi {
23 public:
24 explicit EmptyInkDropRippleTestApi(EmptyInkDropRipple* ink_drop_ripple);
25 ~EmptyInkDropRippleTestApi() override;
26
27 // InkDropRippleTestApi:
28 float GetCurrentOpacity() const override;
29
30 protected:
31 // InkDropRippleTestApi:
32 std::vector<ui::LayerAnimator*> GetLayerAnimators() override;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(EmptyInkDropRippleTestApi);
36 };
37
38 } // namespace test
39 } // namespace views
40
41 #endif // UI_VIEWS_ANIMATION_TEST_EMPTY_INK_DROP_RIPPLE_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698