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

Unified Diff: ui/views/controls/label.h

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added reposition animation, shortened movement time, fixed what Terry commented. Created 6 years, 7 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698