Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js |
index e957f4c92b9349d27e4a37c5c62f710f6ea493f6..c46fce60b59fa7befd53a1d3a9f9cda0c6355201 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js |
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/tabs_api_handler.js |
@@ -66,9 +66,9 @@ cvox.TabsApiHandler.prototype = { |
return; |
} |
if (cvox.TabsApiHandler.shouldOutputSpeechAndBraille) { |
- cvox.ChromeVox.tts.speak(this.msg_('chrome_tab_created'), |
- cvox.QueueMode.FLUSH, |
- cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
+ cvox.ChromeVox.tts.speak( |
+ this.msg_('chrome_tab_created'), cvox.QueueMode.FLUSH, |
+ cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
cvox.ChromeVox.braille.write( |
cvox.NavBraille.fromText(this.msg_('chrome_tab_created'))); |
} |
@@ -108,13 +108,11 @@ cvox.TabsApiHandler.prototype = { |
chrome.tabs.get(activeInfo.tabId, function(tab) { |
if (cvox.TabsApiHandler.shouldOutputSpeechAndBraille) { |
var title = tab.title ? tab.title : tab.url; |
- cvox.ChromeVox.tts.speak(this.msg_('chrome_tab_selected', |
- [title]), |
- cvox.QueueMode.FLUSH, |
- cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
- cvox.ChromeVox.braille.write( |
- cvox.NavBraille.fromText( |
- this.msg_('chrome_tab_selected', [title]))); |
+ cvox.ChromeVox.tts.speak( |
+ this.msg_('chrome_tab_selected', [title]), cvox.QueueMode.FLUSH, |
+ cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
+ cvox.ChromeVox.braille.write(cvox.NavBraille.fromText( |
+ this.msg_('chrome_tab_selected', [title]))); |
} |
cvox.ChromeVox.earcons.playEarcon(cvox.Earcon.OBJECT_SELECT); |
this.refreshAutomationHandler_(tab.id); |
@@ -186,11 +184,11 @@ cvox.TabsApiHandler.prototype = { |
var tab = tabs[0] || {}; |
if (cvox.TabsApiHandler.shouldOutputSpeechAndBraille) { |
var msgId = window.incognito ? 'chrome_incognito_window_selected' : |
- 'chrome_normal_window_selected'; |
+ 'chrome_normal_window_selected'; |
var title = tab.title ? tab.title : tab.url; |
- cvox.ChromeVox.tts.speak(this.msg_(msgId, [title]), |
- cvox.QueueMode.FLUSH, |
- cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
+ cvox.ChromeVox.tts.speak( |
+ this.msg_(msgId, [title]), cvox.QueueMode.FLUSH, |
+ cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT); |
cvox.ChromeVox.braille.write( |
cvox.NavBraille.fromText(this.msg_(msgId, [title]))); |
} |