OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GLUE_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 WebKit::WebFrame* frame, | 48 WebKit::WebFrame* frame, |
49 const WebKit::WebPluginParams& params, | 49 const WebKit::WebPluginParams& params, |
50 const base::WeakPtr<WebPluginPageDelegate>& page_delegate); | 50 const base::WeakPtr<WebPluginPageDelegate>& page_delegate); |
51 ~WebPluginImpl(); | 51 ~WebPluginImpl(); |
52 | 52 |
53 // Helper function for sorting post data. | 53 // Helper function for sorting post data. |
54 static bool SetPostData(WebKit::WebURLRequest* request, | 54 static bool SetPostData(WebKit::WebURLRequest* request, |
55 const char* buf, | 55 const char* buf, |
56 uint32 length); | 56 uint32 length); |
57 | 57 |
| 58 virtual WebPluginDelegate* delegate() { return delegate_; } |
| 59 |
58 private: | 60 private: |
59 // WebKit::WebPlugin methods: | 61 // WebKit::WebPlugin methods: |
60 virtual bool initialize( | 62 virtual bool initialize( |
61 WebKit::WebPluginContainer* container); | 63 WebKit::WebPluginContainer* container); |
62 virtual void destroy(); | 64 virtual void destroy(); |
63 virtual NPObject* scriptableObject(); | 65 virtual NPObject* scriptableObject(); |
64 virtual void paint( | 66 virtual void paint( |
65 WebKit::WebCanvas* canvas, const WebKit::WebRect& paint_rect); | 67 WebKit::WebCanvas* canvas, const WebKit::WebRect& paint_rect); |
66 virtual void updateGeometry( | 68 virtual void updateGeometry( |
67 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, | 69 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 std::vector<std::string> arg_values_; | 274 std::vector<std::string> arg_values_; |
273 | 275 |
274 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 276 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 278 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
277 }; | 279 }; |
278 | 280 |
279 } // namespace webkit_glue | 281 } // namespace webkit_glue |
280 | 282 |
281 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 283 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
OLD | NEW |