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

Unified Diff: sky/specs/apis.md

Issue 690793002: Specs: Make it possible to import a module from a module or application by calling module.import(ur… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/apis.md
diff --git a/sky/specs/apis.md b/sky/specs/apis.md
index afb0bede84291d27af34a821b3b63cc312b9ac2b..7db8e4c9660e2c197d829ee2e0742392a9dd49d9 100644
--- a/sky/specs/apis.md
+++ b/sky/specs/apis.md
@@ -172,15 +172,18 @@ module 'sky:core' {
// MODULES
+ abstract interface AbstractModule : EventTarget {
+ Promise<any> import(String url); // O(Yikes) // returns the module's exports
+ }
- interface Module : EventTarget {
+ interface Module : AbstractModule {
constructor (Application application, Document document); // O(1)
attribute any exports; // O(1) // defaults to the module's document
readonly attribute Document document; // O(1) // the module's document
readonly attribute Application application; // O(1)
}
- interface Application : EventTarget {
+ interface Application : AbstractModule {
constructor (Document document); // O(1)
attribute String title; // O(1)
readonly attribute Document document; // O(1) // the application's document
« 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