OLD | NEW |
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 inherits: 'abstractContainer' | 221 inherits: 'abstractContainer' |
222 }, | 222 }, |
223 marquee: { | 223 marquee: { |
224 msgId: 'role_marquee', | 224 msgId: 'role_marquee', |
225 }, | 225 }, |
226 math: { | 226 math: { |
227 msgId: 'role_math', | 227 msgId: 'role_math', |
228 inherits: 'abstractContainer' | 228 inherits: 'abstractContainer' |
229 }, | 229 }, |
230 menu: { | 230 menu: { |
231 msgId: 'role_menu' | 231 msgId: 'role_menu', |
| 232 earconId: 'LISTBOX', |
232 }, | 233 }, |
233 menuBar: { | 234 menuBar: { |
234 msgId: 'role_menubar', | 235 msgId: 'role_menubar', |
235 }, | 236 }, |
236 menuItem: { | 237 menuItem: { |
237 msgId: 'role_menuitem', | 238 msgId: 'role_menuitem', |
238 earconId: 'BUTTON' | 239 earconId: 'BUTTON' |
239 }, | 240 }, |
240 menuItemCheckBox: { | 241 menuItemCheckBox: { |
241 msgId: 'role_menuitemcheckbox', | 242 msgId: 'role_menuitemcheckbox', |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 '$description' | 447 '$description' |
447 }, | 448 }, |
448 listBoxOption: { | 449 listBoxOption: { |
449 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + | 450 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + |
450 '$description' | 451 '$description' |
451 }, | 452 }, |
452 listItem: { | 453 listItem: { |
453 enter: '$role' | 454 enter: '$role' |
454 }, | 455 }, |
455 menu: { | 456 menu: { |
456 enter: '$name $role @@list_with_items($countChildren(menuItem)) ' + | 457 enter: '$name $role', |
457 '$description' | 458 speak: '$name $role @@list_with_items($countChildren(menuItem))' |
458 }, | 459 }, |
459 menuItem: { | 460 menuItem: { |
460 speak: '$name $role $if($haspopup, @has_submenu) ' + | 461 speak: '$name $role $if($haspopup, @has_submenu) ' + |
461 '@describe_index($indexInParent, $parentChildCount) ' + | 462 '@describe_index($indexInParent, $parentChildCount) ' + |
462 '$description' | 463 '$description' |
463 }, | 464 }, |
464 menuListOption: { | 465 menuListOption: { |
465 speak: '$name @role_menuitem ' + | 466 speak: '$name @role_menuitem ' + |
466 '@describe_index($indexInParent, $parentChildCount) $description' | 467 '@describe_index($indexInParent, $parentChildCount) $description' |
467 }, | 468 }, |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 elem.end); | 1463 elem.end); |
1463 }); | 1464 }); |
1464 spansToRemove.forEach(result.removeSpan.bind(result)); | 1465 spansToRemove.forEach(result.removeSpan.bind(result)); |
1465 separator = Output.SPACE; | 1466 separator = Output.SPACE; |
1466 }); | 1467 }); |
1467 return result; | 1468 return result; |
1468 } | 1469 } |
1469 }; | 1470 }; |
1470 | 1471 |
1471 }); // goog.scope | 1472 }); // goog.scope |
OLD | NEW |