Chromium Code Reviews

Unified Diff: ppapi/native_client/tests/earth/pepper_c.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.
Jump to:
View side-by-side diff with in-line comments
Index: ppapi/native_client/tests/earth/pepper_c.c
diff --git a/ppapi/native_client/tests/earth/pepper_c.c b/ppapi/native_client/tests/earth/pepper_c.c
index 44e81d9e7296066105b83ae443f3dcaa5a1bf14d..c42c3a1ff5f30ede9bac0149e96a1797875fa690 100644
--- a/ppapi/native_client/tests/earth/pepper_c.c
+++ b/ppapi/native_client/tests/earth/pepper_c.c
@@ -43,11 +43,11 @@ PPB_GetInterface g_get_browser_interface = NULL;
* Native Client.
*/
struct PepperState {
- const struct PPB_Core* core_interface;
- const struct PPB_Graphics2D* graphics_2d_interface;
- const struct PPB_ImageData* image_data_interface;
- const struct PPB_Instance* instance_interface;
- const struct PPB_View* view_interface;
+ const PPB_Core* core_interface;
+ const PPB_Graphics2D* graphics_2d_interface;
+ const PPB_ImageData* image_data_interface;
+ const PPB_Instance* instance_interface;
+ const PPB_View* view_interface;
PP_Resource device_context;
int32_t which_image;
PP_Resource image[NUMBER_OF_IMAGES];
@@ -184,7 +184,7 @@ static PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
return PP_FALSE;
}
-static struct PPP_Instance instance_interface = {
+static PPP_Instance instance_interface = {
&Instance_DidCreate,
&Instance_DidDestroy,
&Instance_DidChangeView,
@@ -199,15 +199,15 @@ PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
PPB_GetInterface get_browser_interface) {
g_get_browser_interface = get_browser_interface;
- g_MyState.core_interface = (const struct PPB_Core*)
+ g_MyState.core_interface = (const PPB_Core*)
get_browser_interface(PPB_CORE_INTERFACE);
- g_MyState.instance_interface = (const struct PPB_Instance*)
+ g_MyState.instance_interface = (const PPB_Instance*)
get_browser_interface(PPB_INSTANCE_INTERFACE);
- g_MyState.image_data_interface = (const struct PPB_ImageData*)
+ g_MyState.image_data_interface = (const PPB_ImageData*)
get_browser_interface(PPB_IMAGEDATA_INTERFACE);
- g_MyState.graphics_2d_interface = (const struct PPB_Graphics2D*)
+ g_MyState.graphics_2d_interface = (const PPB_Graphics2D*)
get_browser_interface(PPB_GRAPHICS_2D_INTERFACE);
- g_MyState.view_interface = (const struct PPB_View*)
+ g_MyState.view_interface = (const PPB_View*)
get_browser_interface(PPB_VIEW_INTERFACE);
if (!g_MyState.core_interface ||
!g_MyState.instance_interface ||

Powered by Google App Engine