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

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

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/bindings/scripts/templates/interface_dart.template ('k') | sky/engine/core/events/Event.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/events/Event.h
diff --git a/sky/engine/core/events/Event.h b/sky/engine/core/events/Event.h
index 727fbd193cb23583a4a2d7e4131972aa47e55976..5d3efb9f3b5d799638d3574930d24ae7e7582109 100644
--- a/sky/engine/core/events/Event.h
+++ b/sky/engine/core/events/Event.h
@@ -62,9 +62,9 @@ public:
// A factory for a simple event. The event doesn't bubble, and isn't
// cancelable.
// http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#fire-a-simple-event
- static PassRefPtr<Event> create(const AtomicString& type)
+ static PassRefPtr<Event> create(const AtomicString& type, bool bubbles = false, bool cancelable = false)
{
- return adoptRef(new Event(type, false, false));
+ return adoptRef(new Event(type, bubbles, cancelable));
}
static PassRefPtr<Event> createCancelable(const AtomicString& type)
{
« no previous file with comments | « sky/engine/bindings/scripts/templates/interface_dart.template ('k') | sky/engine/core/events/Event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698