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

Side by Side Diff: ui/views/animation/flood_fill_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
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_FLOOD_FILL_INK_DROP_RIPPLE_H_ 5 #ifndef UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_RIPPLE_H_
6 #define UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_RIPPLE_H_ 6 #define UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_RIPPLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public: 50 public:
51 FloodFillInkDropRipple(const gfx::Rect& clip_bounds, 51 FloodFillInkDropRipple(const gfx::Rect& clip_bounds,
52 const gfx::Point& center_point, 52 const gfx::Point& center_point,
53 SkColor color, 53 SkColor color,
54 float visible_opacity); 54 float visible_opacity);
55 ~FloodFillInkDropRipple() override; 55 ~FloodFillInkDropRipple() override;
56 56
57 // InkDropRipple: 57 // InkDropRipple:
58 void SnapToActivated() override; 58 void SnapToActivated() override;
59 ui::Layer* GetRootLayer() override; 59 ui::Layer* GetRootLayer() override;
60 bool IsVisible() const override; 60 bool OverridesHighlight() const override;
61 61
62 private: 62 private:
63 friend class test::FloodFillInkDropRippleTestApi; 63 friend class test::FloodFillInkDropRippleTestApi;
64 64
65 // InkDropRipple: 65 // InkDropRipple:
66 void AnimateStateChange(InkDropState old_ink_drop_state, 66 void AnimateStateChange(InkDropState old_ink_drop_state,
67 InkDropState new_ink_drop_state, 67 InkDropState new_ink_drop_state,
68 ui::LayerAnimationObserver* observer) override; 68 ui::LayerAnimationObserver* observer) override;
69 void SetStateToHidden() override; 69 void SetStateToHidden() override;
70 void AbortAllAnimations() override; 70 void AbortAllAnimations() override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // The current ink drop state. 127 // The current ink drop state.
128 InkDropState ink_drop_state_; 128 InkDropState ink_drop_state_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropRipple); 130 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropRipple);
131 }; 131 };
132 132
133 } // namespace views 133 } // namespace views
134 134
135 #endif // UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_RIPPLE_H_ 135 #endif // UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_RIPPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698