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

Unified Diff: sky/engine/tonic/dart_builtin.cc

Issue 918333002: Add the c++ code part of bindings2/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated per earlier reviews 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/tonic/dart_builtin.h ('k') | sky/engine/tonic/dart_converter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_builtin.cc
diff --git a/sky/engine/tonic/dart_builtin.cc b/sky/engine/tonic/dart_builtin.cc
index 9a8f5356ab724f8bdbae0ee2c192d49e5c8449c3..aa12de497f3f5a397bf2ac1d47ce9c1375cbed9c 100644
--- a/sky/engine/tonic/dart_builtin.cc
+++ b/sky/engine/tonic/dart_builtin.cc
@@ -9,6 +9,7 @@
#include <string.h>
#include "base/logging.h"
+#include "sky/engine/tonic/dart_converter.h"
namespace blink {
@@ -47,4 +48,10 @@ const uint8_t* DartBuiltin::Symbolizer(Dart_NativeFunction native_function) cons
return nullptr;
}
+Dart_Handle DartBuiltin::LookupLibrary(const char* name) {
+ Dart_Handle library = Dart_LookupLibrary(ToDart(name));
+ DCHECK(!Dart_IsError(library));
+ return library;
+}
+
} // namespace blink
« no previous file with comments | « sky/engine/tonic/dart_builtin.h ('k') | sky/engine/tonic/dart_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698