1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * Callback from the backend with the list of variations to display.
7 * This call will build the variations section of the version page, or hide that
8 * section if there are none to display.
9 * @param {!Array.<string>} variationsList The list of variations.
11 function returnVariationInfo(variationsList) {
12 $('variations-section').hidden = !variationsList.length;
13 $('variations-list').appendChild(
14 parseHtmlSubset(variationsList.join('<br>'), ['BR']));
18 * Callback from the backend with the executable and profile paths to display.
19 * @param {string} execPath The executable path to display.
20 * @param {string} profilePath The profile path to display.
22 function returnFilePaths(execPath, profilePath) {
23 $('executable_path').textContent = execPath;
24 $('profile_path').textContent = profilePath;
28 * Callback from the backend with the Flash version to display.
29 * @param {string} flashVersion The Flash version to display.
31 function returnFlashVersion(flashVersion) {
32 $('flash_version').textContent = flashVersion;
36 * Callback from the backend with the OS version to display.
37 * @param {string} osVersion The OS version to display.
39 function returnOsVersion(osVersion) {
40 $('os_version').textContent = osVersion;
43 /* All the work we do onload. */
44 function onLoadWork() {
45 chrome.send('requestVersionInfo');
48 document.addEventListener('DOMContentLoaded', onLoadWork);