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_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 PepperWebPluginImpl(PluginModule* module, | 34 PepperWebPluginImpl(PluginModule* module, |
35 const blink::WebPluginParams& params, | 35 const blink::WebPluginParams& params, |
36 RenderFrameImpl* render_frame); | 36 RenderFrameImpl* render_frame); |
37 | 37 |
38 PepperPluginInstanceImpl* instance() { return instance_.get(); } | 38 PepperPluginInstanceImpl* instance() { return instance_.get(); } |
39 | 39 |
40 // blink::WebPlugin implementation. | 40 // blink::WebPlugin implementation. |
41 virtual blink::WebPluginContainer* container() const; | 41 virtual blink::WebPluginContainer* container() const; |
42 virtual bool initialize(blink::WebPluginContainer* container); | 42 virtual bool initialize(blink::WebPluginContainer* container); |
43 virtual void destroy(); | 43 virtual void destroy(); |
44 virtual NPObject* scriptableObject(); | 44 virtual bool getScriptableObject(v8::Isolate* isolate, |
Krzysztof Olczyk
2014/07/31 07:12:57
You will need to update it, as based on suggestion
| |
45 virtual struct _NPP* pluginNPP(); | 45 v8::Local<v8::Object>* object) OVERRIDE; |
46 virtual bool getFormValue(blink::WebString& value); | 46 virtual bool getFormValue(blink::WebString& value); |
47 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); | 47 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); |
48 virtual void updateGeometry( | 48 virtual void updateGeometry( |
49 const blink::WebRect& frame_rect, | 49 const blink::WebRect& frame_rect, |
50 const blink::WebRect& clip_rect, | 50 const blink::WebRect& clip_rect, |
51 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 51 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
52 bool is_visible); | 52 bool is_visible); |
53 virtual void updateFocus(bool focused); | 53 virtual void updateFocus(bool focused); |
54 virtual void updateVisibility(bool visible); | 54 virtual void updateVisibility(bool visible); |
55 virtual bool acceptsInputEvents(); | 55 virtual bool acceptsInputEvents(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 gfx::Rect plugin_rect_; | 99 gfx::Rect plugin_rect_; |
100 PP_Var instance_object_; | 100 PP_Var instance_object_; |
101 blink::WebPluginContainer* container_; | 101 blink::WebPluginContainer* container_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 103 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
107 | 107 |
108 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 108 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
OLD | NEW |