| 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', | |
| 233 }, | 232 }, |
| 234 menuBar: { | 233 menuBar: { |
| 235 msgId: 'role_menubar', | 234 msgId: 'role_menubar', |
| 236 }, | 235 }, |
| 237 menuItem: { | 236 menuItem: { |
| 238 msgId: 'role_menuitem', | 237 msgId: 'role_menuitem', |
| 239 earconId: 'BUTTON' | 238 earconId: 'BUTTON' |
| 240 }, | 239 }, |
| 241 menuItemCheckBox: { | 240 menuItemCheckBox: { |
| 242 msgId: 'role_menuitemcheckbox', | 241 msgId: 'role_menuitemcheckbox', |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 '$description' | 445 '$description' |
| 447 }, | 446 }, |
| 448 listBoxOption: { | 447 listBoxOption: { |
| 449 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + | 448 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + |
| 450 '$description' | 449 '$description' |
| 451 }, | 450 }, |
| 452 listItem: { | 451 listItem: { |
| 453 enter: '$role' | 452 enter: '$role' |
| 454 }, | 453 }, |
| 455 menu: { | 454 menu: { |
| 456 enter: '$name $role', | 455 enter: '$name $role @@list_with_items($countChildren(menuItem)) ' + |
| 457 speak: '$name $role @@list_with_items($countChildren(menuItem))' | 456 '$description' |
| 458 }, | 457 }, |
| 459 menuItem: { | 458 menuItem: { |
| 460 speak: '$name $role $if($haspopup, @has_submenu) ' + | 459 speak: '$name $role $if($haspopup, @has_submenu) ' + |
| 461 '@describe_index($indexInParent, $parentChildCount) ' + | 460 '@describe_index($indexInParent, $parentChildCount) ' + |
| 462 '$description' | 461 '$description' |
| 463 }, | 462 }, |
| 464 menuListOption: { | 463 menuListOption: { |
| 465 speak: '$name @role_menuitem ' + | 464 speak: '$name @role_menuitem ' + |
| 466 '@describe_index($indexInParent, $parentChildCount) $description' | 465 '@describe_index($indexInParent, $parentChildCount) $description' |
| 467 }, | 466 }, |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 elem.end); | 1445 elem.end); |
| 1447 }); | 1446 }); |
| 1448 spansToRemove.forEach(result.removeSpan.bind(result)); | 1447 spansToRemove.forEach(result.removeSpan.bind(result)); |
| 1449 separator = Output.SPACE; | 1448 separator = Output.SPACE; |
| 1450 }); | 1449 }); |
| 1451 return result; | 1450 return result; |
| 1452 } | 1451 } |
| 1453 }; | 1452 }; |
| 1454 | 1453 |
| 1455 }); // goog.scope | 1454 }); // goog.scope |
| OLD | NEW |