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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp

Issue 2463953002: Expose RTCDataChannel and RTCDataChannelEvent (with constructor) (Closed)
Patch Set: Rebase update 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/RTCDataChannelEvent.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp
index 6fe8461d25b393a917729db40aa676c5ccd19608..d8f8e55254cf3cb217023aed7d7952cc2ae140b3 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp
@@ -33,12 +33,23 @@ RTCDataChannelEvent* RTCDataChannelEvent::create(const AtomicString& type,
return new RTCDataChannelEvent(type, canBubble, cancelable, channel);
}
+RTCDataChannelEvent* RTCDataChannelEvent::create(
+ const AtomicString& type,
+ const RTCDataChannelEventInit& initializer) {
+ return new RTCDataChannelEvent(type, initializer);
+}
+
RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type,
bool canBubble,
bool cancelable,
RTCDataChannel* channel)
: Event(type, canBubble, cancelable), m_channel(channel) {}
+RTCDataChannelEvent::RTCDataChannelEvent(
+ const AtomicString& type,
+ const RTCDataChannelEventInit& initializer)
+ : Event(type, initializer), m_channel(initializer.channel()) {}
+
RTCDataChannelEvent::~RTCDataChannelEvent() {}
RTCDataChannel* RTCDataChannelEvent::channel() const {

Powered by Google App Engine
This is Rietveld 408576698