| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 interface IframeElement : Element { } | 167 interface IframeElement : Element { } |
| 168 interface TElement : Element { } | 168 interface TElement : Element { } |
| 169 interface AElement : Element { } | 169 interface AElement : Element { } |
| 170 interface TitleElement : Element { } | 170 interface TitleElement : Element { } |
| 171 | 171 |
| 172 | 172 |
| 173 | 173 |
| 174 // MODULES | 174 // MODULES |
| 175 abstract interface AbstractModule : EventTarget { | 175 abstract interface AbstractModule : EventTarget { |
| 176 Promise<any> import(String url); // O(Yikes) // returns the module's exports | 176 Promise<any> import(String url); // O(Yikes) // returns the module's exports |
| 177 ScriptElement? currentScript; // O(1) // returns the <script> element curren
tly being executed if any, else null | 177 ScriptElement? currentScript; // O(1) // returns the <script> element curren
tly being executed if any, and if it's in this module; else null |
| 178 } | 178 } |
| 179 | 179 |
| 180 interface Module : AbstractModule { | 180 interface Module : AbstractModule { |
| 181 constructor (Application application, Document document); // O(1) | 181 constructor (Application application, Document document); // O(1) |
| 182 attribute any exports; // O(1) // defaults to the module's document | 182 attribute any exports; // O(1) // defaults to the module's document |
| 183 readonly attribute Document document; // O(1) // the module's document | 183 readonly attribute Document document; // O(1) // the module's document |
| 184 readonly attribute Application application; // O(1) | 184 readonly attribute Application application; // O(1) |
| 185 } | 185 } |
| 186 | 186 |
| 187 interface Application : AbstractModule { | 187 interface Application : AbstractModule { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 the core mojo fabric JS API sky:mojo:fabric:core | 349 the core mojo fabric JS API sky:mojo:fabric:core |
| 350 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc | 350 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc |
| 351 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell | 351 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell |
| 352 the sky API sky:core | 352 the sky API sky:core |
| 353 the sky debug symbols for private APIs sky:debug | 353 the sky debug symbols for private APIs sky:debug |
| 354 ``` | 354 ``` |
| 355 | 355 |
| 356 TODO(ianh): determine if we want to separate the "this" from the | 356 TODO(ianh): determine if we want to separate the "this" from the |
| 357 Document, especially for Modules, so that exposing a module's element | 357 Document, especially for Modules, so that exposing a module's element |
| 358 doesn't expose the module's exports attribute. | 358 doesn't expose the module's exports attribute. |
| OLD | NEW |