| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | |
| 6 /* Given an interface like this: | 5 /* Given an interface like this: |
| 7 * | 6 * |
| 8 * struct PPB_Frob_1_1 { | 7 * struct PPB_Frob_1_1 { |
| 9 * void (*Flange)(int32_t param1, char* param2); | 8 * void (*Flange)(int32_t param1, char* param2); |
| 10 * int32_t (*Shlep)(PP_CompletionCallback); | 9 * int32_t (*Shlep)(PP_CompletionCallback); |
| 11 * }; | 10 * }; |
| 12 * | 11 * |
| 13 * Write a set of macros like this: | 12 * Write a set of macros like this: |
| 14 * | 13 * |
| 15 * BEGIN_INTERFACE(FrobInterface, PPB_Frob_1_1, PPB_FROB_INTERFACE_1_1) | 14 * BEGIN_INTERFACE(FrobInterface, PPB_Frob_1_1, PPB_FROB_INTERFACE_1_1) |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 PP_CompletionCallback) | 217 PP_CompletionCallback) |
| 219 METHOD1(UDPSocketInterface, PP_Resource, GetBoundAddress, PP_Resource) | 218 METHOD1(UDPSocketInterface, PP_Resource, GetBoundAddress, PP_Resource) |
| 220 METHOD5(UDPSocketInterface, int32_t, RecvFrom, PP_Resource, char*, int32_t, | 219 METHOD5(UDPSocketInterface, int32_t, RecvFrom, PP_Resource, char*, int32_t, |
| 221 PP_Resource*, PP_CompletionCallback) | 220 PP_Resource*, PP_CompletionCallback) |
| 222 METHOD5(UDPSocketInterface, int32_t, SendTo, PP_Resource, const char*, | 221 METHOD5(UDPSocketInterface, int32_t, SendTo, PP_Resource, const char*, |
| 223 int32_t, PP_Resource, PP_CompletionCallback) | 222 int32_t, PP_Resource, PP_CompletionCallback) |
| 224 METHOD1(UDPSocketInterface, void, Close, PP_Resource) | 223 METHOD1(UDPSocketInterface, void, Close, PP_Resource) |
| 225 METHOD4(UDPSocketInterface, int32_t, SetOption, PP_Resource, | 224 METHOD4(UDPSocketInterface, int32_t, SetOption, PP_Resource, |
| 226 PP_UDPSocket_Option, PP_Var, PP_CompletionCallback) | 225 PP_UDPSocket_Option, PP_Var, PP_CompletionCallback) |
| 227 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket_1_0) | 226 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket_1_0) |
| OLD | NEW |