Index: core/events/Event.idl |
diff --git a/core/events/Event.idl b/core/events/Event.idl |
index 0a40ba6635cb58d72e994a51b97c9802e4ba2847..e2f5a1c3ba56208b98841f21c9624a1721e66e39 100644 |
--- a/core/events/Event.idl |
+++ b/core/events/Event.idl |
@@ -43,9 +43,20 @@ |
void preventDefault(); |
readonly attribute boolean defaultPrevented; |
- // FIXME: Implement the isTrusted attribute. crbug.com/334015 |
- // [Unforgeable] readonly attribute boolean isTrusted; |
- readonly attribute DOMTimeStamp timeStamp; |
+ [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventScoped] readonly attribute boolean scoped; |
+ |
+ [RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTrusted; |
+ |
+ // TODO(majidvp): At the moment the actual return value type can either |
+ // be: |
+ // - DOMTimeStamp (i.e. long long): legacy type |
+ // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is |
+ // enabled |
+ // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp |
+ // values can be represented in double type without any loss of precision. |
+ // Once the feature is enabled by default the return value type will always |
+ // match the definition here. |
+ [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; |
// FIXME: initEvent()'s arguments should not be optional. |
[Measure] void initEvent([Default=Undefined] optional DOMString type, |
@@ -55,6 +66,7 @@ |
// Shadow DOM |
// https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-interface |
[MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path; |
+ [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventDeepPath, CallWith=ScriptState] sequence<EventTarget> deepPath(); |
// Non-standard APIs |
const unsigned short MOUSEDOWN = 1; |