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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * @fileoverview Provides output services for ChromeVox. 6 * @fileoverview Provides output services for ChromeVox.
7 */ 7 */
8 8
9 goog.provide('Output'); 9 goog.provide('Output');
10 goog.provide('Output.EventType'); 10 goog.provide('Output.EventType');
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 msgId: 'aria_role_alert', 86 msgId: 'aria_role_alert',
87 earcon: 'ALERT_NONMODAL', 87 earcon: 'ALERT_NONMODAL',
88 }, 88 },
89 button: { 89 button: {
90 msgId: 'tag_button', 90 msgId: 'tag_button',
91 earcon: 'BUTTON' 91 earcon: 'BUTTON'
92 }, 92 },
93 checkBox: { 93 checkBox: {
94 msgId: 'input_type_checkbox' 94 msgId: 'input_type_checkbox'
95 }, 95 },
96 date: {
97 msgId: 'input_type_date'
98 },
96 dialog: { 99 dialog: {
97 msgId: 'dialog' 100 msgId: 'dialog'
98 }, 101 },
99 heading: { 102 heading: {
100 msgId: 'aria_role_heading', 103 msgId: 'aria_role_heading',
101 }, 104 },
102 link: { 105 link: {
103 msgId: 'tag_link', 106 msgId: 'tag_link',
104 earcon: 'LINK' 107 earcon: 'LINK'
105 }, 108 },
106 listItem: { 109 listItem: {
107 msgId: 'ARIA_ROLE_LISTITEM', 110 msgId: 'ARIA_ROLE_LISTITEM',
108 earcon: 'list_item' 111 earcon: 'list_item'
109 }, 112 },
110 menuListOption: { 113 menuListOption: {
111 msgId: 'aria_role_menuitem' 114 msgId: 'aria_role_menuitem'
112 }, 115 },
113 popUpButton: { 116 popUpButton: {
114 msgId: 'tag_button' 117 msgId: 'tag_button'
115 }, 118 },
116 radioButton: { 119 radioButton: {
117 msgId: 'input_type_radio' 120 msgId: 'input_type_radio'
118 }, 121 },
122 spinButton: {
123 msgId: 'aria_role_combobox',
124 earcon: 'LISTBOX'
125 },
119 textBox: { 126 textBox: {
120 msgId: 'input_type_text', 127 msgId: 'input_type_text',
121 earcon: 'EDITABLE_TEXT' 128 earcon: 'EDITABLE_TEXT'
122 }, 129 },
123 textField: { 130 textField: {
124 msgId: 'input_type_text', 131 msgId: 'input_type_text',
125 earcon: 'EDITABLE_TEXT' 132 earcon: 'EDITABLE_TEXT'
126 }, 133 },
134 time: {
135 msgId: 'tag_time'
136 },
127 toolbar: { 137 toolbar: {
128 msgId: 'aria_role_toolbar' 138 msgId: 'aria_role_toolbar'
129 } 139 }
130 }; 140 };
131 141
132 /** 142 /**
133 * Metadata about supported automation states. 143 * Metadata about supported automation states.
134 * @const {!Object<string, 144 * @const {!Object<string,
135 * {on: {msgId: string, earconId: string}, 145 * {on: {msgId: string, earconId: string},
136 * off: {msgId: string, earconId: string}}>} 146 * off: {msgId: string, earconId: string}}>}
(...skipping 12 matching lines...) Expand all
149 } 159 }
150 }; 160 };
151 161
152 /** 162 /**
153 * Rules specifying format of AutomationNodes for output. 163 * Rules specifying format of AutomationNodes for output.
154 * @type {!Object<string, Object<string, Object<string, string>>>} 164 * @type {!Object<string, Object<string, Object<string, string>>>}
155 */ 165 */
156 Output.RULES = { 166 Output.RULES = {
157 navigate: { 167 navigate: {
158 'default': { 168 'default': {
159 speak: '$name $value $description $role', 169 speak: '$name $value $description $help $role',
160 braille: '' 170 braille: ''
161 }, 171 },
162 alert: { 172 alert: {
163 speak: '!doNotInterrupt $role $descendants' 173 speak: '!doNotInterrupt $role $descendants'
164 }, 174 },
165 checkBox: { 175 checkBox: {
166 speak: '$name $role $checked' 176 speak: '$name $role $checked'
167 }, 177 },
178 date: {
179 enter: '$name $role',
180 leave: '@exited_container($role)'
181 },
168 dialog: { 182 dialog: {
169 enter: '$name $role' 183 enter: '$name $role'
170 }, 184 },
171 heading: { 185 heading: {
172 enter: '@tag_h+$hierarchicalLevel', 186 enter: '@tag_h+$hierarchicalLevel',
173 speak: '@tag_h+$hierarchicalLevel $name=' 187 speak: '@tag_h+$hierarchicalLevel $name='
174 }, 188 },
175 inlineTextBox: { 189 inlineTextBox: {
176 speak: '$value=' 190 speak: '$value='
177 }, 191 },
(...skipping 30 matching lines...) Expand all
208 }, 222 },
209 slider: { 223 slider: {
210 speak: '@describe_slider($value, $name) $help' 224 speak: '@describe_slider($value, $name) $help'
211 }, 225 },
212 staticText: { 226 staticText: {
213 speak: '$value $name' 227 speak: '$value $name'
214 }, 228 },
215 tab: { 229 tab: {
216 speak: '@describe_tab($name)' 230 speak: '@describe_tab($name)'
217 }, 231 },
232 textField: {
233 speak: '$name $value $if(' +
234 '$textInputType, @input_type_+$textInputType, @input_type_text) ' +
235 '$earcon(EDITABLE_TEXT)',
236 braille: ''
237 },
238 time: {
239 enter: '$name $role',
240 leave: '@exited_container($role)'
241 },
218 toolbar: { 242 toolbar: {
219 enter: '$name $role' 243 enter: '$name $role'
220 }, 244 },
221 window: { 245 window: {
222 enter: '$name', 246 enter: '$name',
223 speak: '@describe_window($name) $earcon(OBJECT_OPEN)' 247 speak: '@describe_window($name) $earcon(OBJECT_OPEN)'
224 } 248 }
225 }, 249 },
226 menuStart: { 250 menuStart: {
227 'default': { 251 'default': {
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 } 904 }
881 905
882 if (currentNode != root) 906 if (currentNode != root)
883 throw 'Unbalanced parenthesis.'; 907 throw 'Unbalanced parenthesis.';
884 908
885 return root; 909 return root;
886 } 910 }
887 }; 911 };
888 912
889 }); // goog.scope 913 }); // goog.scope
OLDNEW
« 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