Chromium Code Reviews| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 inherits: 'abstractContainer' | 223 inherits: 'abstractContainer' |
| 224 }, | 224 }, |
| 225 menu: { | 225 menu: { |
| 226 msgId: 'role_menu', | 226 msgId: 'role_menu', |
| 227 earconId: 'LISTBOX', | 227 earconId: 'LISTBOX', |
| 228 }, | 228 }, |
| 229 menuBar: { | 229 menuBar: { |
| 230 msgId: 'role_menubar', | 230 msgId: 'role_menubar', |
| 231 }, | 231 }, |
| 232 menuItem: { | 232 menuItem: { |
| 233 msgId: 'role_menuitem', | 233 msgId: 'role_menuitem' |
| 234 earconId: 'BUTTON' | |
|
dmazzoni
2016/06/14 21:46:32
Did you mean to get rid of the earcon for menuItem
David Tseng
2016/06/15 22:59:20
I did; not sure how you feel about it, but output
| |
| 235 }, | 234 }, |
| 236 menuItemCheckBox: { | 235 menuItemCheckBox: { |
| 237 msgId: 'role_menuitemcheckbox', | 236 msgId: 'role_menuitemcheckbox', |
| 238 earconId: 'BUTTON' | 237 earconId: 'BUTTON' |
| 239 }, | 238 }, |
| 240 menuItemRadio: { | 239 menuItemRadio: { |
| 241 msgId: 'role_menuitemradio', | 240 msgId: 'role_menuitemradio', |
| 242 earconId: 'BUTTON' | 241 earconId: 'BUTTON' |
| 243 }, | 242 }, |
| 244 menuListOption: { | 243 menuListOption: { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 464 }, | 463 }, |
| 465 menu: { | 464 menu: { |
| 466 enter: '$name $role', | 465 enter: '$name $role', |
| 467 speak: '$name $role @@list_with_items($countChildren(menuItem))' | 466 speak: '$name $role @@list_with_items($countChildren(menuItem))' |
| 468 }, | 467 }, |
| 469 menuItem: { | 468 menuItem: { |
| 470 speak: '$name $role $if($haspopup, @has_submenu) ' + | 469 speak: '$name $role $if($haspopup, @has_submenu) ' + |
| 471 '@describe_index($indexInParent, $parentChildCount) ' + | 470 '@describe_index($indexInParent, $parentChildCount) ' + |
| 472 '$description' | 471 '$description' |
| 473 }, | 472 }, |
| 473 menuItemCheckBox: { | |
| 474 speak: '$if($checked, $earcon(CHECK_ON), $earcon(CHECK_OFF)) ' + | |
| 475 '$name $role $checked $description' | |
| 476 }, | |
| 474 menuListOption: { | 477 menuListOption: { |
| 475 speak: '$name @role_menuitem ' + | 478 speak: '$name @role_menuitem ' + |
| 476 '@describe_index($indexInParent, $parentChildCount) $description' | 479 '@describe_index($indexInParent, $parentChildCount) $description' |
| 477 }, | 480 }, |
| 478 paragraph: { | 481 paragraph: { |
| 479 speak: '$descendants' | 482 speak: '$descendants' |
| 480 }, | 483 }, |
| 481 popUpButton: { | 484 popUpButton: { |
| 482 speak: '$value $name $role @aria_has_popup ' + | 485 speak: '$value $name $role @aria_has_popup ' + |
| 483 '$if($collapsed, @aria_expanded_false, @aria_expanded_true) ' + | 486 '$if($collapsed, @aria_expanded_false, @aria_expanded_true) ' + |
| (...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1609 break; | 1612 break; |
| 1610 } | 1613 } |
| 1611 earconFinder = earconFinder.parent; | 1614 earconFinder = earconFinder.parent; |
| 1612 } | 1615 } |
| 1613 } | 1616 } |
| 1614 return null; | 1617 return null; |
| 1615 } | 1618 } |
| 1616 }; | 1619 }; |
| 1617 | 1620 |
| 1618 }); // goog.scope | 1621 }); // goog.scope |
| OLD | NEW |