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

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

Issue 1561773002: Implement ChromeVox Next menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@panel_view_type
Patch Set: Fix Ozone by only activating panel when fullscreen 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 '$description' 447 '$description'
447 }, 448 },
448 listBoxOption: { 449 listBoxOption: {
449 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + 450 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' +
450 '$description' 451 '$description'
451 }, 452 },
452 listItem: { 453 listItem: {
453 enter: '$role' 454 enter: '$role'
454 }, 455 },
455 menu: { 456 menu: {
456 enter: '$name $role @@list_with_items($countChildren(menuItem)) ' + 457 enter: '$name $role',
457 '$description' 458 speak: '$name $role @@list_with_items($countChildren(menuItem))'
458 }, 459 },
459 menuItem: { 460 menuItem: {
460 speak: '$name $role $if($haspopup, @has_submenu) ' + 461 speak: '$name $role $if($haspopup, @has_submenu) ' +
461 '@describe_index($indexInParent, $parentChildCount) ' + 462 '@describe_index($indexInParent, $parentChildCount) ' +
462 '$description' 463 '$description'
463 }, 464 },
464 menuListOption: { 465 menuListOption: {
465 speak: '$name @role_menuitem ' + 466 speak: '$name @role_menuitem ' +
466 '@describe_index($indexInParent, $parentChildCount) $description' 467 '@describe_index($indexInParent, $parentChildCount) $description'
467 }, 468 },
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 elem.end); 1463 elem.end);
1463 }); 1464 });
1464 spansToRemove.forEach(result.removeSpan.bind(result)); 1465 spansToRemove.forEach(result.removeSpan.bind(result));
1465 separator = Output.SPACE; 1466 separator = Output.SPACE;
1466 }); 1467 });
1467 return result; 1468 return result;
1468 } 1469 }
1469 }; 1470 };
1470 1471
1471 }); // goog.scope 1472 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698