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

Unified Diff: chrome/browser/resources/about_voicesearch.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: hackhackhack Created 3 years, 11 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/about_voicesearch.js
diff --git a/chrome/browser/resources/about_voicesearch.js b/chrome/browser/resources/about_voicesearch.js
index 7cf90a6a67b5dc8eb5847fe37249356b433e8c9a..bcf8cbd5f7ba6ae47db13b97626f7b80bbb8560d 100644
--- a/chrome/browser/resources/about_voicesearch.js
+++ b/chrome/browser/resources/about_voicesearch.js
@@ -2,36 +2,36 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
- /**
- * Takes the |moduleListData| input argument which represents data about
- * the currently available modules and populates the html jstemplate
- * with that data. It expects an object structure like the above.
- * @param {Object} moduleListData Information about available modules
- */
- function renderTemplate(moduleListData) {
- var input = new JsEvalContext(moduleListData);
- var output = $('voice-search-info-template');
- jstProcess(input, output);
- }
+/**
+ * Takes the |moduleListData| input argument which represents data about
+ * the currently available modules and populates the html jstemplate
+ * with that data. It expects an object structure like the above.
+ * @param {Object} moduleListData Information about available modules
+ */
+function renderTemplate(moduleListData) {
+ var input = new JsEvalContext(moduleListData);
+ var output = $('voice-search-info-template');
+ jstProcess(input, output);
+}
- /**
- * Asks the C++ VoiceSearchUIDOMHandler to get details about voice search and
- * return the data in returnVoiceSearchInfo() (below).
- */
- function requestVoiceSearchInfo() {
- chrome.send('requestVoiceSearchInfo');
- }
+/**
+ * Asks the C++ VoiceSearchUIDOMHandler to get details about voice search and
+ * return the data in returnVoiceSearchInfo() (below).
+ */
+function requestVoiceSearchInfo() {
+ chrome.send('requestVoiceSearchInfo');
+}
- /**
- * Called by the WebUI to re-populate the page with data representing the
- * current state of voice search.
- * @param {Object} moduleListData Information about available modules.
- */
- function returnVoiceSearchInfo(moduleListData) {
- $('loading-message').hidden = true;
- $('body-container').hidden = false;
- renderTemplate(moduleListData);
- }
+/**
+ * Called by the WebUI to re-populate the page with data representing the
+ * current state of voice search.
+ * @param {Object} moduleListData Information about available modules.
+ */
+function returnVoiceSearchInfo(moduleListData) {
+ $('loading-message').hidden = true;
+ $('body-container').hidden = false;
+ renderTemplate(moduleListData);
+}
- // Get data and have it displayed upon loading.
- document.addEventListener('DOMContentLoaded', requestVoiceSearchInfo);
+// Get data and have it displayed upon loading.
+document.addEventListener('DOMContentLoaded', requestVoiceSearchInfo);

Powered by Google App Engine
This is Rietveld 408576698