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

Unified Diff: webkit/plugins/ppapi/plugin_module.cc

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: webkit/plugins/ppapi/plugin_module.cc
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc
index 3cb4c482284c1f3c516d06ec1d3f010d7e047257..c3d655fd8abb4cdbf3611a813f83006147a750a2 100644
--- a/webkit/plugins/ppapi/plugin_module.cc
+++ b/webkit/plugins/ppapi/plugin_module.cc
@@ -285,58 +285,58 @@ const void* GetInterface(const char* name) {
// Please keep alphabetized by interface macro name with "special" stuff at
// the bottom.
- if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk();
- if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk();
- if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk();
- if (strcmp(name, PPB_CORE_INTERFACE) == 0)
+ if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE_0_1) == 0)
+ return ::ppapi::thunk::GetPPB_AudioInputTrusted_0_1_Thunk();
+ if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0)
+ return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk();
+ if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0)
+ return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk();
+ if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0)
return &core_interface;
- if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk();
+ if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5) == 0)
+ return ::ppapi::thunk::GetPPB_FileChooser_Trusted_0_5_Thunk();
if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0)
return PPB_Flash_Impl::GetInterface11();
if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0)
return PPB_Flash_Impl::GetInterface12();
- if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk();
+ if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0)
+ return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk();
if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0)
- return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk();
+ return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk();
if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0)
return PPB_Flash_File_FileRef_Impl::GetInterface();
if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0)
return PPB_Flash_File_ModuleLocal_Impl::GetInterface();
- if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk();
- if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_TCPSocket_Private_Thunk();
- if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_Fullscreen_Thunk();
+ if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0)
+ return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk();
+ if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0)
+ return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk();
+ if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0)
+ return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk();
if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0)
return PPB_GpuBlacklist_Private_Impl::GetInterface();
- if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_Graphics3DTrusted_Thunk();
- if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk();
+ if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0)
+ return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk();
+ if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0)
+ return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk();
if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0)
- return ::ppapi::thunk::GetPPB_InputEvent_Thunk();
- if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_Instance_Private_Thunk();
+ return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk();
+ if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0)
+ return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk();
if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0)
return ::ppapi::PPB_OpenGLES2_Shared::GetInterface();
if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
return PPB_Proxy_Impl::GetInterface();
if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
return PPB_UMA_Private_Impl::GetInterface();
- if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
- return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk();
+ if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
+ return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
- return ::ppapi::PPB_Var_Shared::GetVarInterface();
+ return ::ppapi::PPB_Var_Shared::GetVarInterface1_1();
if (strcmp(name, PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE) == 0)
return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface();

Powered by Google App Engine
This is Rietveld 408576698