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/common/web_preferences.h" | 10 #include "content/public/common/web_preferences.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 void WebViewPlugin::didInvalidateRect(const WebRect& rect) { | 229 void WebViewPlugin::didInvalidateRect(const WebRect& rect) { |
230 if (container_) | 230 if (container_) |
231 container_->invalidateRect(rect); | 231 container_->invalidateRect(rect); |
232 } | 232 } |
233 | 233 |
234 void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) { | 234 void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) { |
235 current_cursor_ = cursor; | 235 current_cursor_ = cursor; |
236 } | 236 } |
237 | 237 |
| 238 void WebViewPlugin::scheduleAnimation() { |
| 239 if (container_) |
| 240 container_->invalidate(); |
| 241 } |
| 242 |
238 void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame) { | 243 void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame) { |
239 if (delegate_) | 244 if (delegate_) |
240 delegate_->BindWebFrame(frame); | 245 delegate_->BindWebFrame(frame); |
241 } | 246 } |
242 | 247 |
243 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, | 248 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, |
244 unsigned identifier, | 249 unsigned identifier, |
245 const WebURLResponse& response) { | 250 const WebURLResponse& response) { |
246 WebFrameClient::didReceiveResponse(frame, identifier, response); | 251 WebFrameClient::didReceiveResponse(frame, identifier, response); |
247 } | 252 } |
OLD | NEW |