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

Side by Side Diff: ui/views/controls/textfield/textfield.cc

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (Closed)
Patch Set: Rebase. Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/textfield/textfield.h" 5 #include "ui/views/controls/textfield/textfield.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 910
911 void Textfield::OnDragDone() { 911 void Textfield::OnDragDone() {
912 initiating_drag_ = false; 912 initiating_drag_ = false;
913 drop_cursor_visible_ = false; 913 drop_cursor_visible_ = false;
914 } 914 }
915 915
916 void Textfield::GetAccessibleNodeData(ui::AXNodeData* node_data) { 916 void Textfield::GetAccessibleNodeData(ui::AXNodeData* node_data) {
917 node_data->role = ui::AX_ROLE_TEXT_FIELD; 917 node_data->role = ui::AX_ROLE_TEXT_FIELD;
918 node_data->SetName(accessible_name_); 918 node_data->SetName(accessible_name_);
919 if (enabled()) { 919 if (enabled()) {
920 node_data->AddIntAttribute(ui::AX_ATTR_ACTION, 920 node_data->AddIntAttribute(ui::AX_ATTR_DEFAULT_ACTION_VERB,
921 ui::AX_SUPPORTED_ACTION_ACTIVATE); 921 ui::AX_DEFAULT_ACTION_VERB_ACTIVATE);
922 } 922 }
923 if (read_only()) 923 if (read_only())
924 node_data->AddState(ui::AX_STATE_READ_ONLY); 924 node_data->AddState(ui::AX_STATE_READ_ONLY);
925 else 925 else
926 node_data->AddState(ui::AX_STATE_EDITABLE); 926 node_data->AddState(ui::AX_STATE_EDITABLE);
927 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD) { 927 if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD) {
928 node_data->AddState(ui::AX_STATE_PROTECTED); 928 node_data->AddState(ui::AX_STATE_PROTECTED);
929 node_data->SetValue(base::string16(text().size(), '*')); 929 node_data->SetValue(base::string16(text().size(), '*'));
930 } else { 930 } else {
931 node_data->SetValue(text()); 931 node_data->SetValue(text());
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 cursor_blink_timer_.Stop(); 2117 cursor_blink_timer_.Stop();
2118 } 2118 }
2119 2119
2120 void Textfield::OnCursorBlinkTimerFired() { 2120 void Textfield::OnCursorBlinkTimerFired() {
2121 DCHECK(ShouldBlinkCursor()); 2121 DCHECK(ShouldBlinkCursor());
2122 cursor_view_.SetVisible(!cursor_view_.visible()); 2122 cursor_view_.SetVisible(!cursor_view_.visible());
2123 UpdateCursorViewPosition(); 2123 UpdateCursorViewPosition();
2124 } 2124 }
2125 2125
2126 } // namespace views 2126 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698