Skip to content

Commit

Permalink
Move constant definitions out embedder.h (#8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmorgan committed Apr 10, 2019
1 parent e356dbc commit 72986c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions shell/platform/embedder/embedder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down Expand Up @@ -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.
//
Expand Down

0 comments on commit 72986c3

Please sign in to comment.