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

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

Issue 2400563004: Adjust shadow and stroke of MdTextButton. (Closed)
Patch Set: dont schedule paint, add a lot of consts Created 4 years, 2 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_painted_layer_delegates.h
diff --git a/ui/views/animation/ink_drop_painted_layer_delegates.h b/ui/views/animation/ink_drop_painted_layer_delegates.h
index 56148d28015f7466fc3c3fd6147db6f4152bae74..c4cab4f310bf97b226c1d95b93d7dba19183b3d2 100644
--- a/ui/views/animation/ink_drop_painted_layer_delegates.h
+++ b/ui/views/animation/ink_drop_painted_layer_delegates.h
@@ -114,11 +114,12 @@ class VIEWS_EXPORT RoundedRectangleLayerDelegate
};
// A BasePaintedLayerDelegate that paints a shadow around the outside of a
-// specified roundrect.
+// specified roundrect, and also fills the round rect.
class VIEWS_EXPORT BorderShadowLayerDelegate : public BasePaintedLayerDelegate {
public:
BorderShadowLayerDelegate(const std::vector<gfx::ShadowValue>& shadows,
const gfx::Rect& shadowed_area_bounds,
+ SkColor fill_color,
int corner_radius);
~BorderShadowLayerDelegate() override;
@@ -133,9 +134,11 @@ class VIEWS_EXPORT BorderShadowLayerDelegate : public BasePaintedLayerDelegate {
const std::vector<gfx::ShadowValue> shadows_;
// The bounds of the shadowed area.
- gfx::Rect bounds_;
+ const gfx::Rect bounds_;
- int corner_radius_;
+ const SkColor fill_color_;
+
+ const int corner_radius_;
DISALLOW_COPY_AND_ASSIGN(BorderShadowLayerDelegate);
};
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | ui/views/animation/ink_drop_painted_layer_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698