Skip to content

Commit 1874658

Browse files
Closure Teamcopybara-github
authored andcommitted
Add missing RTCCertificate related types and members.
PiperOrigin-RevId: 504377431
1 parent 6bb9dd8 commit 1874658

File tree

1 file changed

+62
-4
lines changed

1 file changed

+62
-4
lines changed

externs/browser/w3c_rtc.js

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,64 @@ MediaStreamConstraints.prototype.video;
12791279
*/
12801280
MediaStreamConstraints.prototype.preferCurrentTab;
12811281

1282+
/**
1283+
* @constructor
1284+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller
1285+
*/
1286+
function CaptureController() {}
1287+
1288+
/**
1289+
* @param {string} focusBehavior
1290+
* @return {undefined}
1291+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-capturestartfocusbehavior
1292+
*/
1293+
CaptureController.prototype.setFocusBehavior = function(focusBehavior) {};
1294+
1295+
/**
1296+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions
1297+
* @record
1298+
*/
1299+
function DisplayMediaStreamOptions() {}
1300+
1301+
/**
1302+
* @type {boolean|MediaTrackConstraints|undefined}
1303+
*/
1304+
DisplayMediaStreamOptions.prototype.audio;
1305+
1306+
/**
1307+
* @type {boolean|MediaTrackConstraints|undefined}
1308+
*/
1309+
DisplayMediaStreamOptions.prototype.video;
1310+
1311+
/**
1312+
* @type {!CaptureController|undefined}
1313+
*/
1314+
DisplayMediaStreamOptions.prototype.controller;
1315+
1316+
/**
1317+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-selfcapturepreferenceenum
1318+
* @type {string|undefined}
1319+
*/
1320+
DisplayMediaStreamOptions.prototype.selfBrowserSurface;
1321+
1322+
/**
1323+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-systemaudiopreferenceenum
1324+
* @type {string|undefined}
1325+
*/
1326+
DisplayMediaStreamOptions.prototype.surfaceSwitching;
1327+
1328+
/**
1329+
* @see https://w3c.github.io/mediacapture-screen-share/#dom-surfaceswitchingpreferenceenum
1330+
* @type {string|undefined}
1331+
*/
1332+
DisplayMediaStreamOptions.prototype.systemAudio;
1333+
1334+
/**
1335+
* @see https://wicg.github.io/prefer-current-tab/
1336+
* @type {boolean|undefined}
1337+
*/
1338+
DisplayMediaStreamOptions.prototype.preferCurrentTab;
1339+
12821340
/**
12831341
* @see {http://dev.w3.org/2011/webrtc/editor/getusermedia.html#
12841342
* navigatorusermediaerror-and-navigatorusermediaerrorcallback}
@@ -1669,20 +1727,20 @@ MediaDevices.prototype.enumerateDevices = function() {};
16691727
* @param {!MediaStreamConstraints} constraints
16701728
* @return {!Promise<!MediaStream>}
16711729
*/
1672-
MediaDevices.prototype.getUserMedia = function(constraints) {}
1730+
MediaDevices.prototype.getUserMedia = function(constraints) {};
16731731

16741732
/**
16751733
* @see https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia
1676-
* @param {!MediaStreamConstraints=} constraints
1734+
* @param {!DisplayMediaStreamOptions=} options
16771735
* @return {!Promise<!MediaStream>}
16781736
*/
1679-
MediaDevices.prototype.getDisplayMedia = function(constraints) {}
1737+
MediaDevices.prototype.getDisplayMedia = function(options) {};
16801738

16811739
/**
16821740
* @see https://w3c.github.io/mediacapture-main/#dom-mediadevices-getsupportedconstraints
16831741
* @return {!MediaTrackSupportedConstraints}
16841742
*/
1685-
MediaDevices.prototype.getSupportedConstraints = function() {}
1743+
MediaDevices.prototype.getSupportedConstraints = function() {};
16861744

16871745
/** @const {!MediaDevices} */
16881746
Navigator.prototype.mediaDevices;

0 commit comments

Comments
 (0)