| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @typedef {{ | 6 * @typedef {{ |
| 7 * name: string, | 7 * name: string, |
| 8 * shortName: string, | 8 * shortName: string, |
| 9 * packageName: string, | 9 * packageName: string, |
| 10 * shellApkVersion: number, | 10 * shellApkVersion: number, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 webApkList.appendChild( | 75 webApkList.appendChild( |
| 76 createElementWithTextAndClass(webApkInfo.name, 'span', 'app-name')); | 76 createElementWithTextAndClass(webApkInfo.name, 'span', 'app-name')); |
| 77 | 77 |
| 78 webApkList.appendChild(createElementWithTextAndClass( | 78 webApkList.appendChild(createElementWithTextAndClass( |
| 79 'Short name: ', 'span', 'app-property-label')); | 79 'Short name: ', 'span', 'app-property-label')); |
| 80 webApkList.appendChild(document.createTextNode(webApkInfo.shortName)); | 80 webApkList.appendChild(document.createTextNode(webApkInfo.shortName)); |
| 81 | 81 |
| 82 addWebApkField(webApkList, 'Package name: ', webApkInfo.packageName); | 82 addWebApkField(webApkList, 'Package name: ', webApkInfo.packageName); |
| 83 addWebApkField( | 83 addWebApkField( |
| 84 webApkList, 'Shell APK version: ', "" + webApkInfo.shellApkVersion); | 84 webApkList, 'Shell APK version: ', '' + webApkInfo.shellApkVersion); |
| 85 addWebApkField(webApkList, 'Version code: ', "" + webApkInfo.versionCode); | 85 addWebApkField(webApkList, 'Version code: ', '' + webApkInfo.versionCode); |
| 86 addWebApkField(webApkList, 'URI: ', webApkInfo.uri); | 86 addWebApkField(webApkList, 'URI: ', webApkInfo.uri); |
| 87 addWebApkField(webApkList, 'Scope: ', webApkInfo.scope); | 87 addWebApkField(webApkList, 'Scope: ', webApkInfo.scope); |
| 88 addWebApkField(webApkList, 'Manifest URL: ', webApkInfo.manifestUrl); | 88 addWebApkField(webApkList, 'Manifest URL: ', webApkInfo.manifestUrl); |
| 89 addWebApkField( | 89 addWebApkField( |
| 90 webApkList, 'Manifest Start URL: ', webApkInfo.manifestStartUrl); | 90 webApkList, 'Manifest Start URL: ', webApkInfo.manifestStartUrl); |
| 91 addWebApkField(webApkList, 'Display Mode: ', webApkInfo.displayMode); | 91 addWebApkField(webApkList, 'Display Mode: ', webApkInfo.displayMode); |
| 92 addWebApkField(webApkList, 'Orientation: ', webApkInfo.orientation); | 92 addWebApkField(webApkList, 'Orientation: ', webApkInfo.orientation); |
| 93 addWebApkField(webApkList, 'Theme color: ', webApkInfo.themeColor); | 93 addWebApkField(webApkList, 'Theme color: ', webApkInfo.themeColor); |
| 94 addWebApkField(webApkList, 'Background color: ', webApkInfo.backgroundColor); | 94 addWebApkField(webApkList, 'Background color: ', webApkInfo.backgroundColor); |
| 95 } | 95 } |
| 96 | 96 |
| 97 document.addEventListener('DOMContentLoaded', function() { | 97 document.addEventListener('DOMContentLoaded', function() { |
| 98 chrome.send('requestWebApksInfo'); | 98 chrome.send('requestWebApksInfo'); |
| 99 }); | 99 }); |
| OLD | NEW |