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

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

Issue 1750403005: [MD] some tweaks to download shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: explicit Created 4 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/gfx/geometry/insets_f.h ('k') | ui/views/animation/ink_drop_host_view.cc » ('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 87832b7dd0ae7e3e5758e2e37dafa9dbf468bcfc..9467d1e0f7a1604364981bfbcbf82af3db729fc0 100644
--- a/ui/views/animation/ink_drop_host_view.h
+++ b/ui/views/animation/ink_drop_host_view.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/views/animation/ink_drop_host.h"
#include "ui/views/view.h"
@@ -27,6 +28,8 @@ class VIEWS_EXPORT InkDropHostView : public views::View, public InkDropHost {
scoped_ptr<InkDropAnimation> CreateInkDropAnimation() const override;
scoped_ptr<InkDropHover> CreateInkDropHover() const override;
+ void set_ink_drop_size(const gfx::Size& size) { ink_drop_size_ = size; }
+
protected:
// Overrideable methods to allow views to provide minor tweaks to the default
// ink drop.
@@ -34,6 +37,8 @@ class VIEWS_EXPORT InkDropHostView : public views::View, public InkDropHost {
virtual SkColor GetInkDropBaseColor() const;
private:
+ gfx::Size ink_drop_size_;
+
DISALLOW_COPY_AND_ASSIGN(InkDropHostView);
};
}
« no previous file with comments | « ui/gfx/geometry/insets_f.h ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698