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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 2860483002: Add messageerror event handler (Closed)
Patch Set: fix test Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/MessagePort.h
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.h b/third_party/WebKit/Source/core/dom/MessagePort.h
index a18f3548dbde029789d9f212fd4a12aabdba9ada..7f2d1bc8175e661985422a38a499d034af4f8575 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.h
+++ b/third_party/WebKit/Source/core/dom/MessagePort.h
@@ -114,6 +114,14 @@ class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
return GetAttributeEventListener(EventTypeNames::message);
}
+ void setOnmessageerror(EventListener* listener) {
+ SetAttributeEventListener(EventTypeNames::messageerror, listener);
+ start();
+ }
+ EventListener* onmessageerror() {
+ return GetAttributeEventListener(EventTypeNames::messageerror);
+ }
+
// A port starts out its life entangled, and remains entangled until it is
// closed or is cloned.
bool IsEntangled() const { return !closed_ && !IsNeutered(); }

Powered by Google App Engine
This is Rietveld 408576698