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 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2269 | 2269 |
2270 void RenderFrameHostImpl::SetFocusedFrame() { | 2270 void RenderFrameHostImpl::SetFocusedFrame() { |
2271 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2271 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2272 } | 2272 } |
2273 | 2273 |
2274 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2274 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2275 size_t after) { | 2275 size_t after) { |
2276 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2276 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2277 } | 2277 } |
2278 | 2278 |
| 2279 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2280 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2281 } |
| 2282 |
2279 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2283 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2280 IPC::Message* reply_msg, | 2284 IPC::Message* reply_msg, |
2281 bool success, | 2285 bool success, |
2282 const base::string16& user_input, | 2286 const base::string16& user_input, |
2283 bool dialog_was_suppressed) { | 2287 bool dialog_was_suppressed) { |
2284 GetProcess()->SetIgnoreInputEvents(false); | 2288 GetProcess()->SetIgnoreInputEvents(false); |
2285 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2289 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2286 | 2290 |
2287 // If we are executing as part of (before)unload event handling, we don't | 2291 // If we are executing as part of (before)unload event handling, we don't |
2288 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2292 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2940 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2944 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2941 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2945 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2942 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2946 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2943 } | 2947 } |
2944 | 2948 |
2945 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2949 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2946 web_bluetooth_service_.reset(); | 2950 web_bluetooth_service_.reset(); |
2947 } | 2951 } |
2948 | 2952 |
2949 } // namespace content | 2953 } // namespace content |
OLD | NEW |