Skip to content

Commit 72986c3

Browse files
authored
Move constant definitions out embedder.h (#8498)
1 parent e356dbc commit 72986c3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

shell/platform/embedder/embedder.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ extern const intptr_t kPlatformStrongDillSize;
3939
#include "flutter/shell/platform/embedder/embedder_thread_host.h"
4040
#include "flutter/shell/platform/embedder/platform_view_embedder.h"
4141

42+
const int32_t kFlutterSemanticsNodeIdBatchEnd = -1;
43+
const int32_t kFlutterSemanticsCustomActionIdBatchEnd = -1;
44+
4245
static FlutterEngineResult LogEmbedderError(FlutterEngineResult code,
4346
const char* name,
4447
const char* function,

shell/platform/embedder/embedder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ typedef struct {
343343

344344
// |FlutterSemanticsNode| ID used as a sentinel to signal the end of a batch of
345345
// semantics node updates.
346-
const int32_t kFlutterSemanticsNodeIdBatchEnd = -1;
346+
extern const int32_t kFlutterSemanticsNodeIdBatchEnd;
347347

348348
// A node that represents some semantic data.
349349
//
@@ -414,7 +414,7 @@ typedef struct {
414414

415415
// |FlutterSemanticsCustomAction| ID used as a sentinel to signal the end of a
416416
// batch of semantics custom action updates.
417-
const int32_t kFlutterSemanticsCustomActionIdBatchEnd = -1;
417+
extern const int32_t kFlutterSemanticsCustomActionIdBatchEnd;
418418

419419
// A custom semantics action, or action override.
420420
//

0 commit comments

Comments
 (0)