| Index: ui/views/controls/label.h
|
| diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
|
| index 45f01988018f59bb311a3fa425be0ceb35fb272c..feca3fd18a1e7ab3563462ae22fea87e6b03be5a 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 role the label should report.
|
| + 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);
|
| };
|
|
|
|
|