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

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

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase Created 3 years, 7 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 }, 442 },
443 client: { 443 client: {
444 speak: '$name' 444 speak: '$name'
445 }, 445 },
446 date: { 446 date: {
447 enter: '$nameFromNode $role $description' 447 enter: '$nameFromNode $role $description'
448 }, 448 },
449 dialog: { 449 dialog: {
450 enter: '$nameFromNode $role $description' 450 enter: '$nameFromNode $role $description'
451 }, 451 },
452 div: { 452 genericContainer: {
453 enter: '$nameFromNode', 453 enter: '$nameFromNode',
454 speak: '$nameOrTextContent $description' 454 speak: '$nameOrTextContent $description'
455 }, 455 },
456 embeddedObject: { 456 embeddedObject: {
457 speak: '$name' 457 speak: '$name'
458 }, 458 },
459 grid: { 459 grid: {
460 enter: '$nameFromNode $role $description' 460 enter: '$nameFromNode $role $description'
461 }, 461 },
462 group: { 462 group: {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 listBox: { 494 listBox: {
495 enter: '$nameFromNode ' + 495 enter: '$nameFromNode ' +
496 '$role @@list_with_items($countChildren(listBoxOption)) ' + 496 '$role @@list_with_items($countChildren(listBoxOption)) ' +
497 '$description' 497 '$description'
498 }, 498 },
499 listBoxOption: { 499 listBoxOption: {
500 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' + 500 speak: '$name $role @describe_index($indexInParent, $parentChildCount) ' +
501 '$description $state' 501 '$description $state'
502 }, 502 },
503 listItem: { 503 listItem: {
504 enter: '$role' 504 enter: '$name= $role $state $description',
505 speak: '$nameOrDescendants $role $state $description'
505 }, 506 },
506 menu: { 507 menu: {
507 enter: '$name $role', 508 enter: '$name $role',
508 speak: '$name $role @@list_with_items($countChildren(menuItem)) $state' 509 speak: '$name $role @@list_with_items($countChildren(menuItem)) $state'
509 }, 510 },
510 menuItem: { 511 menuItem: {
511 speak: '$name $role $if($haspopup, @has_submenu) ' + 512 speak: '$name $role $if($haspopup, @has_submenu) ' +
512 '@describe_index($indexInParent, $parentChildCount) ' + 513 '@describe_index($indexInParent, $parentChildCount) ' +
513 '$description $state' 514 '$description $state'
514 }, 515 },
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 /** 1895 /**
1895 * Gets the output buffer for braille. 1896 * Gets the output buffer for braille.
1896 * @return {!Spannable} 1897 * @return {!Spannable}
1897 */ 1898 */
1898 get brailleOutputForTest() { 1899 get brailleOutputForTest() {
1899 return this.mergeBraille_(this.brailleBuffer_); 1900 return this.mergeBraille_(this.brailleBuffer_);
1900 } 1901 }
1901 }; 1902 };
1902 1903
1903 }); // goog.scope 1904 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698