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

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

Issue 805083008: Specs: More cleanup around the proposed style model to make things more consistent. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 | sky/specs/style.md » ('j') | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Returns a new Array and new Attr instances every time. 119 // Returns a new Array and new Attr instances every time.
120 Array<Attr> getAttributes(); // O(N) in number of attributes 120 Array<Attr> getAttributes(); // O(N) in number of attributes
121 121
122 readonly attribute ShadowRoot? shadowRoot; // O(1) // returns the shadow roo t 122 readonly attribute ShadowRoot? shadowRoot; // O(1) // returns the shadow roo t
123 Array<ContentElement> getDestinationInsertionPoints(); // O(N) in number of insertion points the node is in 123 Array<ContentElement> getDestinationInsertionPoints(); // O(N) in number of insertion points the node is in
124 124
125 virtual void endTagParsedCallback(); // noop 125 virtual void endTagParsedCallback(); // noop
126 virtual void attributeChangeCallback(String name, String? oldValue, String? newValue); // noop 126 virtual void attributeChangeCallback(String name, String? oldValue, String? newValue); // noop
127 // TODO(ianh): does a node ever need to know when it's been redistributed? 127 // TODO(ianh): does a node ever need to know when it's been redistributed?
128 128
129 readonly attribute StyleDeclarationList style; // O(1) 129 readonly attribute ElementStyleDeclarationList style; // O(1)
130 virtual LayoutManagerConstructor getLayoutManager(RenderNode renderNode); // O(1) 130 virtual LayoutManagerConstructor getLayoutManager(RenderNode renderNode); // O(1)
131 // default implementation looks up the 'display' property and returns the value: 131 // default implementation looks up the 'display' property and returns the value:
132 // if (renderNode) 132 // if (renderNode)
133 // return renderNode.getProperty(phDisplay); 133 // return renderNode.getProperty(phDisplay);
134 // return null; 134 // return null;
135 readonly attribute RenderNode? renderNode; // O(1) 135 readonly attribute RenderNode? renderNode; // O(1)
136 // this will be null until the first time it is rendered 136 // this will be null until the first time it is rendered
137 void resetLayoutManager(); // O(1) 137 void resetLayoutManager(); // O(1)
138 // if renderNode is non-null: 138 // if renderNode is non-null:
139 // sets renderNode.layoutManager to null 139 // sets renderNode.layoutManager to null
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 the core mojo fabric JS API sky:mojo:fabric:core 544 the core mojo fabric JS API sky:mojo:fabric:core
545 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj o:fabric:ipc 545 the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:moj o:fabric:ipc
546 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp osed sky:mojo:shell 546 the mojom for the shell, proxying through C++ so that the shell pipe isn't exp osed sky:mojo:shell
547 the sky API sky:core 547 the sky API sky:core
548 the sky debug symbols for private APIs sky:debug 548 the sky debug symbols for private APIs sky:debug
549 ``` 549 ```
550 550
551 TODO(ianh): determine if we want to separate the "this" from the 551 TODO(ianh): determine if we want to separate the "this" from the
552 Document, especially for Modules, so that exposing a module's element 552 Document, especially for Modules, so that exposing a module's element
553 doesn't expose the module's exports attribute. 553 doesn't expose the module's exports attribute.
OLDNEW
« no previous file with comments | « no previous file | sky/specs/style.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698