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

Side by Side Diff: content/browser/resources/media/stats_table.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 /** 6 /**
7 * Maintains the stats table. 7 * Maintains the stats table.
8 * @param {SsrcInfoManager} ssrcInfoManager The source of the ssrc info. 8 * @param {SsrcInfoManager} ssrcInfoManager The source of the ssrc info.
9 */ 9 */
10 var StatsTable = (function(ssrcInfoManager) { 10 var StatsTable = (function(ssrcInfoManager) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 } 104 }
105 return table; 105 return table;
106 }, 106 },
107 107
108 /** 108 /**
109 * Update |statsTable| with |time| and |statsData|. 109 * Update |statsTable| with |time| and |statsData|.
110 * 110 *
111 * @param {!Element} statsTable Which table to update. 111 * @param {!Element} statsTable Which table to update.
112 * @param {number} time The number of miliseconds since epoch. 112 * @param {number} time The number of miliseconds since epoch.
113 * @param {Array.<string>} statsData An array of stats name and value pairs. 113 * @param {Array<string>} statsData An array of stats name and value pairs.
114 * @private 114 * @private
115 */ 115 */
116 addStatsToTable_: function(statsTable, time, statsData) { 116 addStatsToTable_: function(statsTable, time, statsData) {
117 var date = new Date(time); 117 var date = new Date(time);
118 this.updateStatsTableRow_(statsTable, 'timestamp', date.toLocaleString()); 118 this.updateStatsTableRow_(statsTable, 'timestamp', date.toLocaleString());
119 for (var i = 0; i < statsData.length - 1; i = i + 2) { 119 for (var i = 0; i < statsData.length - 1; i = i + 2) {
120 this.updateStatsTableRow_(statsTable, statsData[i], statsData[i + 1]); 120 this.updateStatsTableRow_(statsTable, statsData[i], statsData[i + 1]);
121 } 121 }
122 }, 122 },
123 123
(...skipping 18 matching lines...) Expand all
142 trElement.cells[1].textContent = value; 142 trElement.cells[1].textContent = value;
143 143
144 // Highlights the table for the active connection. 144 // Highlights the table for the active connection.
145 if (rowName == 'googActiveConnection' && value == 'true') 145 if (rowName == 'googActiveConnection' && value == 'true')
146 statsTable.parentElement.classList.add('stats-table-active-connection'); 146 statsTable.parentElement.classList.add('stats-table-active-connection');
147 } 147 }
148 }; 148 };
149 149
150 return StatsTable; 150 return StatsTable;
151 })(); 151 })();
OLDNEW
« no previous file with comments | « content/browser/resources/media/ssrc_info_manager.js ('k') | content/browser/resources/media/webrtc_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698