Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
9f446860
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,发现更多精彩内容 >>
未验证
提交
9f446860
编写于
5月 21, 2020
作者:
C
Chris Bracken
提交者:
GitHub
5月 21, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
null-annotate semantics.dart (#18553)
Covers the remaining API surface of the semantics library.
上级
d494fffb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
12 deletion
+16
-12
lib/ui/semantics.dart
lib/ui/semantics.dart
+8
-6
lib/web_ui/lib/src/ui/semantics.dart
lib/web_ui/lib/src/ui/semantics.dart
+8
-6
未找到文件。
lib/ui/semantics.dart
浏览文件 @
9f446860
...
...
@@ -12,7 +12,7 @@ part of dart.ui;
// `lib/ui/semantics/semantics_node.h` and in each of the embedders *must* be
// updated.
class
SemanticsAction
{
const
SemanticsAction
.
_
(
this
.
index
);
const
SemanticsAction
.
_
(
this
.
index
)
:
assert
(
index
!=
null
)
;
static
const
int
_kTapIndex
=
1
<<
0
;
static
const
int
_kLongPressIndex
=
1
<<
1
;
...
...
@@ -42,7 +42,7 @@ class SemanticsAction {
/// The numerical value for this action.
///
/// Each action has one bit set in this bit field.
final
int
index
;
final
int
/*!*/
index
;
/// The equivalent of a user briefly tapping the screen with the finger
/// without moving it.
...
...
@@ -263,7 +263,8 @@ class SemanticsAction {
case
_kMoveCursorBackwardByWordIndex:
return
'SemanticsAction.moveCursorBackwardByWord'
;
}
return
null
;
assert
(
false
,
'Unhandled index:
$index
'
);
return
''
;
}
}
...
...
@@ -299,12 +300,12 @@ class SemanticsFlag {
// READ THIS: if you add a flag here, you MUST update the numSemanticsFlags
// value in testing/dart/semantics_test.dart, or tests will fail.
const
SemanticsFlag
.
_
(
this
.
index
);
const
SemanticsFlag
.
_
(
this
.
index
)
:
assert
(
index
!=
null
)
;
/// The numerical value for this flag.
///
/// Each flag has one bit set in this bit field.
final
int
index
;
final
int
/*!*/
index
;
/// The semantics node has the quality of either being "checked" or "unchecked".
///
...
...
@@ -596,7 +597,8 @@ class SemanticsFlag {
case
_kIsLinkIndex:
return
'SemanticsFlag.isLink'
;
}
return
null
;
assert
(
false
,
'Unhandled index:
$index
'
);
return
''
;
}
}
...
...
lib/web_ui/lib/src/ui/semantics.dart
浏览文件 @
9f446860
...
...
@@ -8,7 +8,7 @@ part of ui;
/// The possible actions that can be conveyed from the operating system
/// accessibility APIs to a semantics node.
class
SemanticsAction
{
const
SemanticsAction
.
_
(
this
.
index
);
const
SemanticsAction
.
_
(
this
.
index
)
:
assert
(
index
!=
null
)
;
static
const
int
_kTapIndex
=
1
<<
0
;
static
const
int
_kLongPressIndex
=
1
<<
1
;
...
...
@@ -35,7 +35,7 @@ class SemanticsAction {
/// The numerical value for this action.
///
/// Each action has one bit set in this bit field.
final
int
index
;
final
int
/*!*/
index
;
/// The equivalent of a user briefly tapping the screen with the finger
/// without moving it.
...
...
@@ -267,7 +267,8 @@ class SemanticsAction {
case
_kMoveCursorBackwardByWordIndex:
return
'SemanticsAction.moveCursorBackwardByWord'
;
}
return
null
;
assert
(
false
,
'Unhandled index:
$index
'
);
return
''
;
}
}
...
...
@@ -297,12 +298,12 @@ class SemanticsFlag {
static
const
int
_kIsFocusableIndex
=
1
<<
21
;
static
const
int
_kIsLinkIndex
=
1
<<
22
;
const
SemanticsFlag
.
_
(
this
.
index
);
const
SemanticsFlag
.
_
(
this
.
index
)
:
assert
(
index
!=
null
)
;
/// The numerical value for this flag.
///
/// Each flag has one bit set in this bit field.
final
int
index
;
final
int
/*!*/
index
;
/// The semantics node has the quality of either being "checked" or "unchecked".
///
...
...
@@ -601,7 +602,8 @@ class SemanticsFlag {
case
_kIsReadOnlyIndex:
return
'SemanticsFlag.isReadOnly'
;
}
return
null
;
assert
(
false
,
'Unhandled index:
$index
'
);
return
''
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录