OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // There is deliberately no sentry here. This file is included multiple times, | 5 // There is deliberately no header guard here. This file is included multiple |
6 // once for each dispatcher specialiation arity. | 6 // times, once for each dispatcher specialiation arity. Do not include this |
| 7 // file directly. Include np_dispatcher.h instead. |
7 | 8 |
8 template <typename NPObjectType PARAM_TYPENAMES> | 9 template <typename NPObjectType PARAM_TYPENAMES> |
9 class NPDispatcher<NPObjectType, void(PARAM_TYPES)> | 10 class NPDispatcher<NPObjectType, void(PARAM_TYPES)> |
10 : public BaseNPDispatcher { | 11 : public BaseNPDispatcher { |
11 typedef void (NPObjectType::*FunctionType)(PARAM_TYPES); | 12 typedef void (NPObjectType::*FunctionType)(PARAM_TYPES); |
12 public: | 13 public: |
13 NPDispatcher(BaseNPDispatcher* next, | 14 NPDispatcher(BaseNPDispatcher* next, |
14 const NPUTF8* name, | 15 const NPUTF8* name, |
15 FunctionType function) | 16 FunctionType function) |
16 : BaseNPDispatcher(next, name), | 17 : BaseNPDispatcher(next, name), |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 private: | 76 private: |
76 FunctionType function_; | 77 FunctionType function_; |
77 }; | 78 }; |
78 | 79 |
79 #undef NUM_PARAMS | 80 #undef NUM_PARAMS |
80 #undef PARAM_TYPENAMES | 81 #undef PARAM_TYPENAMES |
81 #undef PARAM_TYPES | 82 #undef PARAM_TYPES |
82 #undef PARAM_NAMES | 83 #undef PARAM_NAMES |
83 #undef PARAM_DECLS | 84 #undef PARAM_DECLS |
84 #undef PARAM_TO_NVPARIANT_CONVERSIONS | 85 #undef PARAM_TO_NVPARIANT_CONVERSIONS |
OLD | NEW |