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_WEBVIEW_PLUGIN_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ |
6 #define WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ | 6 #define WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 virtual NPObject* scriptableObject() { return NULL; } | 65 virtual NPObject* scriptableObject() { return NULL; } |
66 | 66 |
67 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 67 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
68 | 68 |
69 // Coordinates are relative to the containing window. | 69 // Coordinates are relative to the containing window. |
70 virtual void updateGeometry( | 70 virtual void updateGeometry( |
71 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, | 71 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, |
72 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); | 72 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); |
73 | 73 |
| 74 virtual unsigned getBackingTextureId(); |
| 75 |
74 virtual void updateFocus(bool) { } | 76 virtual void updateFocus(bool) { } |
75 virtual void updateVisibility(bool) { } | 77 virtual void updateVisibility(bool) { } |
76 | 78 |
77 virtual bool acceptsInputEvents() { return true; } | 79 virtual bool acceptsInputEvents() { return true; } |
78 virtual bool handleInputEvent(const WebKit::WebInputEvent& event, | 80 virtual bool handleInputEvent(const WebKit::WebInputEvent& event, |
79 WebKit::WebCursorInfo& cursor_info); | 81 WebKit::WebCursorInfo& cursor_info); |
80 | 82 |
81 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); | 83 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); |
82 virtual void didReceiveData(const char* data, int data_length); | 84 virtual void didReceiveData(const char* data, int data_length); |
83 virtual void didFinishLoading(); | 85 virtual void didFinishLoading(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 WebKit::WebView* web_view_; | 123 WebKit::WebView* web_view_; |
122 gfx::Rect rect_; | 124 gfx::Rect rect_; |
123 | 125 |
124 WebKit::WebURLResponse response_; | 126 WebKit::WebURLResponse response_; |
125 std::list<std::string> data_; | 127 std::list<std::string> data_; |
126 bool finished_loading_; | 128 bool finished_loading_; |
127 scoped_ptr<WebKit::WebURLError> error_; | 129 scoped_ptr<WebKit::WebURLError> error_; |
128 }; | 130 }; |
129 | 131 |
130 #endif // WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ | 132 #endif // WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ |
OLD | NEW |