Chromium Code Reviews| Index: ui/views/controls/label.h |
| diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h |
| index 45f01988018f59bb311a3fa425be0ceb35fb272c..e992210984df742e7db3f16996a849ecc4aa0154 100644 |
| --- a/ui/views/controls/label.h |
| +++ b/ui/views/controls/label.h |
| @@ -172,6 +172,9 @@ class VIEWS_EXPORT Label : public View { |
| void set_collapse_when_hidden(bool value) { collapse_when_hidden_ = value; } |
| bool collapse_when_hidden() const { return collapse_when_hidden_; } |
| + // Sets the accessibility the label should report. |
|
tdanderson
2014/05/28 16:01:19
accessibility role
Nina
2014/05/29 17:12:24
Done.
|
| + void set_accessible_role(ui::AXRole role) { accessible_role_ = role; } |
| + |
| // Overridden from View: |
| virtual gfx::Insets GetInsets() const OVERRIDE; |
| virtual int GetBaseline() const OVERRIDE; |
| @@ -300,6 +303,9 @@ class VIEWS_EXPORT Label : public View { |
| mutable std::vector<gfx::Size> cached_heights_; |
| mutable int cached_heights_cursor_; |
| + // A11y role for the label. Default is AX_ROLE_STATIC_TEXT. |
| + ui::AXRole accessible_role_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(Label); |
| }; |