| Index: mojo/public/platform/dart/mojo_natives.cc
|
| diff --git a/mojo/dart/embedder/mojo_natives.cc b/mojo/public/platform/dart/mojo_natives.cc
|
| similarity index 99%
|
| rename from mojo/dart/embedder/mojo_natives.cc
|
| rename to mojo/public/platform/dart/mojo_natives.cc
|
| index f1938372defe83f23ec0e64071a64b973a5b34a7..8739db4034b7fc39a619534d8d9f988ec9327bd8 100644
|
| --- a/mojo/dart/embedder/mojo_natives.cc
|
| +++ b/mojo/public/platform/dart/mojo_natives.cc
|
| @@ -9,7 +9,6 @@
|
| #include <vector>
|
|
|
| #include "dart/runtime/include/dart_api.h"
|
| -#include "mojo/dart/embedder/builtin.h"
|
| #include "mojo/public/c/system/core.h"
|
| #include "mojo/public/cpp/environment/logging.h"
|
| #include "mojo/public/cpp/system/core.h"
|
| @@ -18,6 +17,11 @@
|
| namespace mojo {
|
| namespace dart {
|
|
|
| +#define REGISTER_FUNCTION(name, count) \
|
| + { "" #name, name, count },
|
| +#define DECLARE_FUNCTION(name, count) \
|
| + extern void name(Dart_NativeArguments args);
|
| +
|
| #define MOJO_NATIVE_LIST(V) \
|
| V(MojoSharedBuffer_Create, 2) \
|
| V(MojoSharedBuffer_Duplicate, 2) \
|
|
|