| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 return ::ppapi::thunk::GetPPB_Instance_1_0_Thunk(); | 291 return ::ppapi::thunk::GetPPB_Instance_1_0_Thunk(); |
| 292 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 292 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) |
| 293 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); | 293 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); |
| 294 if (strcmp(name, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0) == 0) | 294 if (strcmp(name, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0) == 0) |
| 295 return ::ppapi::thunk::GetPPB_KeyboardInputEvent_Thunk(); | 295 return ::ppapi::thunk::GetPPB_KeyboardInputEvent_Thunk(); |
| 296 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0) | 296 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0) |
| 297 return PPB_Memory_Impl::GetInterface(); | 297 return PPB_Memory_Impl::GetInterface(); |
| 298 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0) | 298 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0) |
| 299 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); | 299 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); |
| 300 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0) | 300 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0) |
| 301 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk(); | 301 return ::ppapi::thunk::GetPPB_MouseInputEvent_1_0_Thunk(); |
| 302 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1) == 0) |
| 303 return ::ppapi::thunk::GetPPB_MouseInputEvent_1_1_Thunk(); |
| 302 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 304 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
| 303 return PPB_Proxy_Impl::GetInterface(); | 305 return PPB_Proxy_Impl::GetInterface(); |
| 304 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0) | 306 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0) |
| 305 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk(); | 307 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk(); |
| 306 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) | 308 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) |
| 307 return PPB_Scrollbar_Impl::Get0_4Interface(); | 309 return PPB_Scrollbar_Impl::Get0_4Interface(); |
| 308 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) | 310 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) |
| 309 return PPB_Scrollbar_Impl::Get0_3Interface(); | 311 return PPB_Scrollbar_Impl::Get0_3Interface(); |
| 310 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_5) == 0) | 312 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_5) == 0) |
| 311 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); | 313 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 598 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 597 if (retval != 0) { | 599 if (retval != 0) { |
| 598 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 600 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 599 return false; | 601 return false; |
| 600 } | 602 } |
| 601 return true; | 603 return true; |
| 602 } | 604 } |
| 603 | 605 |
| 604 } // namespace ppapi | 606 } // namespace ppapi |
| 605 } // namespace webkit | 607 } // namespace webkit |
| OLD | NEW |