| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class PluginModule; | 28 class PluginModule; |
| 29 class PPB_URLLoader_Impl; | 29 class PPB_URLLoader_Impl; |
| 30 | 30 |
| 31 class WebPluginImpl : public WebKit::WebPlugin { | 31 class WebPluginImpl : public WebKit::WebPlugin { |
| 32 public: | 32 public: |
| 33 WEBKIT_PLUGINS_EXPORT WebPluginImpl( | 33 WEBKIT_PLUGINS_EXPORT WebPluginImpl( |
| 34 PluginModule* module, | 34 PluginModule* module, |
| 35 const WebKit::WebPluginParams& params, | 35 const WebKit::WebPluginParams& params, |
| 36 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 36 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
| 37 | 37 |
| 38 PluginInstance* instance() { return instance_.get(); } |
| 39 |
| 38 // WebKit::WebPlugin implementation. | 40 // WebKit::WebPlugin implementation. |
| 39 virtual WebKit::WebPluginContainer* container() const; | 41 virtual WebKit::WebPluginContainer* container() const; |
| 40 virtual bool initialize(WebKit::WebPluginContainer* container); | 42 virtual bool initialize(WebKit::WebPluginContainer* container); |
| 41 virtual void destroy(); | 43 virtual void destroy(); |
| 42 virtual NPObject* scriptableObject(); | 44 virtual NPObject* scriptableObject(); |
| 43 virtual bool getFormValue(WebKit::WebString& value); | 45 virtual bool getFormValue(WebKit::WebString& value); |
| 44 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 46 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 45 virtual void updateGeometry( | 47 virtual void updateGeometry( |
| 46 const WebKit::WebRect& frame_rect, | 48 const WebKit::WebRect& frame_rect, |
| 47 const WebKit::WebRect& clip_rect, | 49 const WebKit::WebRect& clip_rect, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 PP_Var instance_object_; | 99 PP_Var instance_object_; |
| 98 WebKit::WebPluginContainer* container_; | 100 WebKit::WebPluginContainer* container_; |
| 99 | 101 |
| 100 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 102 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace ppapi | 105 } // namespace ppapi |
| 104 } // namespace webkit | 106 } // namespace webkit |
| 105 | 107 |
| 106 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 108 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |