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

Unified Diff: sky/engine/bindings2/mojo_natives.cc

Issue 919883002: Allow sky apps to be consumers of mojo services (Closed) Base URL: https://github.com/eseidel/skydart.git@master
Patch Set: cr comments Created 5 years, 10 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
« no previous file with comments | « sky/engine/bindings2/mojo_natives.h ('k') | sky/engine/bindings2/snapshot.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sky/engine/bindings2/mojo_natives.h ('k') | sky/engine/bindings2/snapshot.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698