Index: sky/engine/bindings2/mojo_natives.cc |
diff --git a/mojo/dart/embedder/mojo_natives.cc b/sky/engine/bindings2/mojo_natives.cc |
similarity index 98% |
copy from mojo/dart/embedder/mojo_natives.cc |
copy to sky/engine/bindings2/mojo_natives.cc |
index ad8251a3dd69aec7e3ff6c96572bb95e2193e169..43237d4659294a5264dfda124c34cee408c5668a 100644 |
--- a/mojo/dart/embedder/mojo_natives.cc |
+++ b/sky/engine/bindings2/mojo_natives.cc |
@@ -9,13 +9,17 @@ |
#include "base/logging.h" |
#include "base/macros.h" |
#include "base/memory/scoped_ptr.h" |
+#include "builtin.h" |
#include "dart/runtime/include/dart_api.h" |
-#include "mojo/dart/embedder/builtin.h" |
#include "mojo/public/c/system/core.h" |
#include "mojo/public/cpp/system/core.h" |
-namespace mojo { |
-namespace dart { |
+namespace blink { |
+ |
+#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) \ |
@@ -798,5 +802,4 @@ void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { |
Dart_SetIntegerReturnValue(arguments, mojo_control_handle); |
} |
-} // namespace dart |
-} // namespace mojo |
+} // namespace blink |