| OLD | NEW |
| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 constructor (Dictionary<String> attributes); // shorthand | 276 constructor (Dictionary<String> attributes); // shorthand |
| 277 constructor (); // shorthand | 277 constructor (); // shorthand |
| 278 | 278 |
| 279 constructor attribute String tagName; | 279 constructor attribute String tagName; |
| 280 constructor attribute Boolean shadow; | 280 constructor attribute Boolean shadow; |
| 281 } | 281 } |
| 282 | 282 |
| 283 abstract class AbstractModule : EventTarget { | 283 abstract class AbstractModule : EventTarget { |
| 284 readonly attribute Document document; // O(1) // the Documentof the module o
r application | 284 readonly attribute Document document; // O(1) // the Documentof the module o
r application |
| 285 Promise<any> import(String url); // O(Yikes) // returns the module's exports | 285 Promise<any> import(String url); // O(Yikes) // returns the module's exports |
| 286 private Array<Module> getImports(); O(N) // returns the Module objects of al
l the imported modules |
| 286 | 287 |
| 287 readonly attribute String url; | 288 readonly attribute String url; |
| 288 | 289 |
| 289 ElementConstructor registerElement(ElementRegistration options); // O(1) | 290 ElementConstructor registerElement(ElementRegistration options); // O(1) |
| 290 // if you call registerElement() with an object that was created by | 291 // if you call registerElement() with an object that was created by |
| 291 // registerElement(), it just returns the object after registering it, | 292 // registerElement(), it just returns the object after registering it, |
| 292 // rather than creating a new constructor | 293 // rather than creating a new constructor |
| 293 // otherwise, it proceeds as follows: | 294 // otherwise, it proceeds as follows: |
| 294 // 1. let constructor be the constructor passed in, if any | 295 // 1. let constructor be the constructor passed in, if any |
| 295 // 2. let prototype be the constructor's prototype; if there is no | 296 // 2. let prototype be the constructor's prototype; if there is no |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 the core mojo fabric JS API sky:mojo:fabric:core | 495 the core mojo fabric JS API sky:mojo:fabric:core |
| 495 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc | 496 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc |
| 496 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell | 497 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell |
| 497 the sky API sky:core | 498 the sky API sky:core |
| 498 the sky debug symbols for private APIs sky:debug | 499 the sky debug symbols for private APIs sky:debug |
| 499 ``` | 500 ``` |
| 500 | 501 |
| 501 TODO(ianh): determine if we want to separate the "this" from the | 502 TODO(ianh): determine if we want to separate the "this" from the |
| 502 Document, especially for Modules, so that exposing a module's element | 503 Document, especially for Modules, so that exposing a module's element |
| 503 doesn't expose the module's exports attribute. | 504 doesn't expose the module's exports attribute. |
| OLD | NEW |