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

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

Issue 643343004: Video Capture Capabilities available on chrome://media-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fix in unit test Created 6 years, 2 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 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 /** 5 /**
6 * @fileoverview Keeps track of all the existing PlayerInfo and 6 * @fileoverview Keeps track of all the existing PlayerInfo and
7 * audio stream objects and is the entry-point for messages from the backend. 7 * audio stream objects and is the entry-point for messages from the backend.
8 * 8 *
9 * The events captured by Manager (add, remove, update) are relayed 9 * The events captured by Manager (add, remove, update) are relayed
10 * to the clientRenderer which it can choose to use to modify the UI. 10 * to the clientRenderer which it can choose to use to modify the UI.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 if (!this.players_[id]) { 102 if (!this.players_[id]) {
103 console.error('[updatePlayerInfo] Id ' + id + ' does not exist'); 103 console.error('[updatePlayerInfo] Id ' + id + ' does not exist');
104 return; 104 return;
105 } 105 }
106 106
107 this.players_[id].addProperty(timestamp, key, value); 107 this.players_[id].addProperty(timestamp, key, value);
108 this.clientRenderer_.playerUpdated(this.players_, 108 this.clientRenderer_.playerUpdated(this.players_,
109 this.players_[id], 109 this.players_[id],
110 key, 110 key,
111 value); 111 value);
112 },
113
114 updateVideoCaptureCapabilities: function(videoCaptureCapabilities) {
115 // The keys of each device to be shown in order of appearance.
116 var videoCaptureDeviceKeys = ['id','name','formats','captureApi'];
117 this.clientRenderer_.redrawVideoCaptureCapabilities(
118 videoCaptureCapabilities, videoCaptureDeviceKeys);
112 } 119 }
113 }; 120 };
114 121
115 return Manager; 122 return Manager;
116 }()); 123 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698