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

Side by Side Diff: content/browser/resources/media/painters/propertyPainter.js

Issue 18889006: Removed old media-internals page and rewrote it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 var propertyPainter = (function () {
2 "use strict";
3
4 var propPainter = {};
5
6 propPainter.paintNew = function (playerInfo, div) {
7 removeChildren(div);
8 var table = makeTable("Key", "Value", "Timestamp");
9
10 goog.object.forEach(playerInfo.properties, function (element, index) {
11 var pastValues = playerInfo.pastValues[index];
12 var lastValue = pastValues[pastValues.length - 1];
13 var time = goog.time.millisToString(lastValue.time);
14
15 var row = genRow([index, element, time]);
16
17 appendRow(table, row);
18 });
19 div.appendChild(table);
20 };
21
22 propPainter.paintExist = propPainter.paintNew;
23
24
25 propPainter.invalidate = function () {
26 // Do nothing
27 };
28
29 return propPainter;
30 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698