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

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

Issue 2967373002: Redraw log after filter text change in about:media-internals (Closed)
Patch Set: Redraw log after filter text change in about:media-internals Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 var ClientRenderer = (function() { 5 var ClientRenderer = (function() {
6 var ClientRenderer = function() { 6 var ClientRenderer = function() {
7 this.playerListElement = document.getElementById('player-list'); 7 this.playerListElement = document.getElementById('player-list');
8 this.audioPropertiesTable = 8 this.audioPropertiesTable =
9 document.getElementById('audio-property-table').querySelector('tbody'); 9 document.getElementById('audio-property-table').querySelector('tbody');
10 this.playerPropertiesTable = 10 this.playerPropertiesTable =
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 this.filterFunction = function(text) { 473 this.filterFunction = function(text) {
474 text = text.toLowerCase(); 474 text = text.toLowerCase();
475 return parts.length === 0 || parts.some(function(part) { 475 return parts.length === 0 || parts.some(function(part) {
476 return text.indexOf(part) != -1; 476 return text.indexOf(part) != -1;
477 }); 477 });
478 }; 478 };
479 479
480 if (this.selectedPlayer) { 480 if (this.selectedPlayer) {
481 removeChildren(this.logTable); 481 removeChildren(this.logTable);
482 this.selectedPlayerLogIndex = 0; 482 this.selectedPlayerLogIndex = 0;
483 this.drawLog_();
483 } 484 }
484 }, 485 },
485 }; 486 };
486 487
487 return ClientRenderer; 488 return ClientRenderer;
488 })(); 489 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698