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

Side by Side Diff: mojo/public/bindings/js/v8_core.h

Issue 59153005: Begin implementing V8 bindings for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spelling 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_PUBLIC_BINDINGS_JS_V8_CORE_H_
Aaron Boodman 2013/11/09 08:26:02 The naming of this file confused me at first, I wa
abarth-chromium 2013/11/09 08:52:37 Yeah. I agree that we should separate the mojo-sp
6 #define MOJO_PUBLIC_BINDINGS_JS_V8_CORE_H_
7
8 #include "mojo/public/system/core.h"
9 #include "mojo/public/bindings/js/v8_wrapper.h"
10
11 namespace mojo {
12 namespace js {
13
14 template<>
15 struct Wrapper<mojo::Handle> {
16 static v8::Local<v8::ObjectTemplate> CreateTemplate();
17 static bool HasInstance(v8::Handle<v8::Object> object);
18 static v8::Handle<v8::Object> ToObject(v8::Isolate* isolate,
19 mojo::Handle handle);
20 static mojo::Handle ToNative(v8::Handle<v8::Object> object);
21 static mojo::Handle ToNativeUnchecked(v8::Handle<v8::Object> object);
22 };
23
24 } // js
25 } // mojo
26
27 #endif // MOJO_PUBLIC_BINDINGS_JS_V8_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698