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

Side by Side Diff: chrome/browser/resources/hangout_services/thunk.js

Issue 2784563003: WebRTC Audio private API: removing WebRtcAudioPrivate(Set/Get)ActiveSinkFunction (Closed)
Patch Set: updated api version Created 3 years, 8 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 chrome.runtime.onMessageExternal.addListener( 5 chrome.runtime.onMessageExternal.addListener(
6 function(message, sender, sendResponse) { 6 function(message, sender, sendResponse) {
7 function doSendResponse(value, errorString) { 7 function doSendResponse(value, errorString) {
8 var error = null; 8 var error = null;
9 if (errorString) { 9 if (errorString) {
10 error = {}; 10 error = {};
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 chrome.webrtcLoggingPrivate.store( 137 chrome.webrtcLoggingPrivate.store(
138 requestInfo, origin, logId, doSendResponse); 138 requestInfo, origin, logId, doSendResponse);
139 return true; 139 return true;
140 } else if (method == 'logging.discard') { 140 } else if (method == 'logging.discard') {
141 chrome.webrtcLoggingPrivate.discard( 141 chrome.webrtcLoggingPrivate.discard(
142 requestInfo, origin, doSendResponse); 142 requestInfo, origin, doSendResponse);
143 return true; 143 return true;
144 } else if (method == 'getSinks') { 144 } else if (method == 'getSinks') {
145 chrome.webrtcAudioPrivate.getSinks(doSendResponse); 145 chrome.webrtcAudioPrivate.getSinks(doSendResponse);
146 return true; 146 return true;
147 } else if (method == 'getActiveSink') {
148 chrome.webrtcAudioPrivate.getActiveSink(
149 requestInfo, doSendResponse);
150 return true;
151 } else if (method == 'setActiveSink') {
152 var sinkId = message['sinkId'];
153 chrome.webrtcAudioPrivate.setActiveSink(
154 requestInfo, sinkId, doSendResponse);
155 return true;
156 } else if (method == 'getAssociatedSink') { 147 } else if (method == 'getAssociatedSink') {
157 var sourceId = message['sourceId']; 148 var sourceId = message['sourceId'];
158 chrome.webrtcAudioPrivate.getAssociatedSink( 149 chrome.webrtcAudioPrivate.getAssociatedSink(
159 origin, sourceId, doSendResponse); 150 origin, sourceId, doSendResponse);
160 return true; 151 return true;
161 } else if (method == 'isExtensionEnabled') { 152 } else if (method == 'isExtensionEnabled') {
162 // This method is necessary because there may be more than one 153 // This method is necessary because there may be more than one
163 // version of this extension, under different extension IDs. By 154 // version of this extension, under different extension IDs. By
164 // first calling this method on the extension ID, the client can 155 // first calling this method on the extension ID, the client can
165 // check if it's loaded; if it's not, the extension system will 156 // check if it's loaded; if it's not, the extension system will
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 onSinksChangedPort(port); 317 onSinksChangedPort(port);
327 } else if (port.name == 'chooseDesktopMedia') { 318 } else if (port.name == 'chooseDesktopMedia') {
328 onChooseDesktopMediaPort(port); 319 onChooseDesktopMediaPort(port);
329 } else if (port.name == 'processCpu') { 320 } else if (port.name == 'processCpu') {
330 onProcessCpu(port); 321 onProcessCpu(port);
331 } else { 322 } else {
332 // Unknown port type. 323 // Unknown port type.
333 port.disconnect(); 324 port.disconnect();
334 } 325 }
335 }); 326 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/hangout_services/manifest.json ('k') | chrome/common/extensions/api/webrtc_audio_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698