| 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 "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 WebElement RenderFrameImpl::GetFocusedElement() { | 2406 WebElement RenderFrameImpl::GetFocusedElement() { |
| 2407 WebDocument doc = frame_->document(); | 2407 WebDocument doc = frame_->document(); |
| 2408 if (!doc.isNull()) | 2408 if (!doc.isNull()) |
| 2409 return doc.focusedElement(); | 2409 return doc.focusedElement(); |
| 2410 | 2410 |
| 2411 return WebElement(); | 2411 return WebElement(); |
| 2412 } | 2412 } |
| 2413 | 2413 |
| 2414 void RenderFrameImpl::didStartLoading() { | 2414 void RenderFrameImpl::didStartLoading(bool to_different_document) { |
| 2415 Send(new FrameHostMsg_DidStartLoading(routing_id_)); | 2415 Send(new FrameHostMsg_DidStartLoading(routing_id_, to_different_document)); |
| 2416 } | 2416 } |
| 2417 | 2417 |
| 2418 void RenderFrameImpl::didStopLoading() { | 2418 void RenderFrameImpl::didStopLoading() { |
| 2419 Send(new FrameHostMsg_DidStopLoading(routing_id_)); | 2419 Send(new FrameHostMsg_DidStopLoading(routing_id_)); |
| 2420 } | 2420 } |
| 2421 | 2421 |
| 2422 WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation( | 2422 WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation( |
| 2423 RenderFrame* render_frame, | 2423 RenderFrame* render_frame, |
| 2424 WebFrame* frame, | 2424 WebFrame* frame, |
| 2425 WebDataSource::ExtraData* extraData, | 2425 WebDataSource::ExtraData* extraData, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2671 policy == blink::WebNavigationPolicyNewForegroundTab || | 2671 policy == blink::WebNavigationPolicyNewForegroundTab || |
| 2672 policy == blink::WebNavigationPolicyNewWindow || | 2672 policy == blink::WebNavigationPolicyNewWindow || |
| 2673 policy == blink::WebNavigationPolicyNewPopup) { | 2673 policy == blink::WebNavigationPolicyNewPopup) { |
| 2674 WebUserGestureIndicator::consumeUserGesture(); | 2674 WebUserGestureIndicator::consumeUserGesture(); |
| 2675 } | 2675 } |
| 2676 | 2676 |
| 2677 Send(new FrameHostMsg_OpenURL(routing_id_, params)); | 2677 Send(new FrameHostMsg_OpenURL(routing_id_, params)); |
| 2678 } | 2678 } |
| 2679 | 2679 |
| 2680 } // namespace content | 2680 } // namespace content |
| OLD | NEW |