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

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

Issue 2508063004: Take size in ink drop masks instead of bounds (Closed)
Patch Set: Rebased 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
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.cc ('k') | ui/views/animation/ink_drop_mask.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2e1b91a20d2c351da19767ca0d94a8ebb3d1a91a..3146cbaaa51b2d375ff2258a75ed2d0bc655e9b6 100644
--- a/ui/views/animation/ink_drop_mask.h
+++ b/ui/views/animation/ink_drop_mask.h
@@ -23,7 +23,7 @@ class VIEWS_EXPORT InkDropMask : public ui::LayerDelegate {
ui::Layer* layer() { return &layer_; }
protected:
- explicit InkDropMask(const gfx::Rect& layer_bounds);
+ explicit InkDropMask(const gfx::Size& layer_size);
private:
// Overriden from ui::LayerDelegate:
@@ -39,7 +39,7 @@ class VIEWS_EXPORT InkDropMask : public ui::LayerDelegate {
// A rectangular ink drop mask with rounded corners.
class VIEWS_EXPORT RoundRectInkDropMask : public InkDropMask {
public:
- RoundRectInkDropMask(const gfx::Rect& layer_bounds,
+ RoundRectInkDropMask(const gfx::Size& layer_size,
const gfx::Rect& mask_bounds,
int corner_radius);
@@ -56,7 +56,7 @@ class VIEWS_EXPORT RoundRectInkDropMask : public InkDropMask {
// A circular ink drop mask.
class VIEWS_EXPORT CircleInkDropMask : public InkDropMask {
public:
- CircleInkDropMask(const gfx::Rect& layer_bounds,
+ CircleInkDropMask(const gfx::Size& layer_size,
const gfx::Point& mask_center,
int mask_radius);
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.cc ('k') | ui/views/animation/ink_drop_mask.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698