Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2368)

Unified Diff: ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for line-wrap. Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
diff --git a/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c b/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
index fe151eb064a0de9c61bbcdb41b9cda9ec8908ef5..f1b328fe1e3e10d1fd6ed39ed15300fd1a3ce43e 100644
--- a/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
+++ b/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
@@ -32,14 +32,14 @@ struct MessageInfo {
struct PP_Var message;
};
-static struct PPB_Var* GetPPB_Var() {
- return (struct PPB_Var*)(*get_browser_interface_func)(PPB_VAR_INTERFACE);
+static PPB_Var* GetPPB_Var() {
+ return (PPB_Var*)(*get_browser_interface_func)(PPB_VAR_INTERFACE);
}
static void SendOnMessageEventCallback(void* data, int32_t result) {
struct MessageInfo* message_to_send = (struct MessageInfo*)data;
- struct PPB_Messaging* ppb_messaging =
- (struct PPB_Messaging*)(*get_browser_interface_func)(
+ PPB_Messaging* ppb_messaging =
+ (PPB_Messaging*)(*get_browser_interface_func)(
PPB_MESSAGING_INTERFACE);
UNREFERENCED_PARAMETER(result);
@@ -53,7 +53,7 @@ static void SendOnMessageEventCallback(void* data, int32_t result) {
* dereference it.
*/
if (message_to_send->message.type == PP_VARTYPE_STRING) {
- struct PPB_Var* ppb_var = GetPPB_Var();
+ PPB_Var* ppb_var = GetPPB_Var();
ppb_var->Release(message_to_send->message);
}
free(message_to_send);
@@ -63,14 +63,14 @@ static void SendOnMessageEventCallback(void* data, int32_t result) {
* HandleMessage to ensure that this is all asynchronous.
*/
void HandleMessage(PP_Instance instance, struct PP_Var message) {
- struct PPB_Core* ppb_core =
- (struct PPB_Core*)(*get_browser_interface_func)(PPB_CORE_INTERFACE);
+ PPB_Core* ppb_core =
+ (PPB_Core*)(*get_browser_interface_func)(PPB_CORE_INTERFACE);
struct MessageInfo* message_to_send = malloc(sizeof(struct MessageInfo));
message_to_send->instance = instance;
message_to_send->message = message;
if (message.type == PP_VARTYPE_STRING) {
- struct PPB_Var* ppb_var = GetPPB_Var();
+ PPB_Var* ppb_var = GetPPB_Var();
/* If the message is a string, add reference to go with the copy we did
* above.
*/
@@ -131,7 +131,7 @@ PP_EXPORT void PPP_ShutdownModule() {
PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
if (0 == strncmp(PPP_INSTANCE_INTERFACE, interface_name,
strlen(PPP_INSTANCE_INTERFACE))) {
- static struct PPP_Instance instance_interface = {
+ static PPP_Instance instance_interface = {
DidCreate,
DidDestroy,
DidChangeView,
@@ -141,7 +141,7 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
return &instance_interface;
} else if (0 == strncmp(PPP_MESSAGING_INTERFACE, interface_name,
strlen(PPP_MESSAGING_INTERFACE))) {
- static struct PPP_Messaging messaging_interface = {
+ static PPP_Messaging messaging_interface = {
HandleMessage
};
return &messaging_interface;
« no previous file with comments | « ppapi/native_client/tests/ppapi_example_audio/audio.cc ('k') | ppapi/native_client/tests/ppapi_simple_tests/audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698