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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 1106583003: Support output of input types (email, tel, time, date). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index 45b0f50621d7d20b66a401dc4b9c956dece6b4a4..2fc65b4568b006fd38a53339eea87d99a88792d5 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -93,6 +93,9 @@ Output.ROLE_INFO_ = {
checkBox: {
msgId: 'input_type_checkbox'
},
+ date: {
+ msgId: 'input_type_date'
+ },
dialog: {
msgId: 'dialog'
},
@@ -116,6 +119,10 @@ Output.ROLE_INFO_ = {
radioButton: {
msgId: 'input_type_radio'
},
+ spinButton: {
+ msgId: 'aria_role_combobox',
+ earcon: 'LISTBOX'
+ },
textBox: {
msgId: 'input_type_text',
earcon: 'EDITABLE_TEXT'
@@ -124,6 +131,9 @@ Output.ROLE_INFO_ = {
msgId: 'input_type_text',
earcon: 'EDITABLE_TEXT'
},
+ time: {
+ msgId: 'tag_time'
+ },
toolbar: {
msgId: 'aria_role_toolbar'
}
@@ -156,7 +166,7 @@ Output.STATE_INFO_ = {
Output.RULES = {
navigate: {
'default': {
- speak: '$name $value $description $role',
+ speak: '$name $value $description $help $role',
braille: ''
},
alert: {
@@ -165,6 +175,10 @@ Output.RULES = {
checkBox: {
speak: '$name $role $checked'
},
+ date: {
+ enter: '$name $role',
+ leave: '@exited_container($role)'
+ },
dialog: {
enter: '$name $role'
},
@@ -215,6 +229,16 @@ Output.RULES = {
tab: {
speak: '@describe_tab($name)'
},
+ textField: {
+ speak: '$name $value $if(' +
+ '$textInputType, @input_type_+$textInputType, @input_type_text) ' +
+ '$earcon(EDITABLE_TEXT)',
+ braille: ''
+ },
+ time: {
+ enter: '$name $role',
+ leave: '@exited_container($role)'
+ },
toolbar: {
enter: '$name $role'
},
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698