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 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2125 | 2125 |
2126 void RenderFrameHostImpl::SetFocusedFrame() { | 2126 void RenderFrameHostImpl::SetFocusedFrame() { |
2127 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2127 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2128 } | 2128 } |
2129 | 2129 |
2130 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2130 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2131 size_t after) { | 2131 size_t after) { |
2132 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2132 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2133 } | 2133 } |
2134 | 2134 |
| 2135 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { |
| 2136 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2137 } |
| 2138 |
2135 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2139 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2136 IPC::Message* reply_msg, | 2140 IPC::Message* reply_msg, |
2137 bool success, | 2141 bool success, |
2138 const base::string16& user_input, | 2142 const base::string16& user_input, |
2139 bool dialog_was_suppressed) { | 2143 bool dialog_was_suppressed) { |
2140 GetProcess()->SetIgnoreInputEvents(false); | 2144 GetProcess()->SetIgnoreInputEvents(false); |
2141 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2145 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2142 | 2146 |
2143 // If we are executing as part of (before)unload event handling, we don't | 2147 // If we are executing as part of (before)unload event handling, we don't |
2144 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2148 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2735 } | 2739 } |
2736 | 2740 |
2737 void RenderFrameHostImpl::CreateWebBluetoothService( | 2741 void RenderFrameHostImpl::CreateWebBluetoothService( |
2738 blink::mojom::WebBluetoothServiceRequest request) { | 2742 blink::mojom::WebBluetoothServiceRequest request) { |
2739 DCHECK(!web_bluetooth_service_); | 2743 DCHECK(!web_bluetooth_service_); |
2740 web_bluetooth_service_.reset( | 2744 web_bluetooth_service_.reset( |
2741 new WebBluetoothServiceImpl(this, std::move(request))); | 2745 new WebBluetoothServiceImpl(this, std::move(request))); |
2742 } | 2746 } |
2743 | 2747 |
2744 } // namespace content | 2748 } // namespace content |
OLD | NEW |