Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |