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 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 | 2290 |
2291 void RenderFrameHostImpl::SetFocusedFrame() { | 2291 void RenderFrameHostImpl::SetFocusedFrame() { |
2292 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2292 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2293 } | 2293 } |
2294 | 2294 |
2295 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2295 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2296 size_t after) { | 2296 size_t after) { |
2297 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2297 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2298 } | 2298 } |
2299 | 2299 |
| 2300 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2301 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2302 } |
| 2303 |
2300 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2304 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2301 IPC::Message* reply_msg, | 2305 IPC::Message* reply_msg, |
2302 bool success, | 2306 bool success, |
2303 const base::string16& user_input, | 2307 const base::string16& user_input, |
2304 bool dialog_was_suppressed) { | 2308 bool dialog_was_suppressed) { |
2305 GetProcess()->SetIgnoreInputEvents(false); | 2309 GetProcess()->SetIgnoreInputEvents(false); |
2306 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2310 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2307 | 2311 |
2308 // If we are executing as part of (before)unload event handling, we don't | 2312 // If we are executing as part of (before)unload event handling, we don't |
2309 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2313 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2978 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2975 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2979 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2976 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2980 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2977 } | 2981 } |
2978 | 2982 |
2979 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2983 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2980 web_bluetooth_service_.reset(); | 2984 web_bluetooth_service_.reset(); |
2981 } | 2985 } |
2982 | 2986 |
2983 } // namespace content | 2987 } // namespace content |
OLD | NEW |