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

Side by Side Diff: ui/views/animation/empty_ink_drop_ripple.h

Issue 2250783002: Allow InkDropRipple to co-exist with highlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ++tests 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 void AnimateToState(InkDropState ink_drop_state) override;
21 void SnapToActivated() override;
22 ui::Layer* GetRootLayer() override;
23 bool OverridesHighlight() const override;
24
25 protected:
26 // InkDropRipple:
27 void AnimateStateChange(InkDropState old_ink_drop_state,
28 InkDropState new_ink_drop_state,
29 ui::LayerAnimationObserver* observer) override;
30 void SetStateToHidden() override;
31 void AbortAllAnimations() override;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(EmptyInkDropRipple);
35 };
36
37 } // namespace views
38
39 #endif // UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/animation/empty_ink_drop_ripple.cc » ('j') | ui/views/animation/ink_drop_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698