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 CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ |
6 #define CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ | 6 #define CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void ReplayReceivedData(WebKit::WebPlugin* plugin); | 67 void ReplayReceivedData(WebKit::WebPlugin* plugin); |
68 | 68 |
69 void RestoreTitleText(); | 69 void RestoreTitleText(); |
70 | 70 |
71 // WebPlugin methods: | 71 // WebPlugin methods: |
72 virtual WebKit::WebPluginContainer* container() const; | 72 virtual WebKit::WebPluginContainer* container() const; |
73 virtual bool initialize(WebKit::WebPluginContainer*); | 73 virtual bool initialize(WebKit::WebPluginContainer*); |
74 virtual void destroy(); | 74 virtual void destroy(); |
75 | 75 |
76 virtual NPObject* scriptableObject(); | 76 virtual NPObject* scriptableObject(); |
77 virtual struct _NPP* pluginNPP(); | |
78 | |
79 virtual bool getFormValue(WebKit::WebString& value); | 77 virtual bool getFormValue(WebKit::WebString& value); |
80 | 78 |
81 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 79 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
82 | 80 |
83 // Coordinates are relative to the containing window. | 81 // Coordinates are relative to the containing window. |
84 virtual void updateGeometry( | 82 virtual void updateGeometry( |
85 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, | 83 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, |
86 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); | 84 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); |
87 | 85 |
88 virtual void updateFocus(bool) {} | 86 virtual void updateFocus(bool) {} |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 gfx::Rect rect_; | 149 gfx::Rect rect_; |
152 | 150 |
153 WebKit::WebURLResponse response_; | 151 WebKit::WebURLResponse response_; |
154 std::list<std::string> data_; | 152 std::list<std::string> data_; |
155 bool finished_loading_; | 153 bool finished_loading_; |
156 scoped_ptr<WebKit::WebURLError> error_; | 154 scoped_ptr<WebKit::WebURLError> error_; |
157 WebKit::WebString old_title_; | 155 WebKit::WebString old_title_; |
158 }; | 156 }; |
159 | 157 |
160 #endif // CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ | 158 #endif // CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ |
OLD | NEW |