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

Unified Diff: sky/engine/core/events/Event.idl

Issue 938003004: Make it possible to create reasonable subclasses of Event (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/events/Event.h ('k') | sky/tests/events/custom-event.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/events/Event.idl
diff --git a/sky/engine/core/events/Event.idl b/sky/engine/core/events/Event.idl
index 76f067b6376bd1fda40f04b126e7b81a6c8ef7e8..d6ab9e9186bd770eeab34f2f53f965c00b972250 100644
--- a/sky/engine/core/events/Event.idl
+++ b/sky/engine/core/events/Event.idl
@@ -18,9 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-// Introduced in DOM Level 2:
[
- EventConstructor,
+ Constructor(DOMString type, [Named] optional boolean bubbles, [Named] optional boolean cancelable),
] interface Event {
// DOM PhaseType
const unsigned short NONE = 0;
@@ -38,9 +37,6 @@
void stopPropagation();
void preventDefault();
- void initEvent([Default=Undefined] optional DOMString eventTypeArg,
- [Default=Undefined] optional boolean canBubbleArg,
- [Default=Undefined] optional boolean cancelableArg);
// DOM Level 3 Additions.
readonly attribute boolean defaultPrevented;
« no previous file with comments | « sky/engine/core/events/Event.h ('k') | sky/tests/events/custom-event.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698