| 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 CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Helper function for sorting post data. | 65 // Helper function for sorting post data. |
| 66 CONTENT_EXPORT static bool SetPostData(blink::WebURLRequest* request, | 66 CONTENT_EXPORT static bool SetPostData(blink::WebURLRequest* request, |
| 67 const char* buf, | 67 const char* buf, |
| 68 uint32_t length); | 68 uint32_t length); |
| 69 | 69 |
| 70 blink::WebFrame* webframe() { return webframe_; } | 70 blink::WebFrame* webframe() { return webframe_; } |
| 71 | 71 |
| 72 // blink::WebPlugin methods: | 72 // blink::WebPlugin methods: |
| 73 bool initialize(blink::WebPluginContainer* container) override; | 73 bool initialize(blink::WebPluginContainer* container) override; |
| 74 void destroy() override; | 74 void destroy() override; |
| 75 bool getFormValue(blink::WebString& value) override; | |
| 76 void updateAllLifecyclePhases() override; | 75 void updateAllLifecyclePhases() override; |
| 77 void paint(blink::WebCanvas* canvas, | 76 void paint(blink::WebCanvas* canvas, |
| 78 const blink::WebRect& paint_rect) override; | 77 const blink::WebRect& paint_rect) override; |
| 79 void updateGeometry(const blink::WebRect& window_rect, | 78 void updateGeometry(const blink::WebRect& window_rect, |
| 80 const blink::WebRect& clip_rect, | 79 const blink::WebRect& clip_rect, |
| 81 const blink::WebRect& unobscured_rect, | 80 const blink::WebRect& unobscured_rect, |
| 82 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 81 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 83 bool is_visible) override; | 82 bool is_visible) override; |
| 84 void updateFocus(bool focused, blink::WebFocusType focus_type) override; | 83 void updateFocus(bool focused, blink::WebFocusType focus_type) override; |
| 85 void updateVisibility(bool visible) override; | 84 void updateVisibility(bool visible) override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // these so that we can re-initialize the plugin if we need to. | 213 // these so that we can re-initialize the plugin if we need to. |
| 215 std::vector<std::string> arg_names_; | 214 std::vector<std::string> arg_names_; |
| 216 std::vector<std::string> arg_values_; | 215 std::vector<std::string> arg_values_; |
| 217 | 216 |
| 218 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 217 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 219 }; | 218 }; |
| 220 | 219 |
| 221 } // namespace content | 220 } // namespace content |
| 222 | 221 |
| 223 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 222 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |