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_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 | 28 |
29 class WebPluginImpl : public WebKit::WebPlugin { | 29 class WebPluginImpl : public WebKit::WebPlugin { |
30 public: | 30 public: |
31 WebPluginImpl(PluginModule* module, | 31 WebPluginImpl(PluginModule* module, |
32 const WebKit::WebPluginParams& params, | 32 const WebKit::WebPluginParams& params, |
33 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 33 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
34 | 34 |
35 private: | 35 private: |
36 friend class DeleteTask<WebPluginImpl>; | 36 friend class DeleteTask<WebPluginImpl>; |
37 | 37 |
38 ~WebPluginImpl(); | 38 virtual ~WebPluginImpl(); |
39 | 39 |
40 // WebKit::WebPlugin implementation. | 40 // WebKit::WebPlugin implementation. |
41 virtual bool initialize(WebKit::WebPluginContainer* container); | 41 virtual bool initialize(WebKit::WebPluginContainer* container); |
42 virtual void destroy(); | 42 virtual void destroy(); |
43 virtual NPObject* scriptableObject(); | 43 virtual NPObject* scriptableObject(); |
44 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 44 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
45 virtual void updateGeometry( | 45 virtual void updateGeometry( |
46 const WebKit::WebRect& frame_rect, | 46 const WebKit::WebRect& frame_rect, |
47 const WebKit::WebRect& clip_rect, | 47 const WebKit::WebRect& clip_rect, |
48 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 48 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 scoped_refptr<PPB_URLLoader_Impl> document_loader_; | 87 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
88 gfx::Rect plugin_rect_; | 88 gfx::Rect plugin_rect_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 90 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace ppapi | 93 } // namespace ppapi |
94 } // namespace webkit | 94 } // namespace webkit |
95 | 95 |
96 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 96 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |