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

Unified Diff: core/events/Event.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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/DragEventInit.idl ('k') | core/events/EventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « core/events/DragEventInit.idl ('k') | core/events/EventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698