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

Unified Diff: sky/specs/apis.md

Issue 700603002: Specs: Add a URL field to the Module and Application objects. Note (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 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 b7ef4475f036ce4bce30d2fc5ed176e36ae15bd3..e5bbc59c07f9d126ac77ec3712b3977d2e0d287f 100644
--- a/sky/specs/apis.md
+++ b/sky/specs/apis.md
@@ -228,6 +228,8 @@ module 'sky:core' {
readonly attribute Document document; // O(1) // the Documentof the module or application
Promise<any> import(String url); // O(Yikes) // returns the module's exports
+ readonly attribute String url;
+
// createElement() lets you create elements that will be upgraded later when you register the element
Element createElement(String tagName, Dictionary attributes, ChildArguments... nodes); // O(M+N), M = number of attributes, N = number of nodes plus all their descendants
Element createElement(String tagName, Dictionary attributes); // shorthand
@@ -240,14 +242,14 @@ module 'sky:core' {
}
class Module : AbstractModule {
- constructor (Application application, Document document); // O(1)
+ constructor (Application application, Document document, String url); // O(1)
readonly attribute Application application; // O(1)
attribute any exports; // O(1) // defaults to the module's document
}
class Application : AbstractModule {
- constructor (Document document); // O(1)
+ constructor (Document document, String url); // O(1)
attribute String title; // O(1)
}
« 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