| 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 | 5 |
| 6 /* Given an interface like this: | 6 /* Given an interface like this: |
| 7 * | 7 * |
| 8 * struct PPB_Frob { | 8 * struct PPB_Frob { |
| 9 * void (*Flange)(int32_t param1, char* param2); | 9 * void (*Flange)(int32_t param1, char* param2); |
| 10 * int32_t (*Shlep)(PP_CompletionCallback); | 10 * int32_t (*Shlep)(PP_CompletionCallback); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 END_INTERFACE(FileRefInterface, PPB_FileRef) | 58 END_INTERFACE(FileRefInterface, PPB_FileRef) |
| 59 | 59 |
| 60 BEGIN_INTERFACE(FileSystemInterface, PPB_FileSystem, | 60 BEGIN_INTERFACE(FileSystemInterface, PPB_FileSystem, |
| 61 PPB_FILESYSTEM_INTERFACE_1_0) | 61 PPB_FILESYSTEM_INTERFACE_1_0) |
| 62 METHOD2(FileSystemInterface, PP_Resource, Create, PP_Instance, | 62 METHOD2(FileSystemInterface, PP_Resource, Create, PP_Instance, |
| 63 PP_FileSystemType) | 63 PP_FileSystemType) |
| 64 METHOD3(FileSystemInterface, int32_t, Open, PP_Resource, int64_t, | 64 METHOD3(FileSystemInterface, int32_t, Open, PP_Resource, int64_t, |
| 65 PP_CompletionCallback) | 65 PP_CompletionCallback) |
| 66 END_INTERFACE(FileSystemInterface, PPB_FileSystem) | 66 END_INTERFACE(FileSystemInterface, PPB_FileSystem) |
| 67 | 67 |
| 68 BEGIN_INTERFACE(MessageLoopInterface, PPB_MessageLoop, |
| 69 PPB_MESSAGELOOP_INTERFACE_1_0) |
| 70 METHOD1(MessageLoopInterface, PP_Resource, Create, PP_Instance) |
| 71 METHOD1(MessageLoopInterface, int32_t, AttachToCurrentThread, PP_Resource) |
| 72 METHOD1(MessageLoopInterface, int32_t, Run, PP_Resource) |
| 73 METHOD3(MessageLoopInterface, int32_t, PostWork, PP_Resource, |
| 74 struct PP_CompletionCallback, int64_t) |
| 75 METHOD2(MessageLoopInterface, int32_t, PostQuit, PP_Resource, PP_Bool) |
| 76 METHOD0(MessageLoopInterface, PP_Resource, GetCurrent) |
| 77 METHOD0(MessageLoopInterface, PP_Resource, GetForMainThread) |
| 78 END_INTERFACE(MessageLoopInterface, PPB_MessageLoop) |
| 79 |
| 68 BEGIN_INTERFACE(MessagingInterface, PPB_Messaging, PPB_MESSAGING_INTERFACE_1_0) | 80 BEGIN_INTERFACE(MessagingInterface, PPB_Messaging, PPB_MESSAGING_INTERFACE_1_0) |
| 69 METHOD2(MessagingInterface, void, PostMessage, PP_Instance, PP_Var) | 81 METHOD2(MessagingInterface, void, PostMessage, PP_Instance, PP_Var) |
| 70 END_INTERFACE(MessagingInterface, PPB_Messaging) | 82 END_INTERFACE(MessagingInterface, PPB_Messaging) |
| 71 | 83 |
| 72 BEGIN_INTERFACE(VarInterface, PPB_Var, PPB_VAR_INTERFACE_1_1) | 84 BEGIN_INTERFACE(VarInterface, PPB_Var, PPB_VAR_INTERFACE_1_1) |
| 73 METHOD1(VarInterface, void, AddRef, PP_Var) | 85 METHOD1(VarInterface, void, AddRef, PP_Var) |
| 74 METHOD1(VarInterface, void, Release, PP_Var) | 86 METHOD1(VarInterface, void, Release, PP_Var) |
| 75 METHOD2(VarInterface, PP_Var, VarFromUtf8, const char *, uint32_t) | 87 METHOD2(VarInterface, PP_Var, VarFromUtf8, const char *, uint32_t) |
| 76 METHOD2(VarInterface, const char*, VarToUtf8, PP_Var, uint32_t*) | 88 METHOD2(VarInterface, const char*, VarToUtf8, PP_Var, uint32_t*) |
| 77 END_INTERFACE(VarInterface, PPB_Var) | 89 END_INTERFACE(VarInterface, PPB_Var) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 PP_CompletionCallback) | 162 PP_CompletionCallback) |
| 151 METHOD1(UDPSocketInterface, PP_Resource, GetBoundAddress, PP_Resource) | 163 METHOD1(UDPSocketInterface, PP_Resource, GetBoundAddress, PP_Resource) |
| 152 METHOD5(UDPSocketInterface, int32_t, RecvFrom, PP_Resource, char*, int32_t, | 164 METHOD5(UDPSocketInterface, int32_t, RecvFrom, PP_Resource, char*, int32_t, |
| 153 PP_Resource*, PP_CompletionCallback) | 165 PP_Resource*, PP_CompletionCallback) |
| 154 METHOD5(UDPSocketInterface, int32_t, SendTo, PP_Resource, const char*, | 166 METHOD5(UDPSocketInterface, int32_t, SendTo, PP_Resource, const char*, |
| 155 int32_t, PP_Resource, PP_CompletionCallback) | 167 int32_t, PP_Resource, PP_CompletionCallback) |
| 156 METHOD1(UDPSocketInterface, void, Close, PP_Resource) | 168 METHOD1(UDPSocketInterface, void, Close, PP_Resource) |
| 157 METHOD4(UDPSocketInterface, int32_t, SetOption, PP_Resource, | 169 METHOD4(UDPSocketInterface, int32_t, SetOption, PP_Resource, |
| 158 PP_UDPSocket_Option, PP_Var, PP_CompletionCallback) | 170 PP_UDPSocket_Option, PP_Var, PP_CompletionCallback) |
| 159 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket) | 171 END_INTERFACE(UDPSocketInterface, PPB_UDPSocket) |
| OLD | NEW |