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

Side by Side Diff: sky/specs/apis.md

Issue 678053002: Specs: Somehow I forgot to make CustomEventTarget inherit from EventTarget. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 APIS 1 APIS
2 ==== 2 ====
3 3
4 The Sky core API 4 The Sky core API
5 ---------------- 5 ----------------
6 6
7 ```javascript 7 ```javascript
8 module 'sky:core' { 8 module 'sky:core' {
9 9
10 // EVENTS 10 // EVENTS
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 callback EventListener any (Event event); // return value is assigned to Event .result 26 callback EventListener any (Event event); // return value is assigned to Event .result
27 27
28 interface EventTarget { 28 interface EventTarget {
29 any dispatchEvent(Event event); // O(N) in total number of listeners for thi s type in the chain // returns Event.result 29 any dispatchEvent(Event event); // O(N) in total number of listeners for thi s type in the chain // returns Event.result
30 void addEventListener(String type, EventListener listener); // O(1) 30 void addEventListener(String type, EventListener listener); // O(1)
31 void removeEventListener(String type, EventListener listener); // O(N) in ev ent listeners with that type 31 void removeEventListener(String type, EventListener listener); // O(N) in ev ent listeners with that type
32 } 32 }
33 33
34 interface CustomEventTarget { 34 interface CustomEventTarget : EventTarget {
35 constructor (); // O(1) 35 constructor (); // O(1)
36 attribute EventTarget parentNode; // getter O(1), setter O(N) in height of t ree, throws if this would make a loop 36 attribute EventTarget parentNode; // getter O(1), setter O(N) in height of t ree, throws if this would make a loop
37 37
38 // you can inherit from this to make your object into an event target 38 // you can inherit from this to make your object into an event target
39 } 39 }
40 40
41 41
42 42
43 // DOM 43 // DOM
44 44
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 magical imports: 307 magical imports:
308 the core mojo fabric JS API sky:mojo:fabric:core 308 the core mojo fabric JS API sky:mojo:fabric:core
309 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj o:fabric:ipc 309 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj o:fabric:ipc
310 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp osed sky:mojo:shell 310 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp osed sky:mojo:shell
311 the sky API sky:core 311 the sky API sky:core
312 ``` 312 ```
313 313
314 TODO(ianh): determine if we want to separate the "this" from the 314 TODO(ianh): determine if we want to separate the "this" from the
315 Document, especially for Modules, so that exposing a module's element 315 Document, especially for Modules, so that exposing a module's element
316 doesn't expose the module's exports attribute. 316 doesn't expose the module's exports attribute.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698