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

Unified Diff: gin/converter.h

Issue 59153005: Begin implementing V8 bindings for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar copyright Created 7 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
Index: gin/converter.h
diff --git a/gin/converter.h b/gin/converter.h
index eb84be213d14e1a36ef5db44833a7dd1b6437ea9..c871da5908873339dbf6c3d1061984082e32f2ef 100644
--- a/gin/converter.h
+++ b/gin/converter.h
@@ -40,6 +40,24 @@ struct Converter<uint32_t> {
};
template<>
+struct Converter<int64_t> {
+ // Warning: JavaScript cannot represent 64 integers precisely.
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ int64_t val);
+ static bool FromV8(v8::Handle<v8::Value> val,
+ int64_t* out);
+};
+
+template<>
+struct Converter<uint64_t> {
+ // Warning: JavaScript cannot represent 64 integers precisely.
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ uint64_t val);
+ static bool FromV8(v8::Handle<v8::Value> val,
+ uint64_t* out);
+};
+
+template<>
struct Converter<double> {
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
double val);
@@ -63,7 +81,8 @@ struct Converter<v8::Handle<v8::Function> > {
template<>
struct Converter<v8::Handle<v8::Object> > {
- static v8::Handle<v8::Value> ToV8(v8::Handle<v8::Object> val);
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ v8::Handle<v8::Object> val);
static bool FromV8(v8::Handle<v8::Value> val,
v8::Handle<v8::Object>* out);
};

Powered by Google App Engine
This is Rietveld 408576698