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 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 } | 2359 } |
2360 | 2360 |
2361 void RenderFrameHostImpl::SetFocusedFrame() { | 2361 void RenderFrameHostImpl::SetFocusedFrame() { |
2362 Send(new FrameMsg_SetFocusedFrame(routing_id_)); | 2362 Send(new FrameMsg_SetFocusedFrame(routing_id_)); |
2363 } | 2363 } |
2364 | 2364 |
2365 void RenderFrameHostImpl::ClearFocusedFrame() { | 2365 void RenderFrameHostImpl::ClearFocusedFrame() { |
2366 Send(new FrameMsg_ClearFocusedFrame(routing_id_)); | 2366 Send(new FrameMsg_ClearFocusedFrame(routing_id_)); |
2367 } | 2367 } |
2368 | 2368 |
2369 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | |
2370 size_t after) { | |
2371 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | |
2372 } | |
2373 | |
2374 void RenderFrameHostImpl::JavaScriptDialogClosed( | 2369 void RenderFrameHostImpl::JavaScriptDialogClosed( |
2375 IPC::Message* reply_msg, | 2370 IPC::Message* reply_msg, |
2376 bool success, | 2371 bool success, |
2377 const base::string16& user_input, | 2372 const base::string16& user_input, |
2378 bool dialog_was_suppressed) { | 2373 bool dialog_was_suppressed) { |
2379 GetProcess()->SetIgnoreInputEvents(false); | 2374 GetProcess()->SetIgnoreInputEvents(false); |
2380 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); | 2375 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); |
2381 | 2376 |
2382 // If we are executing as part of (before)unload event handling, we don't | 2377 // If we are executing as part of (before)unload event handling, we don't |
2383 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to | 2378 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3055 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3050 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
3056 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3051 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
3057 return web_bluetooth_service_.get(); | 3052 return web_bluetooth_service_.get(); |
3058 } | 3053 } |
3059 | 3054 |
3060 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3055 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
3061 web_bluetooth_service_.reset(); | 3056 web_bluetooth_service_.reset(); |
3062 } | 3057 } |
3063 | 3058 |
3064 } // namespace content | 3059 } // namespace content |
OLD | NEW |