Chromium Code Reviews| 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 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/sequenced_task_runner_helpers.h" | 13 #include "base/sequenced_task_runner_helpers.h" |
| 14 #include "ppapi/c/pp_var.h" | 14 #include "ppapi/c/pp_var.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 16 #include "third_party/npapi/bindings/npruntime.h" | |
| 16 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 17 #include "webkit/plugins/webkit_plugins_export.h" | 18 #include "webkit/plugins/webkit_plugins_export.h" |
| 18 | 19 |
| 19 namespace WebKit { | 20 namespace WebKit { |
| 20 struct WebPluginParams; | 21 struct WebPluginParams; |
| 21 struct WebPrintParams; | 22 struct WebPrintParams; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace webkit { | 25 namespace webkit { |
| 25 namespace ppapi { | 26 namespace ppapi { |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 36 const WebKit::WebPluginParams& params, | 37 const WebKit::WebPluginParams& params, |
| 37 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 38 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
| 38 | 39 |
| 39 PluginInstance* instance() { return instance_.get(); } | 40 PluginInstance* instance() { return instance_.get(); } |
| 40 | 41 |
| 41 // WebKit::WebPlugin implementation. | 42 // WebKit::WebPlugin implementation. |
| 42 virtual WebKit::WebPluginContainer* container() const; | 43 virtual WebKit::WebPluginContainer* container() const; |
| 43 virtual bool initialize(WebKit::WebPluginContainer* container); | 44 virtual bool initialize(WebKit::WebPluginContainer* container); |
| 44 virtual void destroy(); | 45 virtual void destroy(); |
| 45 virtual NPObject* scriptableObject(); | 46 virtual NPObject* scriptableObject(); |
| 47 virtual NPP pluginNPP(); | |
|
jamesr
2013/05/15 22:32:15
Yuck - the ppapi bindings shouldn't depend on npap
Wez
2013/05/15 23:14:16
The PPAPI bindings already depend on NPAPI for scr
Bernhard Bauer
2013/05/16 09:26:55
But you have reinterpret casts right now too!
I w
| |
| 46 virtual bool getFormValue(WebKit::WebString& value); | 48 virtual bool getFormValue(WebKit::WebString& value); |
| 47 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 49 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 48 virtual void updateGeometry( | 50 virtual void updateGeometry( |
| 49 const WebKit::WebRect& frame_rect, | 51 const WebKit::WebRect& frame_rect, |
| 50 const WebKit::WebRect& clip_rect, | 52 const WebKit::WebRect& clip_rect, |
| 51 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 53 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
| 52 bool is_visible); | 54 bool is_visible); |
| 53 virtual void updateFocus(bool focused); | 55 virtual void updateFocus(bool focused); |
| 54 virtual void updateVisibility(bool visible); | 56 virtual void updateVisibility(bool visible); |
| 55 virtual bool acceptsInputEvents(); | 57 virtual bool acceptsInputEvents(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 PP_Var instance_object_; | 103 PP_Var instance_object_; |
| 102 WebKit::WebPluginContainer* container_; | 104 WebKit::WebPluginContainer* container_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 106 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace ppapi | 109 } // namespace ppapi |
| 108 } // namespace webkit | 110 } // namespace webkit |
| 109 | 111 |
| 110 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 112 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |