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

Side by Side Diff: ui/views/animation/empty_ink_drop_ripple.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_EMPTY_INK_DROP_RIPPLE_H_
6 #define UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
7
8 #include "ui/views/animation/ink_drop_ripple.h"
9
10 namespace views {
11
12 // A no-op ink drop ripple which permits an InkDropHost to have an
13 // InkDropHighlight. For use with surfaces that want a highlight but no ripple.
14 class VIEWS_EXPORT EmptyInkDropRipple : public InkDropRipple {
15 public:
16 EmptyInkDropRipple();
17 ~EmptyInkDropRipple() override;
18
19 // InkDropRipple:
20 ui::Layer* GetRootLayer() override;
21 bool OverridesHighlight() const override;
22
23 protected:
24 // InkDropRipple:
25 void AnimateStateChange(InkDropState old_ink_drop_state,
26 InkDropState new_ink_drop_state,
27 ui::LayerAnimationObserver* observer) override;
28 void SetStateToHidden() override;
29 void AbortAllAnimations() override;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(EmptyInkDropRipple);
33 };
34
35 } // namespace views
36
37 #endif // UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698