| OLD | NEW |
| 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_ | 8 #ifndef GIN_FUNCTION_TEMPLATE_H_ |
| 9 #define GIN_FUNCTION_TEMPLATE_H_ | 9 #define GIN_FUNCTION_TEMPLATE_H_ |
| 10 | 10 |
| 11 $var MAX_ARITY = 4 | 11 $var MAX_ARITY = 6 |
| 12 | 12 |
| 13 // Copyright 2013 The Chromium Authors. All rights reserved. | 13 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 14 // 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 |
| 15 // found in the LICENSE file. | 15 // found in the LICENSE file. |
| 16 | 16 |
| 17 #include "base/callback.h" | 17 #include "base/callback.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "gin/arguments.h" | 19 #include "gin/arguments.h" |
| 20 #include "gin/converter.h" | 20 #include "gin/converter.h" |
| 21 #include "gin/gin_export.h" | 21 #include "gin/gin_export.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 gin::Handle<HolderT> holder = CreateHandle( | 204 gin::Handle<HolderT> holder = CreateHandle( |
| 205 isolate, new HolderT(callback, callback_flags)); | 205 isolate, new HolderT(callback, callback_flags)); |
| 206 return v8::FunctionTemplate::New( | 206 return v8::FunctionTemplate::New( |
| 207 &internal::Dispatcher<Sig>::DispatchToCallback, | 207 &internal::Dispatcher<Sig>::DispatchToCallback, |
| 208 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get())); | 208 ConvertToV8<internal::CallbackHolderBase*>(isolate, holder.get())); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace gin | 211 } // namespace gin |
| 212 | 212 |
| 213 #endif // GIN_FUNCTION_TEMPLATE_H_ | 213 #endif // GIN_FUNCTION_TEMPLATE_H_ |
| OLD | NEW |