Chromium Code Reviews| Index: ui/views/controls/label.h |
| diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h |
| index 0964b036c511fd8c15f27d3e96a37213aebd278c..777adf8c82c72e58509064080795fcc2b3cce73a 100644 |
| --- a/ui/views/controls/label.h |
| +++ b/ui/views/controls/label.h |
| @@ -94,6 +94,14 @@ class VIEWS_EXPORT Label : public View { |
| // Sets the drop shadow's offset from the text. |
| void SetShadowOffset(int x, int y); |
| + // Sets the shadow blur. Default is zero. |
| + double shadow_blur() const { return shadow_blur_; } |
| + void SetShadowBlur(double shadow_blur_); |
|
flackr
2014/04/14 20:31:18
Trivial plain old data type setters should be inli
Nina
2014/04/15 15:15:03
Done.
|
| + |
| + // If true, let the shadow surround the text. Default is false. |
| + bool mirror_shadow() const { return mirror_shadow_; } |
| + void SetMirrorShadow(bool mirror_shadow); |
|
flackr
2014/04/14 20:31:18
ditto.
Nina
2014/04/15 15:15:03
Done. Actually, removed.
|
| + |
| // Disables shadows. |
| void ClearEmbellishing(); |
| @@ -267,6 +275,8 @@ class VIEWS_EXPORT Label : public View { |
| bool auto_color_readability_; |
| mutable gfx::Size text_size_; |
| mutable bool text_size_valid_; |
| + // Indicates the level of shadow blurring. Default is zero. |
| + double shadow_blur_; |
| int line_height_; |
| bool is_multi_line_; |
| bool is_obscured_; |
| @@ -291,6 +301,9 @@ class VIEWS_EXPORT Label : public View { |
| // Should a shadow be drawn behind the text? |
| bool has_shadow_; |
| + // If true, surrender the text with the shadow. Default is false. |
|
flackr
2014/04/14 20:31:18
What do you mean by surrender the text with the sh
Nina
2014/04/15 15:15:03
This was removed, but anyway...
I mean that if th
|
| + bool mirror_shadow_; |
| + |
| // The cached heights to avoid recalculation in GetHeightForWidth(). |
| std::vector<gfx::Size> cached_heights_; |
| int cached_heights_cursor_; |