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

Unified Diff: core/events/EventTarget.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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
« no previous file with comments | « core/events/EventModifierInit.idl ('k') | core/events/FocusEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/events/EventTarget.idl
diff --git a/core/events/EventTarget.idl b/core/events/EventTarget.idl
index eacdc4e30d834ab800603bd300c7841d43e430d5..3a37d1936b3dc974e47dc8b287eeb4d89fd56235 100644
--- a/core/events/EventTarget.idl
+++ b/core/events/EventTarget.idl
@@ -18,18 +18,17 @@
* Boston, MA 02110-1301, USA.
*/
+// https://dom.spec.whatwg.org/#interface-eventtarget
+
[
CheckSecurity=Window,
- Custom=ToV8,
WillBeGarbageCollected,
+ Exposed=(Window,Worker)
] interface EventTarget {
// FIXME: first 2 args should be required, but throwing TypeError breaks
// legacy content. http://crbug.com/353484
- void addEventListener(optional DOMString? type,
- optional EventListener listener,
- optional boolean useCapture);
- void removeEventListener(optional DOMString? type,
- optional EventListener listener,
- optional boolean useCapture);
+ // FIXME: type should not be nullable.
+ [Custom=(CallPrologue,CallEpilogue)] void addEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional boolean capture = false);
+ [Custom=(CallPrologue,CallEpilogue)] void removeEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional boolean capture = false);
[RaisesException] boolean dispatchEvent(Event event);
};
« no previous file with comments | « core/events/EventModifierInit.idl ('k') | core/events/FocusEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698