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

Unified Diff: components/version_ui/resources/about_version_ios.js

Issue 1486403002: Mojo-ifying chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change slashes Created 4 years, 5 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
« no previous file with comments | « components/version_ui/resources/about_version.js ('k') | components/version_ui/version.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/version_ui/resources/about_version_ios.js
diff --git a/components/version_ui/resources/about_version_ios.js b/components/version_ui/resources/about_version_ios.js
new file mode 100644
index 0000000000000000000000000000000000000000..2409c9b10d8be5f176b67ed10d3f331c33786341
--- /dev/null
+++ b/components/version_ui/resources/about_version_ios.js
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * Callback from the backend with the list of variations to display.
+ * This call will build the variations section of the version page, or hide that
+ * section if there are none to display.
+ * @param {!Array<string>} variationsList The list of variations.
+ */
+function returnVariationInfo(variationsList) {
+ $('variations-section').hidden = !variationsList.length;
+ $('variations-list').appendChild(
+ parseHtmlSubset(variationsList.join('<br>'), ['BR']));
+}
+
+
+/* All the work we do onload. */
+function onLoadWork() {
+ chrome.send('requestVersionInfo');
+}
+
+document.addEventListener('DOMContentLoaded', onLoadWork);
« no previous file with comments | « components/version_ui/resources/about_version.js ('k') | components/version_ui/version.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698