| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 * inherits: (string|undefined), | 109 * inherits: (string|undefined), |
| 110 * outputContextFirst: (boolean|undefined)}>} | 110 * outputContextFirst: (boolean|undefined)}>} |
| 111 * msgId: the message id of the role. | 111 * msgId: the message id of the role. |
| 112 * earconId: an optional earcon to play when encountering the role. | 112 * earconId: an optional earcon to play when encountering the role. |
| 113 * inherits: inherits rules from this role. | 113 * inherits: inherits rules from this role. |
| 114 * outputContextFirst: where to place the context output. | 114 * outputContextFirst: where to place the context output. |
| 115 * @private | 115 * @private |
| 116 */ | 116 */ |
| 117 Output.ROLE_INFO_ = { | 117 Output.ROLE_INFO_ = { |
| 118 alert: { | 118 alert: { |
| 119 msgId: 'role_alert', | 119 msgId: 'role_alert' |
| 120 earconId: 'ALERT_NONMODAL' | |
| 121 }, | 120 }, |
| 122 alertDialog: { | 121 alertDialog: { |
| 123 msgId: 'role_alertdialog', | 122 msgId: 'role_alertdialog', |
| 124 outputContextFirst: true | 123 outputContextFirst: true |
| 125 }, | 124 }, |
| 126 article: { | 125 article: { |
| 127 msgId: 'role_article', | 126 msgId: 'role_article', |
| 128 inherits: 'abstractContainer' | 127 inherits: 'abstractContainer' |
| 129 }, | 128 }, |
| 130 application: { | 129 application: { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 navigate: { | 390 navigate: { |
| 392 'default': { | 391 'default': { |
| 393 speak: '$name $value $state $role $description', | 392 speak: '$name $value $state $role $description', |
| 394 braille: '' | 393 braille: '' |
| 395 }, | 394 }, |
| 396 abstractContainer: { | 395 abstractContainer: { |
| 397 enter: '$nameFromNode $role $state $description', | 396 enter: '$nameFromNode $role $state $description', |
| 398 leave: '@exited_container($role)' | 397 leave: '@exited_container($role)' |
| 399 }, | 398 }, |
| 400 alert: { | 399 alert: { |
| 401 speak: '!doNotInterrupt $role $descendants $state' | 400 speak: '$earcon(ALERT_NONMODAL) $role $descendants $state' |
| 402 }, | 401 }, |
| 403 alertDialog: { | 402 alertDialog: { |
| 404 enter: '$nameFromNode $role $description', | 403 enter: '$nameFromNode $role $description', |
| 405 speak: '$name $role $descendants $state' | 404 speak: '$name $role $descendants $state' |
| 406 }, | 405 }, |
| 407 cell: { | 406 cell: { |
| 408 enter: '@cell_summary($tableCellRowIndex, $tableCellColumnIndex) ' + | 407 enter: '@cell_summary($tableCellRowIndex, $tableCellColumnIndex) ' + |
| 409 '$node(tableColumnHeader)', | 408 '$node(tableColumnHeader)', |
| 410 speak: '@cell_summary($tableCellRowIndex, $tableCellColumnIndex) ' + | 409 speak: '@cell_summary($tableCellRowIndex, $tableCellColumnIndex) ' + |
| 411 '$node(tableColumnHeader) $state' | 410 '$node(tableColumnHeader) $state' |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 }, | 593 }, |
| 595 menuListValueChanged: { | 594 menuListValueChanged: { |
| 596 'default': { | 595 'default': { |
| 597 speak: '$value $name ' + | 596 speak: '$value $name ' + |
| 598 '$find({"state": {"selected": true, "invisible": false}}, ' + | 597 '$find({"state": {"selected": true, "invisible": false}}, ' + |
| 599 '@describe_index($indexInParent, $parentChildCount)) ' | 598 '@describe_index($indexInParent, $parentChildCount)) ' |
| 600 } | 599 } |
| 601 }, | 600 }, |
| 602 alert: { | 601 alert: { |
| 603 default: { | 602 default: { |
| 604 speak: '!doNotInterrupt @role_alert ' + | 603 speak: '$earcon(ALERT_NONMODAL) @role_alert ' + |
| 605 '$if($name, $name, $descendants) $earcon(ALERT_NONMODAL) $description' | 604 '$if($name, $name, $descendants) $description' |
| 606 } | 605 } |
| 607 } | 606 } |
| 608 }; | 607 }; |
| 609 | 608 |
| 610 /** | 609 /** |
| 611 * Used to annotate utterances with speech properties. | 610 * Used to annotate utterances with speech properties. |
| 612 * @constructor | 611 * @constructor |
| 613 */ | 612 */ |
| 614 Output.SpeechProperties = function() {}; | 613 Output.SpeechProperties = function() {}; |
| 615 | 614 |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 /** | 1817 /** |
| 1819 * Gets the output buffer for braille. | 1818 * Gets the output buffer for braille. |
| 1820 * @return {!Spannable} | 1819 * @return {!Spannable} |
| 1821 */ | 1820 */ |
| 1822 get brailleOutputForTest() { | 1821 get brailleOutputForTest() { |
| 1823 return this.mergeBraille_(this.brailleBuffer_); | 1822 return this.mergeBraille_(this.brailleBuffer_); |
| 1824 } | 1823 } |
| 1825 }; | 1824 }; |
| 1826 | 1825 |
| 1827 }); // goog.scope | 1826 }); // goog.scope |
| OLD | NEW |