Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1428)

Unified Diff: mojo/public/platform/dart/mojo_natives.cc

Issue 1417523003: Move implementation of dart:mojo.internal to mojo/public/platform/dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) \
« mojo/public/platform/dart/README.md ('K') | « mojo/public/platform/dart/mojo_natives.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698