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

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

Powered by Google App Engine
This is Rietveld 408576698