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

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

Issue 2510603003: Add ink drop ripple to status tray (Closed)
Patch Set: Created 4 years, 1 month 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_mask.h
diff --git a/ui/views/animation/ink_drop_mask.h b/ui/views/animation/ink_drop_mask.h
index 3146cbaaa51b2d375ff2258a75ed2d0bc655e9b6..a9b7d041c26842ce6dbcd17b923a926f661fcad3 100644
--- a/ui/views/animation/ink_drop_mask.h
+++ b/ui/views/animation/ink_drop_mask.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_delegate.h"
+#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/views_export.h"
@@ -20,6 +21,8 @@ class VIEWS_EXPORT InkDropMask : public ui::LayerDelegate {
public:
~InkDropMask() override;
+ void UpdateLayerSize(const gfx::Size& new_layer_size);
bruthig 2016/11/17 06:31:21 A comment here saying why/when this should be call
mohsen 2016/11/17 20:10:12 Done.
+
ui::Layer* layer() { return &layer_; }
protected:
@@ -40,14 +43,14 @@ class VIEWS_EXPORT InkDropMask : public ui::LayerDelegate {
class VIEWS_EXPORT RoundRectInkDropMask : public InkDropMask {
public:
RoundRectInkDropMask(const gfx::Size& layer_size,
- const gfx::Rect& mask_bounds,
+ const gfx::Insets& mask_insets,
int corner_radius);
private:
// Overriden from InkDropMask:
void OnPaintLayer(const ui::PaintContext& context) override;
- gfx::Rect mask_bounds_;
+ gfx::Insets mask_insets_;
int corner_radius_;
DISALLOW_COPY_AND_ASSIGN(RoundRectInkDropMask);

Powered by Google App Engine
This is Rietveld 408576698