| 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 ``` | 7 ``` |
| 8 module 'sky:core' { | 8 module 'sky:core' { |
| 9 | 9 |
| 10 // EVENTS | 10 // EVENTS |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 interface ImgElement : Element { } | 166 interface ImgElement : Element { } |
| 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 | 175 |
| 176 interface Module { | 176 interface Module : EventTarget { |
| 177 constructor (Application application, Document document); // O(1) | 177 constructor (Application application, Document document); // O(1) |
| 178 attribute any exports; // O(1) // defaults to the module's document | 178 attribute any exports; // O(1) // defaults to the module's document |
| 179 readonly attribute Document document; // O(1) // the module's document | 179 readonly attribute Document document; // O(1) // the module's document |
| 180 readonly attribute Application application; // O(1) | 180 readonly attribute Application application; // O(1) |
| 181 } | 181 } |
| 182 | 182 |
| 183 interface Application { | 183 interface Application : EventTarget { |
| 184 constructor (Document document); // O(1) | 184 constructor (Document document); // O(1) |
| 185 attribute String title; // O(1) | 185 attribute String title; // O(1) |
| 186 readonly attribute Document document; // O(1) // the application's document | 186 readonly attribute Document document; // O(1) // the application's document |
| 187 } | 187 } |
| 188 | 188 |
| 189 // see script.md for a description of the global object, though note that | 189 // see script.md for a description of the global object, though note that |
| 190 // the sky core module doesn't use it or affect it in any way. | 190 // the sky core module doesn't use it or affect it in any way. |
| 191 | 191 |
| 192 } | 192 } |
| 193 ``` | 193 ``` |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| OLD | NEW |