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

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

Issue 2675893002: Remove some pre-md code from TrayPopupUtils and UserView. (Closed)
Patch Set: Created 3 years, 11 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 9ca595524686d22857cbbb93097ed6b447f03fb3..995e4d5c459f3f55a4531567ae266628b46f48cd 100644
--- a/ui/views/animation/ink_drop_host_view.h
+++ b/ui/views/animation/ink_drop_host_view.h
@@ -53,6 +53,11 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// subclasses/clients to specify the flavor of ink drop.
void SetInkDropMode(InkDropMode ink_drop_mode);
+ void set_ink_drop_visible_opacity(float visible_opacity) {
+ ink_drop_visible_opacity_ = visible_opacity;
+ }
+ float ink_drop_visible_opacity() const { return ink_drop_visible_opacity_; }
+
protected:
static constexpr int kInkDropSmallCornerRadius = 2;
static constexpr int kInkDropLargeCornerRadius = 4;
@@ -64,11 +69,6 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
// with the SquareInkDropRipple animation durations.
static gfx::Size CalculateLargeInkDropSize(const gfx::Size& small_size);
- void set_ink_drop_visible_opacity(float visible_opacity) {
- ink_drop_visible_opacity_ = visible_opacity;
- }
- float ink_drop_visible_opacity() const { return ink_drop_visible_opacity_; }
-
// Returns the default InkDropRipple centered on |center_point|.
std::unique_ptr<InkDropRipple> CreateDefaultInkDropRipple(
const gfx::Point& center_point,

Powered by Google App Engine
This is Rietveld 408576698