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

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

Issue 1696443002: Re-land: Implement ChromeVox Next menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 '$description' 446 '$description'
446 }, 447 },
447 listBoxOption: { 448 listBoxOption: {
448 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + 449 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' +
449 '$description' 450 '$description'
450 }, 451 },
451 listItem: { 452 listItem: {
452 enter: '$role' 453 enter: '$role'
453 }, 454 },
454 menu: { 455 menu: {
455 enter: '$name $role @@list_with_items($countChildren(menuItem)) ' + 456 enter: '$name $role',
456 '$description' 457 speak: '$name $role @@list_with_items($countChildren(menuItem))'
457 }, 458 },
458 menuItem: { 459 menuItem: {
459 speak: '$name $role $if($haspopup, @has_submenu) ' + 460 speak: '$name $role $if($haspopup, @has_submenu) ' +
460 '@describe_index($indexInParent, $parentChildCount) ' + 461 '@describe_index($indexInParent, $parentChildCount) ' +
461 '$description' 462 '$description'
462 }, 463 },
463 menuListOption: { 464 menuListOption: {
464 speak: '$name @role_menuitem ' + 465 speak: '$name @role_menuitem ' +
465 '@describe_index($indexInParent, $parentChildCount) $description' 466 '@describe_index($indexInParent, $parentChildCount) $description'
466 }, 467 },
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 elem.end); 1446 elem.end);
1446 }); 1447 });
1447 spansToRemove.forEach(result.removeSpan.bind(result)); 1448 spansToRemove.forEach(result.removeSpan.bind(result));
1448 separator = Output.SPACE; 1449 separator = Output.SPACE;
1449 }); 1450 });
1450 return result; 1451 return result;
1451 } 1452 }
1452 }; 1453 };
1453 1454
1454 }); // goog.scope 1455 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698