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

Side by Side Diff: gin/function_template.h.pump

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/function_template.h ('k') | gin/gin.gyp » ('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 is a pump file for generating file templates. Pump is a python 1 $$ This is a pump file for generating file templates. Pump is a python
2 $$ script that is part of the Google Test suite of utilities. Description 2 $$ script that is part of the Google Test suite of utilities. Description
3 $$ can be found here: 3 $$ can be found here:
4 $$ 4 $$
5 $$ http://code.google.com/p/googletest/wiki/PumpManual 5 $$ http://code.google.com/p/googletest/wiki/PumpManual
6 $$ 6 $$
7 7
8 #ifndef GIN_FUNCTION_TEMPLATE_H_
9 #define GIN_FUNCTION_TEMPLATE_H_
10
8 $var MAX_ARITY = 4 11 $var MAX_ARITY = 4
9 12
10 // Copyright 2013 The Chromium Authors. All rights reserved. 13 // Copyright 2013 The Chromium Authors. All rights reserved.
11 // Use of this source code is governed by a BSD-style license that can be 14 // Use of this source code is governed by a BSD-style license that can be
12 // found in the LICENSE file. 15 // found in the LICENSE file.
13 16
14 #include "base/callback.h" 17 #include "base/callback.h"
15 #include "base/logging.h" 18 #include "base/logging.h"
16 #include "gin/arguments.h" 19 #include "gin/arguments.h"
17 #include "gin/converter.h" 20 #include "gin/converter.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 scoped_refptr<HolderT> holder(new HolderT(callback)); 177 scoped_refptr<HolderT> holder(new HolderT(callback));
175 return v8::FunctionTemplate::New( 178 return v8::FunctionTemplate::New(
176 isolate, 179 isolate,
177 &internal::DispatchToCallback<R$for ARG [[, P$(ARG)]]>, 180 &internal::DispatchToCallback<R$for ARG [[, P$(ARG)]]>,
178 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get())); 181 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get()));
179 } 182 }
180 183
181 ]] 184 ]]
182 185
183 } // namespace gin 186 } // namespace gin
187
188 #endif // GIN_FUNCTION_TEMPLATE_H_
OLDNEW
« no previous file with comments | « gin/function_template.h ('k') | gin/gin.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698