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

Unified Diff: ui/gfx/shadow_value.h

Issue 2550593002: Update WM shadows for MD. (Closed)
Patch Set: fix border for small windows Created 4 years 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/image/image_skia_operations.cc ('k') | ui/gfx/shadow_value.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/shadow_value.h
diff --git a/ui/gfx/shadow_value.h b/ui/gfx/shadow_value.h
index c0623f3d1e2a9b1c8fb34b3b9b3aef636fbc4cc3..bf5d98d184ea3c0fbffbed3dcce5e00344cb483b 100644
--- a/ui/gfx/shadow_value.h
+++ b/ui/gfx/shadow_value.h
@@ -41,6 +41,13 @@ class GFX_EXPORT ShadowValue {
// are negative because shadow margins are outside a boundary.
static Insets GetMargin(const ShadowValues& shadows);
+ // Gets the area inside a rectangle that would be affected by shadow blur.
+ // This is similar to the margin except it's positive (the blur region is
+ // inside a hypothetical rectangle) and it accounts for the blur both inside
+ // and outside the bounding box. The region inside the "blur region" would be
+ // a uniform color.
+ static Insets GetBlurRegion(const ShadowValues& shadows);
+
private:
gfx::Vector2d offset_;
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/shadow_value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698