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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 | 2152 |
2153 void RenderFrameHostImpl::SetFocusedFrame() { | 2153 void RenderFrameHostImpl::SetFocusedFrame() { |
2154 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2154 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2155 } | 2155 } |
2156 | 2156 |
2157 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2157 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2158 size_t after) { | 2158 size_t after) { |
2159 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2159 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2160 } | 2160 } |
2161 | 2161 |
| 2162 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2163 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2164 } |
| 2165 |
2162 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2166 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2163 IPC::Message* reply_msg, | 2167 IPC::Message* reply_msg, |
2164 bool success, | 2168 bool success, |
2165 const base::string16& user_input, | 2169 const base::string16& user_input, |
2166 bool dialog_was_suppressed) { | 2170 bool dialog_was_suppressed) { |
2167 GetProcess()->SetIgnoreInputEvents(false); | 2171 GetProcess()->SetIgnoreInputEvents(false); |
2168 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2172 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2169 | 2173 |
2170 // If we are executing as part of (before)unload event handling, we don't | 2174 // If we are executing as part of (before)unload event handling, we don't |
2171 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2175 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2771 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2775 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2772 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2776 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2773 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2777 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2774 } | 2778 } |
2775 | 2779 |
2776 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2780 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2777 web_bluetooth_service_.reset(); | 2781 web_bluetooth_service_.reset(); |
2778 } | 2782 } |
2779 | 2783 |
2780 } // namespace content | 2784 } // namespace content |
OLD | NEW |