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 $var MAX_ARITY = 7 | 8 $var MAX_ARITY = 7 |
9 | 9 |
10 // Copyright 2014 The Chromium Authors. All rights reserved. | 10 // Copyright 2014 The Chromium Authors. All rights reserved. |
11 // 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 |
12 // found in the LICENSE file. | 12 // found in the LICENSE file. |
13 | 13 |
14 #ifndef MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 14 #ifndef MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
15 #define MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 15 #define MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
16 | 16 |
17 #include "mojo/public/bindings/lib/callback_internal.h" | 17 #include "mojo/public/cpp/bindings/lib/callback_internal.h" |
18 #include "mojo/public/bindings/lib/shared_ptr.h" | 18 #include "mojo/public/cpp/bindings/lib/shared_ptr.h" |
19 | 19 |
20 namespace mojo { | 20 namespace mojo { |
21 | 21 |
22 template <typename Sig> | 22 template <typename Sig> |
23 class Callback; | 23 class Callback; |
24 | 24 |
25 $range ARITY 0..MAX_ARITY | 25 $range ARITY 0..MAX_ARITY |
26 $for ARITY [[ | 26 $for ARITY [[ |
27 $range ARG 1..ARITY | 27 $range ARG 1..ARITY |
28 | 28 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 }; | 70 }; |
71 | 71 |
72 internal::SharedPtr<Runnable> sink_; | 72 internal::SharedPtr<Runnable> sink_; |
73 }; | 73 }; |
74 | 74 |
75 ]] $$ for ARITY | 75 ]] $$ for ARITY |
76 | 76 |
77 } // namespace mojo | 77 } // namespace mojo |
78 | 78 |
79 #endif // MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 79 #endif // MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
OLD | NEW |