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

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

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.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.h b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.h
index 1c8e54b61bb4dcdf70cb0248979573133cf634a0..aa04afe9f48da08fffe2bf9fb10395cba861b31c 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.h
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.h
@@ -27,6 +27,7 @@
#include "modules/EventModules.h"
#include "modules/peerconnection/RTCDataChannel.h"
+#include "modules/peerconnection/RTCDataChannelEventInit.h"
#include "wtf/text/AtomicString.h"
namespace blink {
@@ -42,6 +43,9 @@ class RTCDataChannelEvent final : public Event {
bool cancelable,
RTCDataChannel*);
+ static RTCDataChannelEvent* create(const AtomicString& type,
+ const RTCDataChannelEventInit&);
+
RTCDataChannel* channel() const;
const AtomicString& interfaceName() const override;
@@ -54,6 +58,7 @@ class RTCDataChannelEvent final : public Event {
bool cancelable,
RTCDataChannel*);
+ RTCDataChannelEvent(const AtomicString& type, const RTCDataChannelEventInit&);
Member<RTCDataChannel> m_channel;
};

Powered by Google App Engine
This is Rietveld 408576698