| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // WebKit::WebPlugin implementation. | 39 // WebKit::WebPlugin implementation. |
| 40 virtual bool initialize(WebKit::WebPluginContainer* container); | 40 virtual bool initialize(WebKit::WebPluginContainer* container); |
| 41 virtual void destroy(); | 41 virtual void destroy(); |
| 42 virtual NPObject* scriptableObject(); | 42 virtual NPObject* scriptableObject(); |
| 43 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 43 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 44 virtual void updateGeometry( | 44 virtual void updateGeometry( |
| 45 const WebKit::WebRect& frame_rect, | 45 const WebKit::WebRect& frame_rect, |
| 46 const WebKit::WebRect& clip_rect, | 46 const WebKit::WebRect& clip_rect, |
| 47 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 47 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
| 48 bool is_visible); | 48 bool is_visible); |
| 49 virtual unsigned getBackingTextureId(); |
| 49 virtual void updateFocus(bool focused); | 50 virtual void updateFocus(bool focused); |
| 50 virtual void updateVisibility(bool visible); | 51 virtual void updateVisibility(bool visible); |
| 51 virtual bool acceptsInputEvents(); | 52 virtual bool acceptsInputEvents(); |
| 52 virtual bool handleInputEvent(const WebKit::WebInputEvent& event, | 53 virtual bool handleInputEvent(const WebKit::WebInputEvent& event, |
| 53 WebKit::WebCursorInfo& cursor_info); | 54 WebKit::WebCursorInfo& cursor_info); |
| 54 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); | 55 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); |
| 55 virtual void didReceiveData(const char* data, int data_length); | 56 virtual void didReceiveData(const char* data, int data_length); |
| 56 virtual void didFinishLoading(); | 57 virtual void didFinishLoading(); |
| 57 virtual void didFailLoading(const WebKit::WebURLError&); | 58 virtual void didFailLoading(const WebKit::WebURLError&); |
| 58 virtual void didFinishLoadingFrameRequest(const WebKit::WebURL& url, | 59 virtual void didFinishLoadingFrameRequest(const WebKit::WebURL& url, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 85 scoped_refptr<PluginInstance> instance_; | 86 scoped_refptr<PluginInstance> instance_; |
| 86 scoped_refptr<URLLoader> document_loader_; | 87 scoped_refptr<URLLoader> document_loader_; |
| 87 gfx::Rect plugin_rect_; | 88 gfx::Rect plugin_rect_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 90 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace pepper | 93 } // namespace pepper |
| 93 | 94 |
| 94 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 95 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |