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

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

Issue 89723002: Convert the rest of the functions in core.cc to use CreateFunctionTemplate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase+comments Created 7 years 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
« no previous file with comments | « mojo/public/bindings/js/core.cc ('k') | mojo/public/bindings/js/handle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_ 5 #ifndef MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_
6 #define MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_ 6 #define MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_
7 7
8 #include "gin/converter.h" 8 #include "gin/converter.h"
9 #include "mojo/public/system/core_cpp.h" 9 #include "mojo/public/system/core_cpp.h"
10 10
11 namespace gin { 11 namespace gin {
12 12
13 template<> 13 template<>
14 struct Converter<mojo::Handle> { 14 struct Converter<mojo::Handle> {
15 static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, 15 static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
16 const mojo::Handle& val); 16 const mojo::Handle& val);
17 static bool FromV8(v8::Handle<v8::Value> val, 17 static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
18 mojo::Handle* out); 18 mojo::Handle* out);
19 }; 19 };
20 20
21 } // namespace gin 21 } // namespace gin
22 22
23 #endif // MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_ 23 #endif // MOJO_PUBLIC_BINDINGS_JS_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/public/bindings/js/core.cc ('k') | mojo/public/bindings/js/handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698