OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/ppapi/plugin_module.h" | 5 #include "webkit/plugins/ppapi/plugin_module.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 266 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
267 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 267 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
268 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 268 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
269 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 269 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
270 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 270 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
271 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); | 271 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); |
272 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) | 272 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) |
273 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); | 273 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); |
274 if (strcmp(name, PPB_FLASH_UDPSOCKET_INTERFACE) == 0) | 274 if (strcmp(name, PPB_FLASH_UDPSOCKET_INTERFACE) == 0) |
275 return ::ppapi::thunk::GetPPB_Flash_UDPSocket_Thunk(); | 275 return ::ppapi::thunk::GetPPB_Flash_UDPSocket_Thunk(); |
| 276 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_4) == 0) |
| 277 return ::ppapi::thunk::GetPPB_FlashFullscreen_Thunk(); |
276 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) | 278 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) |
277 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 279 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
278 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE) == 0) | 280 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE) == 0) |
279 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_Thunk(); | 281 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_Thunk(); |
280 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) | 282 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) |
281 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); | 283 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); |
282 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) | 284 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) |
283 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); | 285 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); |
284 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 286 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) |
285 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); | 287 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 536 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
535 if (retval != 0) { | 537 if (retval != 0) { |
536 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 538 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
537 return false; | 539 return false; |
538 } | 540 } |
539 return true; | 541 return true; |
540 } | 542 } |
541 | 543 |
542 } // namespace ppapi | 544 } // namespace ppapi |
543 } // namespace webkit | 545 } // namespace webkit |
OLD | NEW |