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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 2488373002: Expose caps lock state as an accessible alert (Closed)
Patch Set: Created 4 years, 1 month 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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'
dmazzoni 2016/11/10 22:15:18 Are you deleting !doNotInterrupt on purpose? I tho
David Tseng 2016/11/10 23:46:04 It was when we were flushing by default. Ever sinc
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
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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 /** 1793 /**
1795 * Gets the output buffer for braille. 1794 * Gets the output buffer for braille.
1796 * @return {!Spannable} 1795 * @return {!Spannable}
1797 */ 1796 */
1798 get brailleOutputForTest() { 1797 get brailleOutputForTest() {
1799 return this.createBrailleOutput_(); 1798 return this.createBrailleOutput_();
1800 } 1799 }
1801 }; 1800 };
1802 1801
1803 }); // goog.scope 1802 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698