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

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

Issue 2028173003: Refine ChromeVox's treatment of containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 The entry point for all ChromeVox2 related code for the 6 * @fileoverview The entry point for all ChromeVox2 related code for the
7 * background page. 7 * background page.
8 */ 8 */
9 9
10 goog.provide('Background'); 10 goog.provide('Background');
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 default: 765 default:
766 return true; 766 return true;
767 } 767 }
768 768
769 if (pred) { 769 if (pred) {
770 var node = AutomationUtil.findNextNode( 770 var node = AutomationUtil.findNextNode(
771 current.getBound(dir).node, dir, pred, {skipInitialAncestry: true}); 771 current.getBound(dir).node, dir, pred, {skipInitialAncestry: true});
772 772
773 if (node) { 773 if (node) {
774 node = AutomationUtil.findNodePre( 774 node = AutomationUtil.findNodePre(
775 node, dir, AutomationPredicate.element) || node; 775 node, dir, AutomationPredicate.object) || node;
776 } 776 }
777 777
778 if (node) { 778 if (node) {
779 current = cursors.Range.fromNode(node); 779 current = cursors.Range.fromNode(node);
780 } else { 780 } else {
781 if (predErrorMsg) { 781 if (predErrorMsg) {
782 cvox.ChromeVox.tts.speak(Msgs.getMsg(predErrorMsg), 782 cvox.ChromeVox.tts.speak(Msgs.getMsg(predErrorMsg),
783 cvox.QueueMode.FLUSH); 783 cvox.QueueMode.FLUSH);
784 } 784 }
785 return false; 785 return false;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') 1141 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&')
1142 .replace(/\*/g, '.*') 1142 .replace(/\*/g, '.*')
1143 .replace(/\?/g, '.'); 1143 .replace(/\?/g, '.');
1144 }).join('|') + ')$'); 1144 }).join('|') + ')$');
1145 }; 1145 };
1146 1146
1147 /** @type {Background} */ 1147 /** @type {Background} */
1148 global.backgroundObj = new Background(); 1148 global.backgroundObj = new Background();
1149 1149
1150 }); // goog.scope 1150 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698