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 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2468 | 2468 |
2469 void RenderFrameHostImpl::ClearFocusedFrame() { | 2469 void RenderFrameHostImpl::ClearFocusedFrame() { |
2470 Send(new FrameMsg_ClearFocusedFrame(routing_id_)); | 2470 Send(new FrameMsg_ClearFocusedFrame(routing_id_)); |
2471 } | 2471 } |
2472 | 2472 |
2473 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2473 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2474 size_t after) { | 2474 size_t after) { |
2475 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2475 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2476 } | 2476 } |
2477 | 2477 |
| 2478 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2479 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2480 } |
| 2481 |
2478 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2482 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2479 IPC::Message* reply_msg, | 2483 IPC::Message* reply_msg, |
2480 bool success, | 2484 bool success, |
2481 const base::string16& user_input, | 2485 const base::string16& user_input, |
2482 bool dialog_was_suppressed) { | 2486 bool dialog_was_suppressed) { |
2483 GetProcess()->SetIgnoreInputEvents(false); | 2487 GetProcess()->SetIgnoreInputEvents(false); |
2484 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2488 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2485 | 2489 |
2486 // If we are executing as part of (before)unload event handling, we don't | 2490 // If we are executing as part of (before)unload event handling, we don't |
2487 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2491 // 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... |
3152 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3156 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
3153 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3157 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
3154 return web_bluetooth_service_.get(); | 3158 return web_bluetooth_service_.get(); |
3155 } | 3159 } |
3156 | 3160 |
3157 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3161 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
3158 web_bluetooth_service_.reset(); | 3162 web_bluetooth_service_.reset(); |
3159 } | 3163 } |
3160 | 3164 |
3161 } // namespace content | 3165 } // namespace content |
OLD | NEW |