OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "chrome/renderer/plugins/webview_plugin.h" | 5 #include "chrome/renderer/plugins/webview_plugin.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 delegate_ = NULL; | 107 delegate_ = NULL; |
108 } | 108 } |
109 container_ = NULL; | 109 container_ = NULL; |
110 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 110 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
111 } | 111 } |
112 | 112 |
113 NPObject* WebViewPlugin::scriptableObject() { | 113 NPObject* WebViewPlugin::scriptableObject() { |
114 return NULL; | 114 return NULL; |
115 } | 115 } |
116 | 116 |
117 struct _NPP* WebViewPlugin::pluginNPP() { | |
118 return NULL; | |
119 } | |
120 | |
121 bool WebViewPlugin::getFormValue(WebString& value) { | 117 bool WebViewPlugin::getFormValue(WebString& value) { |
122 return false; | 118 return false; |
123 } | 119 } |
124 | 120 |
125 void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) { | 121 void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) { |
126 gfx::Rect paint_rect = gfx::IntersectRects(rect_, rect); | 122 gfx::Rect paint_rect = gfx::IntersectRects(rect_, rect); |
127 if (paint_rect.IsEmpty()) | 123 if (paint_rect.IsEmpty()) |
128 return; | 124 return; |
129 | 125 |
130 paint_rect.Offset(-rect_.x(), -rect_.y()); | 126 paint_rect.Offset(-rect_.x(), -rect_.y()); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 error.reason = -1; | 236 error.reason = -1; |
241 error.unreachableURL = request.url(); | 237 error.unreachableURL = request.url(); |
242 return error; | 238 return error; |
243 } | 239 } |
244 | 240 |
245 void WebViewPlugin::didReceiveResponse(WebFrame* frame, | 241 void WebViewPlugin::didReceiveResponse(WebFrame* frame, |
246 unsigned identifier, | 242 unsigned identifier, |
247 const WebURLResponse& response) { | 243 const WebURLResponse& response) { |
248 WebFrameClient::didReceiveResponse(frame, identifier, response); | 244 WebFrameClient::didReceiveResponse(frame, identifier, response); |
249 } | 245 } |
OLD | NEW |