| 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 public ::ppapi::FunctionGroupBase, | 84 public ::ppapi::FunctionGroupBase, |
| 85 public ::ppapi::thunk::PPB_Instance_FunctionAPI, | 85 public ::ppapi::thunk::PPB_Instance_FunctionAPI, |
| 86 public ::ppapi::InstanceImpl { | 86 public ::ppapi::InstanceImpl { |
| 87 public: | 87 public: |
| 88 // Create and return a PluginInstance object which supports the | 88 // Create and return a PluginInstance object which supports the |
| 89 // PPP_Instance_0_5 interface. | 89 // PPP_Instance_0_5 interface. |
| 90 static PluginInstance* Create0_5(PluginDelegate* delegate, | 90 static PluginInstance* Create0_5(PluginDelegate* delegate, |
| 91 PluginModule* module, | 91 PluginModule* module, |
| 92 const void* ppp_instance_if_0_5); | 92 const void* ppp_instance_if_0_5); |
| 93 | 93 |
| 94 // Create and return a PluginInstance object which supports the | |
| 95 // PPP_Instance_0_4 interface. | |
| 96 static PluginInstance* Create0_4(PluginDelegate* delegate, | |
| 97 PluginModule* module, | |
| 98 const void* ppp_instance_if_0_4); | |
| 99 | |
| 100 // Delete should be called by the WebPlugin before this destructor. | 94 // Delete should be called by the WebPlugin before this destructor. |
| 101 virtual ~PluginInstance(); | 95 virtual ~PluginInstance(); |
| 102 | 96 |
| 103 PluginDelegate* delegate() const { return delegate_; } | 97 PluginDelegate* delegate() const { return delegate_; } |
| 104 PluginModule* module() const { return module_.get(); } | 98 PluginModule* module() const { return module_.get(); } |
| 105 MessageChannel& message_channel() { return *message_channel_; } | 99 MessageChannel& message_channel() { return *message_channel_; } |
| 106 | 100 |
| 107 WebKit::WebPluginContainer* container() const { return container_; } | 101 WebKit::WebPluginContainer* container() const { return container_; } |
| 108 | 102 |
| 109 const gfx::Rect& position() const { return position_; } | 103 const gfx::Rect& position() const { return position_; } |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 uint32_t input_event_mask_; | 495 uint32_t input_event_mask_; |
| 502 uint32_t filtered_input_event_mask_; | 496 uint32_t filtered_input_event_mask_; |
| 503 | 497 |
| 504 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 498 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 505 }; | 499 }; |
| 506 | 500 |
| 507 } // namespace ppapi | 501 } // namespace ppapi |
| 508 } // namespace webkit | 502 } // namespace webkit |
| 509 | 503 |
| 510 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 504 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |