OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/plugins/renderer/webview_plugin.h" | 5 #include "components/plugins/renderer/webview_plugin.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "content/public/renderer/web_preferences.h" | 10 #include "content/public/renderer/web_preferences.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 void WebViewPlugin::didInvalidateRect(const WebRect& rect) { | 226 void WebViewPlugin::didInvalidateRect(const WebRect& rect) { |
227 if (container_) | 227 if (container_) |
228 container_->invalidateRect(rect); | 228 container_->invalidateRect(rect); |
229 } | 229 } |
230 | 230 |
231 void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) { | 231 void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) { |
232 current_cursor_ = cursor; | 232 current_cursor_ = cursor; |
233 } | 233 } |
234 | 234 |
235 void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame, int world_id) { | 235 void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame) { |
236 if (delegate_) | 236 if (delegate_) |
237 delegate_->BindWebFrame(frame); | 237 delegate_->BindWebFrame(frame); |
238 } | 238 } |
239 | 239 |
240 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, | 240 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, |
241 unsigned identifier, | 241 unsigned identifier, |
242 const WebURLResponse& response) { | 242 const WebURLResponse& response) { |
243 WebFrameClient::didReceiveResponse(frame, identifier, response); | 243 WebFrameClient::didReceiveResponse(frame, identifier, response); |
244 } | 244 } |
OLD | NEW |