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

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 7467002: Revert 93202 - Remove HandleInputEvent from PPP_Instance and freeze to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/event_conversion.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "ppapi/c/private/ppb_instance_private.h" 66 #include "ppapi/c/private/ppb_instance_private.h"
67 #include "ppapi/c/private/ppb_pdf.h" 67 #include "ppapi/c/private/ppb_pdf.h"
68 #include "ppapi/c/private/ppb_proxy_private.h" 68 #include "ppapi/c/private/ppb_proxy_private.h"
69 #include "ppapi/c/private/ppb_uma_private.h" 69 #include "ppapi/c/private/ppb_uma_private.h"
70 #include "ppapi/c/trusted/ppb_audio_trusted.h" 70 #include "ppapi/c/trusted/ppb_audio_trusted.h"
71 #include "ppapi/c/trusted/ppb_broker_trusted.h" 71 #include "ppapi/c/trusted/ppb_broker_trusted.h"
72 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 72 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
73 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 73 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
74 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 74 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
75 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 75 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
76 #include "ppapi/shared_impl/input_event_impl.h"
77 // TODO(dmichael): Delete this include after PPP_Instance_0_5 goes away in m14.
78 // This is just to get the PPP_INSTANCE_0_5 definition.
79 #include "ppapi/shared_impl/ppp_instance_combined.h"
80 #include "ppapi/shared_impl/time_conversion.h" 76 #include "ppapi/shared_impl/time_conversion.h"
81 #include "ppapi/thunk/enter.h" 77 #include "ppapi/thunk/enter.h"
82 #include "ppapi/thunk/thunk.h" 78 #include "ppapi/thunk/thunk.h"
83 #include "webkit/plugins/ppapi/callbacks.h" 79 #include "webkit/plugins/ppapi/callbacks.h"
84 #include "webkit/plugins/ppapi/common.h" 80 #include "webkit/plugins/ppapi/common.h"
85 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 81 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
86 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 82 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
87 #include "webkit/plugins/ppapi/ppb_console_impl.h" 83 #include "webkit/plugins/ppapi/ppb_console_impl.h"
88 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" 84 #include "webkit/plugins/ppapi/ppb_crypto_impl.h"
89 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" 85 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 return static_cast<const PPB_Memory_Dev*>(PPB_Memory_Impl::GetInterface()); 525 return static_cast<const PPB_Memory_Dev*>(PPB_Memory_Impl::GetInterface());
530 } 526 }
531 527
532 // static 528 // static
533 PluginModule::GetInterfaceFunc PluginModule::GetLocalGetInterfaceFunc() { 529 PluginModule::GetInterfaceFunc PluginModule::GetLocalGetInterfaceFunc() {
534 return &GetInterface; 530 return &GetInterface;
535 } 531 }
536 532
537 PluginInstance* PluginModule::CreateInstance(PluginDelegate* delegate) { 533 PluginInstance* PluginModule::CreateInstance(PluginDelegate* delegate) {
538 PluginInstance* instance(NULL); 534 PluginInstance* instance(NULL);
539 const void* ppp_instance = GetPluginInterface(PPP_INSTANCE_INTERFACE_1_0); 535 const void* ppp_instance = GetPluginInterface(PPP_INSTANCE_INTERFACE_0_5);
540 if (ppp_instance) { 536 if (ppp_instance) {
541 instance = PluginInstance::Create1_0(delegate, this, ppp_instance);
542 } else if ((ppp_instance = GetPluginInterface(PPP_INSTANCE_INTERFACE_0_5))) {
543 // TODO(dmichael): Remove support for 0.5 in m14.
544 instance = PluginInstance::Create0_5(delegate, this, ppp_instance); 537 instance = PluginInstance::Create0_5(delegate, this, ppp_instance);
545 } 538 }
546 if (!instance) { 539 if (!instance) {
547 LOG(WARNING) << "Plugin doesn't support instance interface, failing."; 540 LOG(WARNING) << "Plugin doesn't support instance interface, failing.";
548 return NULL; 541 return NULL;
549 } 542 }
550 if (out_of_process_proxy_.get()) 543 if (out_of_process_proxy_.get())
551 out_of_process_proxy_->AddInstance(instance->pp_instance()); 544 out_of_process_proxy_->AddInstance(instance->pp_instance());
552 return instance; 545 return instance;
553 } 546 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 621 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
629 if (retval != 0) { 622 if (retval != 0) {
630 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 623 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
631 return false; 624 return false;
632 } 625 }
633 return true; 626 return true;
634 } 627 }
635 628
636 } // namespace ppapi 629 } // namespace ppapi
637 } // namespace webkit 630 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/event_conversion.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698