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

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

Issue 2880033003: Apply MD style to Linux avatar buttons. (Closed)
Patch Set: tweaks Created 3 years, 7 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_INK_DROP_HOST_VIEW_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override; 45 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override;
46 std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const override; 46 std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const override;
47 47
48 // Toggle to enable/disable an InkDrop on this View. Descendants can override 48 // Toggle to enable/disable an InkDrop on this View. Descendants can override
49 // CreateInkDropHighlight() and CreateInkDropRipple() to change the look/feel 49 // CreateInkDropHighlight() and CreateInkDropRipple() to change the look/feel
50 // of the InkDrop. 50 // of the InkDrop.
51 // 51 //
52 // TODO(bruthig): Add an easier mechanism than overriding functions to allow 52 // TODO(bruthig): Add an easier mechanism than overriding functions to allow
53 // subclasses/clients to specify the flavor of ink drop. 53 // subclasses/clients to specify the flavor of ink drop.
54 void SetInkDropMode(InkDropMode ink_drop_mode); 54 void SetInkDropMode(InkDropMode ink_drop_mode);
55 InkDropMode ink_drop_mode() const { return ink_drop_mode_; }
55 56
56 void set_ink_drop_visible_opacity(float visible_opacity) { 57 void set_ink_drop_visible_opacity(float visible_opacity) {
57 ink_drop_visible_opacity_ = visible_opacity; 58 ink_drop_visible_opacity_ = visible_opacity;
58 } 59 }
59 float ink_drop_visible_opacity() const { return ink_drop_visible_opacity_; } 60 float ink_drop_visible_opacity() const { return ink_drop_visible_opacity_; }
60 61
61 // Animates |ink_drop_| to the desired |ink_drop_state|. Caches |event| as the 62 // Animates |ink_drop_| to the desired |ink_drop_state|. Caches |event| as the
62 // last_ripple_triggering_event(). 63 // last_ripple_triggering_event().
63 // 64 //
64 // *** NOTE ***: |event| has been plumbed through on a best effort basis for 65 // *** NOTE ***: |event| has been plumbed through on a best effort basis for
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 155
155 bool destroying_; 156 bool destroying_;
156 157
157 std::unique_ptr<views::InkDropMask> ink_drop_mask_; 158 std::unique_ptr<views::InkDropMask> ink_drop_mask_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(InkDropHostView); 160 DISALLOW_COPY_AND_ASSIGN(InkDropHostView);
160 }; 161 };
161 } // namespace views 162 } // namespace views
162 163
163 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_ 164 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698