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

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

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
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])));
}

Powered by Google App Engine
This is Rietveld 408576698