| 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 } | 178 } |
| 178 | 179 |
| 179 interface Module : AbstractModule { | 180 interface Module : AbstractModule { |
| 180 constructor (Application application, Document document); // O(1) | 181 constructor (Application application, Document document); // O(1) |
| 181 attribute any exports; // O(1) // defaults to the module's document | 182 attribute any exports; // O(1) // defaults to the module's document |
| 182 readonly attribute Document document; // O(1) // the module's document | 183 readonly attribute Document document; // O(1) // the module's document |
| 183 readonly attribute Application application; // O(1) | 184 readonly attribute Application application; // O(1) |
| 184 } | 185 } |
| 185 | 186 |
| 186 interface Application : AbstractModule { | 187 interface Application : AbstractModule { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 magical imports: | 311 magical imports: |
| 311 the core mojo fabric JS API sky:mojo:fabric:core | 312 the core mojo fabric JS API sky:mojo:fabric:core |
| 312 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc | 313 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj
o:fabric:ipc |
| 313 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell | 314 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp
osed sky:mojo:shell |
| 314 the sky API sky:core | 315 the sky API sky:core |
| 315 ``` | 316 ``` |
| 316 | 317 |
| 317 TODO(ianh): determine if we want to separate the "this" from the | 318 TODO(ianh): determine if we want to separate the "this" from the |
| 318 Document, especially for Modules, so that exposing a module's element | 319 Document, especially for Modules, so that exposing a module's element |
| 319 doesn't expose the module's exports attribute. | 320 doesn't expose the module's exports attribute. |
| OLD | NEW |