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

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

Issue 2456783005: [ash-md] Changed the style of ink drop applied to system menu icon buttons. (Closed)
Patch Set: Addressed review comments. Created 4 years, 1 month 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
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_INK_DROP_HIGHLIGHT_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const gfx::PointF& center_point, 52 const gfx::PointF& center_point,
53 SkColor color); 53 SkColor color);
54 virtual ~InkDropHighlight(); 54 virtual ~InkDropHighlight();
55 55
56 void set_observer(InkDropHighlightObserver* observer) { 56 void set_observer(InkDropHighlightObserver* observer) {
57 observer_ = observer; 57 observer_ = observer;
58 } 58 }
59 59
60 void set_explode_size(const gfx::Size& size) { explode_size_ = size; } 60 void set_explode_size(const gfx::Size& size) { explode_size_ = size; }
61 61
62 void set_visible_opacity(float visible_opacity) {
63 visible_opacity_ = visible_opacity;
64 }
65
62 // Returns true if the highlight animation is either in the process of fading 66 // Returns true if the highlight animation is either in the process of fading
63 // in or is fully visible. 67 // in or is fully visible.
64 bool IsFadingInOrVisible() const; 68 bool IsFadingInOrVisible() const;
65 69
66 // Fades in the highlight visual over the given |duration|. 70 // Fades in the highlight visual over the given |duration|.
67 void FadeIn(const base::TimeDelta& duration); 71 void FadeIn(const base::TimeDelta& duration);
68 72
69 // Fades out the highlight visual over the given |duration|. If |explode| is 73 // Fades out the highlight visual over the given |duration|. If |explode| is
70 // true then the highlight will animate a size increase in addition to the 74 // true then the highlight will animate a size increase in addition to the
71 // fade out. 75 // fade out.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 142
139 // This is declared here for use in gtest-based unit tests but is defined in 143 // This is declared here for use in gtest-based unit tests but is defined in
140 // the views_test_support target. Depend on that to use this in your unit test. 144 // the views_test_support target. Depend on that to use this in your unit test.
141 // This should not be used in production code - call ToString() instead. 145 // This should not be used in production code - call ToString() instead.
142 void PrintTo(InkDropHighlight::AnimationType animation_type, 146 void PrintTo(InkDropHighlight::AnimationType animation_type,
143 ::std::ostream* os); 147 ::std::ostream* os);
144 148
145 } // namespace views 149 } // namespace views
146 150
147 #endif // UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_H_ 151 #endif // UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698