| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |