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

Unified Diff: sky/specs/events.md

Issue 880963005: Specs: Yet Another Gesture Model (mark IV). This one handles (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/specs/dom.md ('k') | sky/specs/gestures.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/events.md
diff --git a/sky/specs/events.md b/sky/specs/events.md
index 8e49acced3bb974e0b2930fa13bebd0da7e60406..61a8f31ebb8d76e107593c0f6c8621a467bef957 100644
--- a/sky/specs/events.md
+++ b/sky/specs/events.md
@@ -11,6 +11,7 @@ Sky Event Model
attribute any data; // O(1)
readonly attribute EventTarget target; // O(1)
+ readonly attribute EventTarget currentTarget; // O(1)
attribute Boolean handled; // O(1)
attribute any result; // O(1)
@@ -38,7 +39,8 @@ Sky Event Model
any dispatchEvent(Event event, any defaultResult = null); // O(N) in total number of listeners for this type in the chain
// sets event.handled to false and event.result to defaultResult
// makes a record of the event target chain by calling getEventDispatchChain()
- // invokes all the handlers on the chain in turn
+ // sets event.target to this
+ // invokes all the handlers on the chain in turn, at each step setting currentTarget to the EventTarget for that step
// returns event.result
virtual Array<EventTarget> getEventDispatchChain(); // O(1) // returns []
void addEventListener(String type, EventListener listener); // O(1)
« no previous file with comments | « sky/specs/dom.md ('k') | sky/specs/gestures.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698