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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl

Issue 1641653002: Adding counters for the types of Media Constraints. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // argument. 114 // argument.
115 [CallWith=ExecutionContext, LegacyInterfaceTypeChecking] void getStats(RTCSt atsCallback successCallback, [Default=Undefined] optional MediaStreamTrack selec tor); 115 [CallWith=ExecutionContext, LegacyInterfaceTypeChecking] void getStats(RTCSt atsCallback successCallback, [Default=Undefined] optional MediaStreamTrack selec tor);
116 116
117 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api 117 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api
118 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString] 118 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString]
119 // and be non-nullable. 119 // and be non-nullable.
120 [RaisesException] RTCDataChannel createDataChannel([TreatUndefinedAs=NullStr ing] DOMString? label, optional Dictionary options); 120 [RaisesException] RTCDataChannel createDataChannel([TreatUndefinedAs=NullStr ing] DOMString? label, optional Dictionary options);
121 attribute EventHandler ondatachannel; 121 attribute EventHandler ondatachannel;
122 122
123 // Non-standard or removed from the spec: 123 // Non-standard or removed from the spec:
124 [RaisesException] void updateIce(optional Dictionary configuration, optional Dictionary mediaConstraints); 124 [CallWith=ExecutionContext, RaisesException] void updateIce(optional Diction ary configuration, optional Dictionary mediaConstraints);
125 sequence<MediaStream> getLocalStreams(); 125 sequence<MediaStream> getLocalStreams();
126 sequence<MediaStream> getRemoteStreams(); 126 sequence<MediaStream> getRemoteStreams();
127 MediaStream getStreamById(DOMString streamId); 127 MediaStream getStreamById(DOMString streamId);
128 [RaisesException] void addStream(MediaStream? stream, optional Dictionary me diaConstraints); 128 [CallWith=ExecutionContext, RaisesException] void addStream(MediaStream? str eam, optional Dictionary mediaConstraints);
129 [RaisesException] void removeStream(MediaStream? stream); 129 [RaisesException] void removeStream(MediaStream? stream);
130 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track); 130 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track);
131 attribute EventHandler onaddstream; 131 attribute EventHandler onaddstream;
132 attribute EventHandler onremovestream; 132 attribute EventHandler onremovestream;
133 133
134 // Certificate management 134 // Certificate management
135 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt 135 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt
136 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); 136 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm);
137 }; 137 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698