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

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

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: check details Created 3 years, 9 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/bubble/bubble_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1b6843aabfb6d9955f5e9dbf639e7a3428f98c6b..151992097c1171866a94e8170f5bcd5686c53b27 100644
--- a/ui/views/animation/ink_drop_host_view.h
+++ b/ui/views/animation/ink_drop_host_view.h
@@ -58,6 +58,15 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
}
float ink_drop_visible_opacity() const { return ink_drop_visible_opacity_; }
+ // Animates |ink_drop_| to the desired |ink_drop_state|. Caches |event| as the
+ // last_ripple_triggering_event().
+ //
+ // *** NOTE ***: |event| has been plumbed through on a best effort basis for
+ // the purposes of centering ink drop ripples on located Events. Thus nullptr
+ // has been used by clients who do not have an Event instance available to
+ // them.
+ void AnimateInkDrop(InkDropState state, const ui::LocatedEvent* event);
+
protected:
static constexpr int kInkDropSmallCornerRadius = 2;
static constexpr int kInkDropLargeCornerRadius = 4;
@@ -85,15 +94,6 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// LocatedEvent, otherwise the center point of the local bounds is returned.
gfx::Point GetInkDropCenterBasedOnLastEvent() const;
- // Animates |ink_drop_| to the desired |ink_drop_state|. Caches |event| as the
- // last_ripple_triggering_event().
- //
- // *** NOTE ***: |event| has been plumbed through on a best effort basis for
- // the purposes of centering ink drop ripples on located Events. Thus nullptr
- // has been used by clients who do not have an Event instance available to
- // them.
- void AnimateInkDrop(InkDropState state, const ui::LocatedEvent* event);
-
// View:
void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
void VisibilityChanged(View* starting_from, bool is_visible) override;
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/bubble/bubble_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698