| OLD | NEW |
| (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_ |
| OLD | NEW |