未验证 提交 72986c39 编写于 作者: S stuartmorgan 提交者: GitHub

Move constant definitions out embedder.h (#8498)

上级 e356dbca
......@@ -39,6 +39,9 @@ extern const intptr_t kPlatformStrongDillSize;
#include "flutter/shell/platform/embedder/embedder_thread_host.h"
#include "flutter/shell/platform/embedder/platform_view_embedder.h"
const int32_t kFlutterSemanticsNodeIdBatchEnd = -1;
const int32_t kFlutterSemanticsCustomActionIdBatchEnd = -1;
static FlutterEngineResult LogEmbedderError(FlutterEngineResult code,
const char* name,
const char* function,
......
......@@ -343,7 +343,7 @@ typedef struct {
// |FlutterSemanticsNode| ID used as a sentinel to signal the end of a batch of
// semantics node updates.
const int32_t kFlutterSemanticsNodeIdBatchEnd = -1;
extern const int32_t kFlutterSemanticsNodeIdBatchEnd;
// A node that represents some semantic data.
//
......@@ -414,7 +414,7 @@ typedef struct {
// |FlutterSemanticsCustomAction| ID used as a sentinel to signal the end of a
// batch of semantics custom action updates.
const int32_t kFlutterSemanticsCustomActionIdBatchEnd = -1;
extern const int32_t kFlutterSemanticsCustomActionIdBatchEnd;
// A custom semantics action, or action override.
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册