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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/about_nacl.js
diff --git a/chrome/browser/resources/about_nacl.js b/chrome/browser/resources/about_nacl.js
index 09519e16142f2fcf4a085d58ba171aa0ed3adf19..7bbc87c3f70e39853f90c1f89c9c0711ec2d30e4 100644
--- a/chrome/browser/resources/about_nacl.js
+++ b/chrome/browser/resources/about_nacl.js
@@ -5,38 +5,38 @@
var nacl = nacl || {};
(function() {
- /**
- * 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) {
- // Process the template.
- var input = new JsEvalContext(moduleListData);
- var output = $('naclInfoTemplate');
- 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) {
+ // Process the template.
+ var input = new JsEvalContext(moduleListData);
+ var output = $('naclInfoTemplate');
+ jstProcess(input, output);
+}
- /**
- * Asks the C++ NaClUIDOMHandler to get details about the NaCl and return
- * the data in returnNaClInfo() (below).
- */
- function requestNaClInfo() {
- chrome.send('requestNaClInfo');
- }
+/**
+ * Asks the C++ NaClUIDOMHandler to get details about the NaCl and return
+ * the data in returnNaClInfo() (below).
+ */
+function requestNaClInfo() {
+ chrome.send('requestNaClInfo');
+}
- /**
- * Called by the WebUI to re-populate the page with data representing the
- * current state of NaCl.
- * @param {Object} moduleListData Information about available modules
- */
- nacl.returnNaClInfo = function(moduleListData) {
- $('loading-message').hidden = 'hidden';
- $('body-container').hidden = '';
- renderTemplate(moduleListData);
- };
+/**
+ * Called by the WebUI to re-populate the page with data representing the
+ * current state of NaCl.
+ * @param {Object} moduleListData Information about available modules
+ */
+nacl.returnNaClInfo = function(moduleListData) {
+ $('loading-message').hidden = 'hidden';
+ $('body-container').hidden = '';
+ renderTemplate(moduleListData);
+};
- // Get data and have it displayed upon loading.
- document.addEventListener('DOMContentLoaded', requestNaClInfo);
+// Get data and have it displayed upon loading.
+document.addEventListener('DOMContentLoaded', requestNaClInfo);
})();

Powered by Google App Engine
This is Rietveld 408576698