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

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

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Starting again from design doc 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
« ui/views/controls/label.h ('K') | « ui/views/controls/label.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 7028df520c624eed4f967216999fe0dd76fd0d82..488999b14abbfee0402d094af7a1e8b6d3c7a4ba 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -312,7 +312,7 @@ bool Label::GetTooltipText(const gfx::Point& p, base::string16* tooltip) const {
}
void Label::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_STATIC_TEXT;
+ state->role = accessible_role_;
state->AddStateFlag(ui::AX_STATE_READ_ONLY);
state->name = layout_text();
}
@@ -383,6 +383,7 @@ void Label::OnNativeThemeChanged(const ui::NativeTheme* theme) {
void Label::Init(const base::string16& text, const gfx::FontList& font_list) {
font_list_ = font_list;
+ accessible_role_ = ui::AX_ROLE_STATIC_TEXT;
enabled_color_set_ = disabled_color_set_ = background_color_set_ = false;
auto_color_readability_ = true;
UpdateColorsFromTheme(ui::NativeTheme::instance());
« ui/views/controls/label.h ('K') | « ui/views/controls/label.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698