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

Unified Diff: mojo/public/dart/system/lib/embedder.dart

Issue 674383002: Initial work on Dart bindings for Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge. Work on templates. Created 6 years, 1 month 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 | « mojo/public/dart/system/lib/core.dart ('k') | mojo/public/dart/system/lib/src/buffer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/system/lib/embedder.dart
diff --git a/mojo/public/dart/system/lib/embedder.dart b/mojo/public/dart/system/lib/embedder.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8c376a242f894628f0ea5e3bd33c0a0e6be06e00
--- /dev/null
+++ b/mojo/public/dart/system/lib/embedder.dart
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+library embedder;
+
+import 'dart:async';
+
+import 'core.dart' as core;
+import 'dart-ext:src/mojo_dart_embedder';
+
+void _init() native "MojoEmbedder_Init";
+void _mojoMakeSystemThunks(fn) native "MojoSystemThunks_Make";
+
+Future<bool> mojoEmbedderInit() {
+ _init();
+ _mojoMakeSystemThunks(core.setSystemThunks);
+ return core.MojoHandleWatcher.Start();
+}
« no previous file with comments | « mojo/public/dart/system/lib/core.dart ('k') | mojo/public/dart/system/lib/src/buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698