Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address yosin@'s review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 2469
2470 void RenderFrameHostImpl::ClearFocusedFrame() { 2470 void RenderFrameHostImpl::ClearFocusedFrame() {
2471 Send(new FrameMsg_ClearFocusedFrame(routing_id_)); 2471 Send(new FrameMsg_ClearFocusedFrame(routing_id_));
2472 } 2472 }
2473 2473
2474 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2474 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2475 size_t after) { 2475 size_t after) {
2476 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2476 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2477 } 2477 }
2478 2478
2479 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) {
2480 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2481 }
2482
2479 void RenderFrameHostImpl::JavaScriptDialogClosed( 2483 void RenderFrameHostImpl::JavaScriptDialogClosed(
2480 IPC::Message* reply_msg, 2484 IPC::Message* reply_msg,
2481 bool success, 2485 bool success,
2482 const base::string16& user_input, 2486 const base::string16& user_input,
2483 bool dialog_was_suppressed) { 2487 bool dialog_was_suppressed) {
2484 GetProcess()->SetIgnoreInputEvents(false); 2488 GetProcess()->SetIgnoreInputEvents(false);
2485 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); 2489 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK();
2486 2490
2487 // If we are executing as part of (before)unload event handling, we don't 2491 // If we are executing as part of (before)unload event handling, we don't
2488 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to 2492 // 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
3153 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3157 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3154 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3158 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3155 return web_bluetooth_service_.get(); 3159 return web_bluetooth_service_.get();
3156 } 3160 }
3157 3161
3158 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3162 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3159 web_bluetooth_service_.reset(); 3163 web_bluetooth_service_.reset();
3160 } 3164 }
3161 3165
3162 } // namespace content 3166 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698