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

Unified Diff: content/browser/resources/media/event_list.js

Issue 23769009: Removes the --enable-new-media-internals flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unused files from old-media-internals Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/resources/media/client_renderer.js ('k') | content/browser/resources/media/item_store.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/media/event_list.js
diff --git a/content/browser/resources/media/event_list.js b/content/browser/resources/media/event_list.js
deleted file mode 100644
index df4d4273063ce30bfa046dc1f612303072014516..0000000000000000000000000000000000000000
--- a/content/browser/resources/media/event_list.js
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('media', function() {
- 'use strict';
-
- /**
- * This class holds a list of MediaLogEvents.
- * It inherits from <li> and contains a tabular list of said events,
- * the time at which they occurred, and their parameters.
- */
- var EventList = cr.ui.define('li');
-
- EventList.prototype = {
- __proto__: HTMLLIElement.prototype,
- startTime_: null,
-
- /**
- * Decorate this list item as an EventList.
- */
- decorate: function() {
- this.table_ = document.createElement('table');
- var details = document.createElement('details');
- var summary = media.makeElement('summary', 'Log:');
- details.appendChild(summary);
- details.appendChild(this.table_);
- this.appendChild(details);
-
- var hRow = document.createElement('tr');
- hRow.appendChild(media.makeElement('th', 'Time:'));
- hRow.appendChild(media.makeElement('th', 'Event:'));
- hRow.appendChild(media.makeElement('th', 'Parameters:'));
- var header = document.createElement('thead');
- header.appendChild(hRow);
- this.table_.appendChild(header);
- },
-
- /**
- * Add an event to the list. It is stored as a new row in this.table_.
- * @param {Object} event The MediaLogEvent that has occurred.
- */
- addEvent: function(event) {
- this.startTime_ = this.startTime_ || event.ticksMillis;
- var normalizedTicksMillis = event.ticksMillis - this.startTime_;
-
- var row = document.createElement('tr');
- row.appendChild(media.makeElement(
- 'td', normalizedTicksMillis.toFixed(1)));
- row.appendChild(media.makeElement('td', event.type));
- var params = [];
- for (var key in event.params) {
- params.push(key + ': ' + event.params[key]);
- }
-
- row.appendChild(media.makeElement('td', params.join(', ')));
- this.table_.appendChild(row);
- }
- };
-
- return {
- EventList: EventList
- };
-});
« no previous file with comments | « content/browser/resources/media/client_renderer.js ('k') | content/browser/resources/media/item_store.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698