Chromium Code Reviews| Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
| index baaa6ae3319c3880f890a611bf6d774651d87222..468fdffddcec454609445042f2061154863b0c36 100644 |
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
| @@ -82,14 +82,14 @@ cvox.LiveRegions.nodesAlreadyHandled = []; |
| /** |
| * @param {Date} pageLoadTime The time the page was loaded. Live region |
| * updates within the first INITIAL_SILENCE_MS milliseconds are ignored. |
| - * @param {number} queueMode Interrupt or flush. Polite live region |
| + * @param {cvox.QueueMode} queueMode Interrupt or flush. Polite live region |
| * changes always queue. |
| * @param {boolean} disableSpeak true if change announcement should be disabled. |
| * @return {boolean} true if any regions announced. |
| */ |
| cvox.LiveRegions.init = function(pageLoadTime, queueMode, disableSpeak) { |
| if (queueMode == undefined) { |
|
Peter Lundblad
2014/09/29 13:51:03
This shouldn't happen if the compiler works correc
dmazzoni
2014/09/30 22:01:19
Done.
|
| - queueMode = cvox.AbstractTts.QUEUE_MODE_FLUSH; |
| + queueMode = cvox.QueueMode.FLUSH; |
| } |
| cvox.LiveRegions.pageLoadTime = pageLoadTime; |
| @@ -109,8 +109,8 @@ cvox.LiveRegions.init = function(pageLoadTime, queueMode, disableSpeak) { |
| false, |
| false, |
| function(assertive, navDescriptions) { |
| - if (!assertive && queueMode == cvox.AbstractTts.QUEUE_MODE_FLUSH) { |
| - queueMode = cvox.AbstractTts.QUEUE_MODE_QUEUE; |
| + if (!assertive && queueMode == cvox.QueueMode.FLUSH) { |
| + queueMode = cvox.QueueMode.QUEUE; |
| } |
| var descSpeaker = new cvox.NavigationSpeaker(); |
| descSpeaker.speakDescriptionArray(navDescriptions, queueMode, null); |