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

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

Issue 1513353002: Fix speech flushing on Aura platforms in compat mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 var actionNode = current.start.node; 479 var actionNode = current.start.node;
480 if (actionNode.role == RoleType.inlineTextBox) 480 if (actionNode.role == RoleType.inlineTextBox)
481 actionNode = actionNode.parent; 481 actionNode = actionNode.parent;
482 actionNode.focus(); 482 actionNode.focus();
483 483
484 var prevRange = this.currentRange_; 484 var prevRange = this.currentRange_;
485 this.setCurrentRange(current); 485 this.setCurrentRange(current);
486 486
487 new Output().withSpeechAndBraille( 487 new Output().withSpeechAndBraille(
488 this.currentRange_, prevRange, Output.EventType.NAVIGATE) 488 this.currentRange_, prevRange, Output.EventType.NAVIGATE)
489 .withQueueMode(cvox.QueueMode.FLUSH)
David Tseng 2015/12/10 21:20:55 Flushing's done here; when there's no current rang
489 .go(); 490 .go();
490 } 491 }
491 492
492 return false; 493 return false;
493 }, 494 },
494 495
495 /** 496 /**
496 * Handles key down events. 497 * Handles key down events.
497 * @param {Event} evt The key down event to process. 498 * @param {Event} evt The key down event to process.
498 * @return {boolean} True if the default action should be performed. 499 * @return {boolean} True if the default action should be performed.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') 664 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&')
664 .replace(/\*/g, '.*') 665 .replace(/\*/g, '.*')
665 .replace(/\?/g, '.'); 666 .replace(/\?/g, '.');
666 }).join('|') + ')$'); 667 }).join('|') + ')$');
667 }; 668 };
668 669
669 /** @type {Background} */ 670 /** @type {Background} */
670 global.backgroundObj = new Background(); 671 global.backgroundObj = new Background();
671 672
672 }); // goog.scope 673 }); // goog.scope
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698