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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2479 void RenderViewImpl::willClose(WebFrame* frame) { | 2479 void RenderViewImpl::willClose(WebFrame* frame) { |
2480 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); | 2480 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); |
2481 } | 2481 } |
2482 | 2482 |
2483 void RenderViewImpl::loadURLExternally( | 2483 void RenderViewImpl::loadURLExternally( |
2484 WebFrame* frame, const WebURLRequest& request, | 2484 WebFrame* frame, const WebURLRequest& request, |
2485 WebNavigationPolicy policy) { | 2485 WebNavigationPolicy policy) { |
2486 loadURLExternally(frame, request, policy, WebString()); | 2486 loadURLExternally(frame, request, policy, WebString()); |
2487 } | 2487 } |
2488 | 2488 |
| 2489 void RenderViewImpl::Repaint(const gfx::Size& size) { |
| 2490 OnMsgRepaint(size); |
| 2491 } |
| 2492 |
2489 void RenderViewImpl::loadURLExternally( | 2493 void RenderViewImpl::loadURLExternally( |
2490 WebFrame* frame, const WebURLRequest& request, | 2494 WebFrame* frame, const WebURLRequest& request, |
2491 WebNavigationPolicy policy, | 2495 WebNavigationPolicy policy, |
2492 const WebString& suggested_name) { | 2496 const WebString& suggested_name) { |
2493 Referrer referrer( | 2497 Referrer referrer( |
2494 GURL(request.httpHeaderField(WebString::fromUTF8("Referer"))), | 2498 GURL(request.httpHeaderField(WebString::fromUTF8("Referer"))), |
2495 GetReferrerPolicyFromRequest(frame, request)); | 2499 GetReferrerPolicyFromRequest(frame, request)); |
2496 if (policy == WebKit::WebNavigationPolicyDownload) { | 2500 if (policy == WebKit::WebNavigationPolicyDownload) { |
2497 Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer, | 2501 Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer, |
2498 suggested_name)); | 2502 suggested_name)); |
(...skipping 3270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5769 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5773 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5770 return !!RenderThreadImpl::current()->compositor_thread(); | 5774 return !!RenderThreadImpl::current()->compositor_thread(); |
5771 } | 5775 } |
5772 | 5776 |
5773 void RenderViewImpl::OnJavaBridgeInit() { | 5777 void RenderViewImpl::OnJavaBridgeInit() { |
5774 DCHECK(!java_bridge_dispatcher_); | 5778 DCHECK(!java_bridge_dispatcher_); |
5775 #if defined(ENABLE_JAVA_BRIDGE) | 5779 #if defined(ENABLE_JAVA_BRIDGE) |
5776 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5780 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5777 #endif | 5781 #endif |
5778 } | 5782 } |
OLD | NEW |