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

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

Issue 743503002: Specs: Provide a debug-mode-only API to expose the Module objects imported by a Module, for use by … (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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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.
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