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..73dfea4e742bdc09a0ce7b35c5d0bea1998380be 100644 |
| --- a/ui/views/controls/label.h |
| +++ b/ui/views/controls/label.h |
| @@ -94,6 +94,9 @@ 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. |
| + void set_shadow_blur(double shadow_blur) { shadow_blur_ = shadow_blur; } |
| + |
| // Disables shadows. |
| void ClearEmbellishing(); |
| @@ -267,6 +270,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 +296,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. |
| + bool mirror_shadow_; |
|
flackr
2014/04/17 03:44:29
unused, please remove.
Nina
2014/04/17 15:02:19
Snap, I though I had removed it. Done.
|
| + |
| // The cached heights to avoid recalculation in GetHeightForWidth(). |
| std::vector<gfx::Size> cached_heights_; |
| int cached_heights_cursor_; |