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

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

Issue 1586563005: Add Event.scoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 1db19f6f5c94f071ff64efa1670944e9804eb507..f265f5cb75a430488b4ad9aa52987f62e0fcebd1 100644
--- a/third_party/WebKit/Source/core/events/Event.idl
+++ b/third_party/WebKit/Source/core/events/Event.idl
@@ -43,13 +43,17 @@
void preventDefault();
readonly attribute boolean defaultPrevented;
+ // TODO(yuzus): Add scoped in stats file, implement scoped in C++ files,
+ // and add a [] statement here.
+ readonly attribute boolean scoped;
hayato 2016/01/15 03:59:52 You have to guard this by [RuntimeEnabled=ShadowDO
yuzuchan 2016/01/15 05:32:27 Done.
+
[RuntimeEnabled=TrustedEvents, Unforgeable] readonly attribute boolean isTrusted;
// TODO(majidvp): At the moment the actual return value type can either
- // be:
+ // be:
hayato 2016/01/15 03:59:52 Unintentional change?
yuzuchan 2016/01/15 05:32:27 Done.
// - DOMTimeStamp (i.e. long long): legacy type
- // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is
- // enabled
+ // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is
hayato 2016/01/15 03:59:52 Ditto.
yuzuchan 2016/01/15 05:32:27 Done.
+ // 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
@@ -59,7 +63,7 @@
// FIXME: initEvent()'s arguments should not be optional.
[Measure] void initEvent([Default=Undefined] optional DOMString type,
[Default=Undefined] optional boolean bubbles,
- [Default=Undefined] optional boolean cancelable);
+ [Default=Undefined] optional boolean cancelable) ;
hayato 2016/01/15 03:59:52 Ditto.
yuzuchan 2016/01/15 05:32:27 Done.
// Shadow DOM
// https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-interface

Powered by Google App Engine
This is Rietveld 408576698