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 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 | 2283 |
2284 void RenderFrameHostImpl::SetFocusedFrame() { | 2284 void RenderFrameHostImpl::SetFocusedFrame() { |
2285 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2285 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2286 } | 2286 } |
2287 | 2287 |
2288 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2288 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2289 size_t after) { | 2289 size_t after) { |
2290 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2290 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2291 } | 2291 } |
2292 | 2292 |
| 2293 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2294 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2295 } |
| 2296 |
2293 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2297 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2294 IPC::Message* reply_msg, | 2298 IPC::Message* reply_msg, |
2295 bool success, | 2299 bool success, |
2296 const base::string16& user_input, | 2300 const base::string16& user_input, |
2297 bool dialog_was_suppressed) { | 2301 bool dialog_was_suppressed) { |
2298 GetProcess()->SetIgnoreInputEvents(false); | 2302 GetProcess()->SetIgnoreInputEvents(false); |
2299 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2303 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2300 | 2304 |
2301 // If we are executing as part of (before)unload event handling, we don't | 2305 // If we are executing as part of (before)unload event handling, we don't |
2302 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2306 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2958 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2962 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2959 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2963 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2960 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2964 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2961 } | 2965 } |
2962 | 2966 |
2963 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2967 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2964 web_bluetooth_service_.reset(); | 2968 web_bluetooth_service_.reset(); |
2965 } | 2969 } |
2966 | 2970 |
2967 } // namespace content | 2971 } // namespace content |
OLD | NEW |