Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
6c6faf58
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,发现更多精彩内容 >>
提交
6c6faf58
编写于
6月 01, 2016
作者:
T
Todd Volkert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Run clang-format on FlutterViewController.* (no-op change) (#2731)
上级
a943c732
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
19 addition
and
20 deletion
+19
-20
sky/shell/platform/ios/framework/Headers/FlutterViewController.h
...ll/platform/ios/framework/Headers/FlutterViewController.h
+2
-3
sky/shell/platform/ios/framework/Source/FlutterViewController.mm
...ll/platform/ios/framework/Source/FlutterViewController.mm
+17
-17
未找到文件。
sky/shell/platform/ios/framework/Headers/FlutterViewController.h
浏览文件 @
6c6faf58
...
...
@@ -21,12 +21,11 @@ FLUTTER_EXPORT
bundle
:(
NSBundle
*
)
nibBundleOrNil
NS_DESIGNATED_INITIALIZER
;
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
;
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
;
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
callback
:(
void
(
^
)(
NSString
*
))
callback
;
callback
:(
void
(
^
)(
NSString
*
))
callback
;
-
(
void
)
addMessageListener
:(
NSObject
<
FlutterMessageListener
>*
)
listener
;
...
...
sky/shell/platform/ios/framework/Source/FlutterViewController.mm
浏览文件 @
6c6faf58
...
...
@@ -31,7 +31,7 @@
#include "sky/shell/shell.h"
#include "sky/shell/shell_view.h"
@interface
FlutterViewController
()
<
UIAlertViewDelegate
>
@interface
FlutterViewController
()
<
UIAlertViewDelegate
>
@end
void
FlutterInit
(
int
argc
,
const
char
*
argv
[])
{
...
...
@@ -145,7 +145,7 @@ void FlutterInit(int argc, const char* argv[]) {
#pragma mark - Initializing the engine
-
(
void
)
alertView
:(
UIAlertView
*
)
alertView
clickedButtonAtIndex
:(
NSInteger
)
buttonIndex
{
clickedButtonAtIndex
:(
NSInteger
)
buttonIndex
{
exit
(
0
);
}
...
...
@@ -157,9 +157,8 @@ clickedButtonAtIndex:(NSInteger)buttonIndex {
[
self
setupPlatformServiceProvider
];
// We ask the VM to check what it supports.
const
enum
VMType
type
=
Dart_IsPrecompiledRuntime
()
?
VMTypePrecompilation
:
VMTypeInterpreter
;
const
enum
VMType
type
=
Dart_IsPrecompiledRuntime
()
?
VMTypePrecompilation
:
VMTypeInterpreter
;
[
_dartProject
launchInEngine
:
_engine
embedderVMType:
type
...
...
@@ -177,7 +176,8 @@ clickedButtonAtIndex:(NSInteger)buttonIndex {
}];
DCHECK
(
_dartServices
);
mojo
::
ConnectToService
(
_dartServices
.
get
(),
mojo
::
GetProxy
(
&
_appMessageSender
));
mojo
::
ConnectToService
(
_dartServices
.
get
(),
mojo
::
GetProxy
(
&
_appMessageSender
));
}
static
void
DynamicServiceResolve
(
void
*
baton
,
...
...
@@ -461,23 +461,23 @@ static inline PointerTypeMapperPhase PointerTypePhaseFromUITouchPhase(
#pragma mark - Application Messages
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
{
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
{
NSAssert
(
message
,
@"The message must not be null"
);
NSAssert
(
messageName
,
@"The messageName must not be null"
);
_appMessageSender
->
SendString
(
messageName
.
UTF8String
,
message
.
UTF8String
,
[](
const
mojo
::
String
&
response
)
{
});
[](
const
mojo
::
String
&
response
)
{
});
}
-
(
void
)
sendString
:(
NSString
*
)
message
withMessageName
:(
NSString
*
)
messageName
callback
:(
void
(
^
)(
NSString
*
))
callback
{
callback
:(
void
(
^
)(
NSString
*
))
callback
{
NSAssert
(
message
,
@"The message must not be null"
);
NSAssert
(
messageName
,
@"The messageName must not be null"
);
NSAssert
(
callback
,
@"The callback must not be null"
);
base
::
mac
::
ScopedBlock
<
void
(
^
)(
NSString
*
)
>
callback_ptr
(
base
::
mac
::
ScopedBlock
<
void
(
^
)(
NSString
*
)
>
callback_ptr
(
callback
,
base
::
scoped_policy
::
RETAIN
);
_appMessageSender
->
SendString
(
messageName
.
UTF8String
,
message
.
UTF8String
,
_appMessageSender
->
SendString
(
messageName
.
UTF8String
,
message
.
UTF8String
,
[
callback_ptr
](
const
mojo
::
String
&
response
)
{
callback_ptr
.
get
()(
base
::
SysUTF8ToNSString
(
response
));
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录