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

Side by Side Diff: gin/function_template.h

Issue 93813002: Implement gin::ObjectTemplateBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf 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 | « gin/converter.cc ('k') | gin/function_template.h.pump » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file was GENERATED by command: 1 // This file was GENERATED by command:
2 // pump.py function_template.h.pump 2 // pump.py function_template.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 5
6 6
7 #ifndef GIN_FUNCTION_TEMPLATE_H_
8 #define GIN_FUNCTION_TEMPLATE_H_
9
7 // Copyright 2013 The Chromium Authors. All rights reserved. 10 // Copyright 2013 The Chromium Authors. All rights reserved.
8 // Use of this source code is governed by a BSD-style license that can be 11 // Use of this source code is governed by a BSD-style license that can be
9 // found in the LICENSE file. 12 // found in the LICENSE file.
10 13
11 #include "base/callback.h" 14 #include "base/callback.h"
12 #include "base/logging.h" 15 #include "base/logging.h"
13 #include "gin/arguments.h" 16 #include "gin/arguments.h"
14 #include "gin/converter.h" 17 #include "gin/converter.h"
15 #include "gin/public/gin_embedders.h" 18 #include "gin/public/gin_embedders.h"
16 #include "gin/public/wrapper_info.h" 19 #include "gin/public/wrapper_info.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 v8::Isolate* isolate, 350 v8::Isolate* isolate,
348 const base::Callback<R(P1, P2, P3, P4)> callback) { 351 const base::Callback<R(P1, P2, P3, P4)> callback) {
349 typedef internal::CallbackHolder<R(P1, P2, P3, P4)> HolderT; 352 typedef internal::CallbackHolder<R(P1, P2, P3, P4)> HolderT;
350 scoped_refptr<HolderT> holder(new HolderT(callback)); 353 scoped_refptr<HolderT> holder(new HolderT(callback));
351 return v8::FunctionTemplate::New( 354 return v8::FunctionTemplate::New(
352 &internal::DispatchToCallback<R, P1, P2, P3, P4>, 355 &internal::DispatchToCallback<R, P1, P2, P3, P4>,
353 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get())); 356 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get()));
354 } 357 }
355 358
356 } // namespace gin 359 } // namespace gin
360
361 #endif // GIN_FUNCTION_TEMPLATE_H_
OLDNEW
« no previous file with comments | « gin/converter.cc ('k') | gin/function_template.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698