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

Unified Diff: ppapi/examples/2d/graphics_2d_example.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: Fix ppapi/tests/ forward declares to includes. Created 9 years 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/examples/2d/graphics_2d_example.c
diff --git a/ppapi/examples/2d/graphics_2d_example.c b/ppapi/examples/2d/graphics_2d_example.c
index 6495cdce4783fd8f2ebde855f4cee0211551e66e..95758ea1a0ecccc575d80db4195c0d95ad072368 100644
--- a/ppapi/examples/2d/graphics_2d_example.c
+++ b/ppapi/examples/2d/graphics_2d_example.c
@@ -21,10 +21,10 @@
PPB_GetInterface g_get_browser_interface = NULL;
-const struct PPB_Core* g_core_interface;
-const struct PPB_Graphics2D* g_graphics_2d_interface;
-const struct PPB_ImageData* g_image_data_interface;
-const struct PPB_Instance* g_instance_interface;
+const PPB_Core* g_core_interface;
+const PPB_Graphics2D* g_graphics_2d_interface;
+const PPB_ImageData* g_image_data_interface;
+const PPB_Instance* g_instance_interface;
/* PPP_Instance implementation -----------------------------------------------*/
@@ -162,7 +162,7 @@ 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,
@@ -177,13 +177,13 @@ PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
PPB_GetInterface get_browser_interface) {
g_get_browser_interface = get_browser_interface;
- g_core_interface = (const struct PPB_Core*)
+ g_core_interface = (const PPB_Core*)
get_browser_interface(PPB_CORE_INTERFACE);
- g_instance_interface = (const struct PPB_Instance*)
+ g_instance_interface = (const PPB_Instance*)
get_browser_interface(PPB_INSTANCE_INTERFACE);
- g_image_data_interface = (const struct PPB_ImageData*)
+ g_image_data_interface = (const PPB_ImageData*)
get_browser_interface(PPB_IMAGEDATA_INTERFACE);
- g_graphics_2d_interface = (const struct PPB_Graphics2D*)
+ g_graphics_2d_interface = (const PPB_Graphics2D*)
get_browser_interface(PPB_GRAPHICS_2D_INTERFACE);
if (!g_core_interface || !g_instance_interface || !g_image_data_interface ||
!g_graphics_2d_interface)
@@ -200,4 +200,3 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
return &instance_interface;
return NULL;
}
-

Powered by Google App Engine
This is Rietveld 408576698