OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 cr.define('offlineInternals', function() { | 5 cr.define('offlineInternals', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** @type {!Array<OfflinePage>} */ | 8 /** @type {!Array<OfflinePage>} */ |
9 var offlinePages = []; | 9 var offlinePages = []; |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 row.appendChild(cell); | 41 row.appendChild(cell); |
42 | 42 |
43 cell = document.createElement('td'); | 43 cell = document.createElement('td'); |
44 cell.textContent = pages[i].namespace; | 44 cell.textContent = pages[i].namespace; |
45 row.appendChild(cell); | 45 row.appendChild(cell); |
46 | 46 |
47 cell = document.createElement('td'); | 47 cell = document.createElement('td'); |
48 cell.textContent = Math.round(pages[i].size / 1024); | 48 cell.textContent = Math.round(pages[i].size / 1024); |
49 row.appendChild(cell); | 49 row.appendChild(cell); |
50 | 50 |
51 cell = document.createElement('td'); | |
52 cell.textContent = pages[i].expired; | |
michaelpg
2016/07/13 00:09:21
This will implicitly set textContent to 'true' or
romax
2016/07/13 20:01:08
I'll change it to Yes/No and I think it's enough.
| |
53 row.appendChild(cell); | |
54 | |
51 storedPagesTable.appendChild(row); | 55 storedPagesTable.appendChild(row); |
52 } | 56 } |
53 offlinePages = pages; | 57 offlinePages = pages; |
54 } | 58 } |
55 | 59 |
56 /** | 60 /** |
57 * Fill requests table. | 61 * Fill requests table. |
58 * @param {!Array<SavePageRequest>} requests An array object representing | 62 * @param {!Array<SavePageRequest>} requests An array object representing |
59 * the request queue. | 63 * the request queue. |
60 */ | 64 */ |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 refreshAll(); | 189 refreshAll(); |
186 } | 190 } |
187 | 191 |
188 // Return an object with all of the exports. | 192 // Return an object with all of the exports. |
189 return { | 193 return { |
190 initialize: initialize, | 194 initialize: initialize, |
191 }; | 195 }; |
192 }); | 196 }); |
193 | 197 |
194 document.addEventListener('DOMContentLoaded', offlineInternals.initialize); | 198 document.addEventListener('DOMContentLoaded', offlineInternals.initialize); |
OLD | NEW |