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

Unified Diff: mojo/public/bindings/js/core.cc

Issue 68323004: Port Mojo's sample_service.cc to JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: mojo/public/bindings/js/core.cc
diff --git a/mojo/public/bindings/js/core.cc b/mojo/public/bindings/js/core.cc
index 9760ca099c932e23de98bc5dc933f0d2a573873a..6a048cfecbb73c2184a24e697f0f49fe74974bf1 100644
--- a/mojo/public/bindings/js/core.cc
+++ b/mojo/public/bindings/js/core.cc
@@ -156,6 +156,9 @@ v8::Local<v8::ObjectTemplate> Core::GetTemplate(v8::Isolate* isolate) {
templ->Set(gin::StringToSymbol(isolate, "readMessage"),
v8::FunctionTemplate::New(ReadMessage));
+ templ->Set(gin::StringToSymbol(isolate, "kInvalidHandle"),
+ gin::ConvertToV8(isolate, mojo::kInvalidHandle));
+
templ->Set(gin::StringToSymbol(isolate, "RESULT_OK"),
gin::ConvertToV8(isolate, MOJO_RESULT_OK));
templ->Set(gin::StringToSymbol(isolate, "RESULT_CANCELLED"),

Powered by Google App Engine
This is Rietveld 408576698