Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
9f28d58d
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9f28d58d
编写于
2月 13, 2015
作者:
H
Hixie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Specs: rename sky:core to dart:sky
Review URL:
https://codereview.chromium.org/925923004
上级
1d3f70fc
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
19 addition
and
21 deletion
+19
-21
specs/README.md
specs/README.md
+3
-5
specs/animation.md
specs/animation.md
+1
-1
specs/elements.md
specs/elements.md
+1
-1
specs/events.md
specs/events.md
+1
-1
specs/gestures.md
specs/gestures.md
+2
-2
specs/markup.md
specs/markup.md
+1
-1
specs/modules.md
specs/modules.md
+3
-3
specs/parsing.md
specs/parsing.md
+1
-1
specs/script.md
specs/script.md
+1
-1
specs/style.md
specs/style.md
+5
-5
未找到文件。
specs/README.md
浏览文件 @
9f28d58d
...
...
@@ -31,9 +31,7 @@ Notes
```
magical imports:
the core mojo fabric JS API sky:mojo:fabric:core
the asyncWait/cancelWait mojo fabric JS API (interface to IPC thread) sky:mojo:fabric:ipc
the mojom for the shell, proxying through C++ so that the shell pipe isn't exposed sky:mojo:shell
the sky API sky:core
the sky debug symbols for private APIs sky:debug
the mojo fabric API dart:mojo
the mojom for the shell, proxying through C++ so that the shell pipe isn't exposed dart:mojo-shell
the Sky API dart:sky
```
specs/animation.md
浏览文件 @
9f28d58d
...
...
@@ -32,7 +32,7 @@ Easing Functions
----------------
```
dart
// part of the framework, not
sky:core
// part of the framework, not
dart:sky
typedef
void
AnimationCallback
(
);
...
...
specs/elements.md
浏览文件 @
9f28d58d
...
...
@@ -3,7 +3,7 @@ Sky DOM APIs
```
dart
SKY
MODULE
<!--
part of
sky:
core
-->
<!--
part of
dart:
sky
-->
<
script
>
// ELEMENT TREE API
...
...
specs/events.md
浏览文件 @
9f28d58d
...
...
@@ -3,7 +3,7 @@ Sky Event Model
```
dart
SKY
MODULE
<!--
part of
sky:
core
-->
<!--
part of
dart:
sky
-->
<
script
>
import
'dart:collection'
;
...
...
specs/gestures.md
浏览文件 @
9f28d58d
...
...
@@ -3,7 +3,7 @@ Gestures
```
dart
SKY
MODULE
<!--
part of
sky:
core
-->
<!--
part of
dart:
sky
-->
<
script
>
abstract
class
GestureEvent
extends
Event
{
...
...
@@ -261,7 +261,7 @@ Gestures defined in the framework
```
dart
SKY
MODULE
<!--
not
in
sky:
core
-->
<!--
not
in
dart:
sky
-->
<!--
note:
this
hasn
't been dartified yet -->
<script>
...
...
specs/markup.md
浏览文件 @
9f28d58d
...
...
@@ -149,7 +149,7 @@ that everything of note would be provided by frameworks.
The following elements are implicitly registered by default, even if
you haven't imported anything. You can get to their constructors if
you import
sky:core (basically, sky:core
is always imported by defaul;
you import
dart:sky (basically, dart:sky
is always imported by defaul;
it's the runtime library). None of these elements have shadow trees.
``<import src="foo.sky">``
...
...
specs/modules.md
浏览文件 @
9f28d58d
...
...
@@ -36,7 +36,7 @@ Module API
----------
Each module consists of one or more libraries. The first library in a
module is the
*element tree library*
, which imports the
sky:core
module is the
*element tree library*
, which imports the
dart:sky
module and then consists of the following code for a Sky module:
```
dart
...
...
@@ -51,7 +51,7 @@ final Module module = new Application();
The
``<script>``
elements found in the document create the subsequent
libraries. Each one first imports the
``dart:mirror``
library, then
the
``
sky:core
``
module, then the first library described above, then
the
``
dart:sky
``
module, then the first library described above, then
all the modules referenced by
``<import>``
element up to that
``<script>``
element and all the libraries defined by
``<script>``
elements up to that point, interleaved so as to maintain the same
...
...
@@ -83,7 +83,7 @@ Then, that ``main()`` function is called.
TODO(ianh): decide what URL and name we should give the libraries, as
exposed in MirrorSystem.getName(libraryMirror.qualifiedName) etc
The
``Module``
class is defined in
``
sky:core
``
as follows:
The
``Module``
class is defined in
``
dart:sky
``
as follows:
```
dart
abstract
class
AbstractModule
extends
EventTarget
{
...
...
specs/parsing.md
浏览文件 @
9f28d58d
...
...
@@ -803,7 +803,7 @@ _document_ (this is implemented in JS):
_imported modules_ contains no entries with unresolved
promises.
2.
If the tag name is not registered, then let the ErrorElement
constructor from
sky:core
be the element constructor.
constructor from
dart:sky
be the element constructor.
Otherwise, let the element constructor be the registered
element's constructor for that tag name in this module.
3.
Create an element _node_ with the attributes given by the
...
...
specs/script.md
浏览文件 @
9f28d58d
...
...
@@ -31,7 +31,7 @@ The ``@nonnull`` annotation does nothing in code not marked
purposes. It indicates places where providing a null is a contract
violation and that results are therefore likely to be poor.
The following definitions are exposed in
``
sky:core
``
:
The following definitions are exposed in
``
dart:sky
``
:
```
dart
abstract
class
AutomaticMetadata
{
...
...
specs/style.md
浏览文件 @
9f28d58d
...
...
@@ -269,7 +269,7 @@ StyleNode
*/
```
The types marked with
*
in the list above are not part of
sky:core
,
The types marked with
*
in the list above are not part of
dart:sky
,
and are only shown here to illustrate what kinds of extensions are
possible and where they would fit.
...
...
@@ -454,7 +454,7 @@ PropertyHandle registerProperty(PropertySettings propertySettings);
// registers a property with the given settings, and returns an integer >= 0
// that can be used to refer to this property
//
sky:core
exports a bunch of style grammars so that people can extend them
//
dart:sky
exports a bunch of style grammars so that people can extend them
attribute
StyleGrammar
PositiveLengthOrInfinityStyleGrammar
;
// resolves to LengthStyleValue
attribute
StyleGrammar
PositiveLengthOrAutoStyleGrammar
;
// resolves to LengthStyleValue or IdentifierStyleValue (with value 'auto')
attribute
StyleGrammar
PositiveLengthStyleGrammar
;
// resolves to LengthStyleValue
...
...
@@ -564,7 +564,7 @@ class Rule {
Each frame, at some defined point relative to requestAnimationFrame(),
if a Rule has started applying, or a Rule stopped applying, to an
element,
sky:core
calls thatElement.style.clearFrameStyles() and then,
element,
dart:sky
calls thatElement.style.clearFrameStyles() and then,
for each Rule that now applies, calls
thatElement.style.addFrameStyles() with the relevant StyleDeclaration
and pseudoElement from each such Rule.
...
...
@@ -760,7 +760,7 @@ the Node inherited everything inheritable from its parent.
Layout
------
sky:core
registers 'display' as follows:
dart:sky
registers 'display' as follows:
```
javascript
{
...
...
@@ -778,7 +778,7 @@ The following API is then used to add new layout manager types to 'display':
void
registerLayoutManager
(
String
displayValue
,
LayoutManagerConstructor
?
layoutManager
);
```
sky:core
by default registers:
dart:sky
by default registers:
-
'block': sky.BlockLayoutManager
-
'paragraph': sky.ParagraphLayoutManager
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录