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 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2150 | 2150 |
2151 void RenderFrameHostImpl::SetFocusedFrame() { | 2151 void RenderFrameHostImpl::SetFocusedFrame() { |
2152 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2152 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2153 } | 2153 } |
2154 | 2154 |
2155 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 2155 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
2156 size_t after) { | 2156 size_t after) { |
2157 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 2157 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
2158 } | 2158 } |
2159 | 2159 |
| 2160 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) { |
| 2161 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); |
| 2162 } |
| 2163 |
2160 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2164 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2161 IPC::Message* reply_msg, | 2165 IPC::Message* reply_msg, |
2162 bool success, | 2166 bool success, |
2163 const base::string16& user_input, | 2167 const base::string16& user_input, |
2164 bool dialog_was_suppressed) { | 2168 bool dialog_was_suppressed) { |
2165 GetProcess()->SetIgnoreInputEvents(false); | 2169 GetProcess()->SetIgnoreInputEvents(false); |
2166 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2170 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2167 | 2171 |
2168 // If we are executing as part of (before)unload event handling, we don't | 2172 // If we are executing as part of (before)unload event handling, we don't |
2169 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2173 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2773 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2770 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2774 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2771 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2775 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2772 } | 2776 } |
2773 | 2777 |
2774 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2778 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2775 web_bluetooth_service_.reset(); | 2779 web_bluetooth_service_.reset(); |
2776 } | 2780 } |
2777 | 2781 |
2778 } // namespace content | 2782 } // namespace content |
OLD | NEW |