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

Unified Diff: ui/views/animation/ink_drop_host_view.h

Issue 2832223003: Update profile switcher button on Linux. (Closed)
Patch Set: self review Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/animation/ink_drop_host_view.h
diff --git a/ui/views/animation/ink_drop_host_view.h b/ui/views/animation/ink_drop_host_view.h
index 151992097c1171866a94e8170f5bcd5686c53b27..fc39a978134d882d0a4a7be41cee371a07642553 100644
--- a/ui/views/animation/ink_drop_host_view.h
+++ b/ui/views/animation/ink_drop_host_view.h
@@ -52,6 +52,7 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// TODO(bruthig): Add an easier mechanism than overriding functions to allow
// subclasses/clients to specify the flavor of ink drop.
void SetInkDropMode(InkDropMode ink_drop_mode);
+ InkDropMode ink_drop_mode() const { return ink_drop_mode_; }
void set_ink_drop_visible_opacity(float visible_opacity) {
ink_drop_visible_opacity_ = visible_opacity;
@@ -114,6 +115,12 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// subclasses should be able to call SetInkDropMode() during construction.
InkDrop* GetInkDrop();
+ // Initializes and sets a mask on |ink_drop_layer|. No-op if
+ // CreateInkDropMask() returns null.
+ void InstallInkDropMask(ui::Layer* ink_drop_layer);
+
+ void ResetInkDropMask();
+
// Returns an InkDropImpl configured to work well with a
// flood-fill ink drop ripple.
std::unique_ptr<InkDropImpl> CreateDefaultFloodFillInkDropImpl();

Powered by Google App Engine
This is Rietveld 408576698