| 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 is_loading_ = false; | 3080 is_loading_ = false; |
| 3081 else | 3081 else |
| 3082 OnDidStopLoading(); | 3082 OnDidStopLoading(); |
| 3083 } | 3083 } |
| 3084 } | 3084 } |
| 3085 | 3085 |
| 3086 void RenderFrameHostImpl::SuppressFurtherDialogs() { | 3086 void RenderFrameHostImpl::SuppressFurtherDialogs() { |
| 3087 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); | 3087 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); |
| 3088 } | 3088 } |
| 3089 | 3089 |
| 3090 void RenderFrameHostImpl::SetHasReceivedUserGesture() { | |
| 3091 Send(new FrameMsg_SetHasReceivedUserGesture(GetRoutingID())); | |
| 3092 } | |
| 3093 | |
| 3094 void RenderFrameHostImpl::ClearFocusedElement() { | 3090 void RenderFrameHostImpl::ClearFocusedElement() { |
| 3095 has_focused_editable_element_ = false; | 3091 has_focused_editable_element_ = false; |
| 3096 Send(new FrameMsg_ClearFocusedElement(GetRoutingID())); | 3092 Send(new FrameMsg_ClearFocusedElement(GetRoutingID())); |
| 3097 } | 3093 } |
| 3098 | 3094 |
| 3099 bool RenderFrameHostImpl::CanCommitURL(const GURL& url) { | 3095 bool RenderFrameHostImpl::CanCommitURL(const GURL& url) { |
| 3100 // TODO(creis): We should also check for WebUI pages here. Also, when the | 3096 // TODO(creis): We should also check for WebUI pages here. Also, when the |
| 3101 // out-of-process iframes implementation is ready, we should check for | 3097 // out-of-process iframes implementation is ready, we should check for |
| 3102 // cross-site URLs that are not allowed to commit in this process. | 3098 // cross-site URLs that are not allowed to commit in this process. |
| 3103 | 3099 |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3697 } | 3693 } |
| 3698 | 3694 |
| 3699 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( | 3695 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( |
| 3700 const std::string& interface_name, | 3696 const std::string& interface_name, |
| 3701 mojo::ScopedMessagePipeHandle pipe) { | 3697 mojo::ScopedMessagePipeHandle pipe) { |
| 3702 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); | 3698 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); |
| 3703 } | 3699 } |
| 3704 #endif | 3700 #endif |
| 3705 | 3701 |
| 3706 } // namespace content | 3702 } // namespace content |
| OLD | NEW |