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

Unified Diff: third_party/WebKit/Source/core/events/Event.idl

Issue 2380383003: Use sequence<T> instead of T[] where possible and document exceptions (Closed)
Patch Set: more Created 4 years, 2 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/events/Event.idl
diff --git a/third_party/WebKit/Source/core/events/Event.idl b/third_party/WebKit/Source/core/events/Event.idl
index b8f176f59d47bc518c70fd2fbf5631bec22fa549..19c632680673b620d830ecb460a454fb9e49508d 100644
--- a/third_party/WebKit/Source/core/events/Event.idl
+++ b/third_party/WebKit/Source/core/events/Event.idl
@@ -27,6 +27,7 @@
readonly attribute DOMString type;
readonly attribute EventTarget? target;
readonly attribute EventTarget? currentTarget;
+ [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventComposedPath, CallWith=ScriptState] sequence<EventTarget> composedPath();
const unsigned short NONE = 0;
const unsigned short CAPTURING_PHASE = 1;
@@ -53,11 +54,6 @@
[Default=Undefined] optional boolean bubbles,
[Default=Undefined] optional boolean cancelable);
- // Shadow DOM
- // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-interface
- [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path;
- [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventComposedPath, CallWith=ScriptState] sequence<EventTarget> composedPath();
-
// Non-standard APIs
const unsigned short MOUSEDOWN = 1;
const unsigned short MOUSEUP = 2;
@@ -78,4 +74,5 @@
[MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement;
[MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacyReturnValue] attribute boolean returnValue;
[MeasureAs=EventCancelBubble, CallWith=ExecutionContext] attribute boolean cancelBubble;
+ [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path;
};

Powered by Google App Engine
This is Rietveld 408576698