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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js

Issue 2331253002: Use category flush for focus events. (Closed)
Patch Set: fix test Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
index ef6d1128daeda92c764c19962cdddb01bbb9bc6d..81276ced90743331c68bec033a4c3fd78c73a8ed 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
@@ -112,7 +112,7 @@ ISearch.prototype = {
* @implements {ISearchHandler}
*/
ISearchUI = function(input) {
- /** @type {ChromeVoxState} */
+ /** @type {ChromeVoxState} @private */
this.background_ =
chrome.extension.getBackgroundPage()['ChromeVoxState']['instance'];
this.iSearch_ = new ISearch(this.background_.currentRange.start.node);
@@ -204,7 +204,7 @@ ISearchUI.prototype = {
* @private
*/
output_: function(node) {
- Output.flushNextSpeechUtterance();
+ Output.forceModeForNextSpeechUtterance(cvox.QueueMode.FLUSH);
var o = new Output().withRichSpeechAndBraille(
cursors.Range.fromNode(node), null, Output.EventType.NAVIGATE).go();

Powered by Google App Engine
This is Rietveld 408576698