| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 NPObject* scriptableObject() override; | 75 NPObject* scriptableObject() override; |
| 76 struct _NPP* pluginNPP() override; | 76 struct _NPP* pluginNPP() override; |
| 77 bool getFormValue(blink::WebString& value) override; | 77 bool getFormValue(blink::WebString& value) override; |
| 78 void layoutIfNeeded() override; | 78 void updateAllLifecyclePhases() override; |
| 79 void paint(blink::WebCanvas* canvas, | 79 void paint(blink::WebCanvas* canvas, |
| 80 const blink::WebRect& paint_rect) override; | 80 const blink::WebRect& paint_rect) override; |
| 81 void updateGeometry(const blink::WebRect& window_rect, | 81 void updateGeometry(const blink::WebRect& window_rect, |
| 82 const blink::WebRect& clip_rect, | 82 const blink::WebRect& clip_rect, |
| 83 const blink::WebRect& unobscured_rect, | 83 const blink::WebRect& unobscured_rect, |
| 84 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 84 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 85 bool is_visible) override; | 85 bool is_visible) override; |
| 86 void updateFocus(bool focused, blink::WebFocusType focus_type) override; | 86 void updateFocus(bool focused, blink::WebFocusType focus_type) override; |
| 87 void updateVisibility(bool visible) override; | 87 void updateVisibility(bool visible) override; |
| 88 bool acceptsInputEvents() override; | 88 bool acceptsInputEvents() override; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // these so that we can re-initialize the plugin if we need to. | 233 // these so that we can re-initialize the plugin if we need to. |
| 234 std::vector<std::string> arg_names_; | 234 std::vector<std::string> arg_names_; |
| 235 std::vector<std::string> arg_values_; | 235 std::vector<std::string> arg_values_; |
| 236 | 236 |
| 237 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 237 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace content | 240 } // namespace content |
| 241 | 241 |
| 242 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 242 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |