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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionIceEvent.h

Issue 2494553002: Rename RTCIceCandidateEvent to RTCPeerConnectionIceEvent and expose. (Closed)
Patch Set: Update rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionIceEvent.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCIceCandidateEvent.h b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionIceEvent.h
similarity index 69%
rename from third_party/WebKit/Source/modules/peerconnection/RTCIceCandidateEvent.h
rename to third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionIceEvent.h
index 549043b79958abd42d4f195a78ad74f54434577e..45fab55cdfae1ce1b34184d06a4f395e6280b1b2 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCIceCandidateEvent.h
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionIceEvent.h
@@ -22,24 +22,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RTCIceCandidateEvent_h
-#define RTCIceCandidateEvent_h
+#ifndef RTCPeerConnectionIceEvent_h
+#define RTCPeerConnectionIceEvent_h
#include "modules/EventModules.h"
#include "wtf/text/AtomicString.h"
namespace blink {
class RTCIceCandidate;
+class RTCPeerConnectionIceEventInit;
-class RTCIceCandidateEvent final : public Event {
+class RTCPeerConnectionIceEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
- ~RTCIceCandidateEvent() override;
+ ~RTCPeerConnectionIceEvent() override;
- static RTCIceCandidateEvent* create(bool canBubble,
- bool cancelable,
- RTCIceCandidate*);
+ static RTCPeerConnectionIceEvent* create(bool canBubble,
+ bool cancelable,
+ RTCIceCandidate*);
+
+ static RTCPeerConnectionIceEvent* create(
+ const AtomicString& type,
+ const RTCPeerConnectionIceEventInit&);
RTCIceCandidate* candidate() const;
@@ -48,11 +53,14 @@ class RTCIceCandidateEvent final : public Event {
DECLARE_VIRTUAL_TRACE();
private:
- RTCIceCandidateEvent(bool canBubble, bool cancelable, RTCIceCandidate*);
+ RTCPeerConnectionIceEvent(bool canBubble, bool cancelable, RTCIceCandidate*);
+
+ RTCPeerConnectionIceEvent(const AtomicString& type,
+ const RTCPeerConnectionIceEventInit&);
Member<RTCIceCandidate> m_candidate;
};
} // namespace blink
-#endif // RTCIceCandidateEvent_h
+#endif // RTCPeerConnectionIceEvent_h

Powered by Google App Engine
This is Rietveld 408576698