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_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // blink::WebPlugin implementation. | 42 // blink::WebPlugin implementation. |
43 virtual blink::WebPluginContainer* container() const; | 43 virtual blink::WebPluginContainer* container() const; |
44 virtual bool initialize(blink::WebPluginContainer* container); | 44 virtual bool initialize(blink::WebPluginContainer* container); |
45 virtual void destroy(); | 45 virtual void destroy(); |
46 virtual v8::Local<v8::Object> v8ScriptableObject( | 46 virtual v8::Local<v8::Object> v8ScriptableObject( |
47 v8::Isolate* isolate) override; | 47 v8::Isolate* isolate) override; |
48 virtual bool getFormValue(blink::WebString& value); | 48 virtual bool getFormValue(blink::WebString& value); |
49 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); | 49 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); |
50 virtual void updateGeometry( | 50 virtual void updateGeometry( |
51 const blink::WebRect& frame_rect, | 51 const blink::WebRect& window_rect, |
52 const blink::WebRect& clip_rect, | 52 const blink::WebRect& clip_rect, |
| 53 const blink::WebRect& unobscured_rect, |
53 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 54 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
54 bool is_visible); | 55 bool is_visible); |
55 virtual void updateFocus(bool focused, blink::WebFocusType focus_type); | 56 virtual void updateFocus(bool focused, blink::WebFocusType focus_type); |
56 virtual void updateVisibility(bool visible); | 57 virtual void updateVisibility(bool visible); |
57 virtual bool acceptsInputEvents(); | 58 virtual bool acceptsInputEvents(); |
58 virtual bool handleInputEvent(const blink::WebInputEvent& event, | 59 virtual bool handleInputEvent(const blink::WebInputEvent& event, |
59 blink::WebCursorInfo& cursor_info); | 60 blink::WebCursorInfo& cursor_info); |
60 virtual void didReceiveResponse(const blink::WebURLResponse& response); | 61 virtual void didReceiveResponse(const blink::WebURLResponse& response); |
61 virtual void didReceiveData(const char* data, int data_length); | 62 virtual void didReceiveData(const char* data, int data_length); |
62 virtual void didFinishLoading(); | 63 virtual void didFinishLoading(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 gfx::Rect plugin_rect_; | 105 gfx::Rect plugin_rect_; |
105 PP_Var instance_object_; | 106 PP_Var instance_object_; |
106 blink::WebPluginContainer* container_; | 107 blink::WebPluginContainer* container_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 109 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace content | 112 } // namespace content |
112 | 113 |
113 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 114 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
OLD | NEW |