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

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: deleteContents doesn’t work well for multiple nodes. 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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 2200
2201 void RenderFrameHostImpl::SetFocusedFrame() { 2201 void RenderFrameHostImpl::SetFocusedFrame() {
2202 Send(new FrameMsg_SetFocusedFrame(routing_id_)); 2202 Send(new FrameMsg_SetFocusedFrame(routing_id_));
2203 } 2203 }
2204 2204
2205 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2205 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2206 size_t after) { 2206 size_t after) {
2207 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2207 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2208 } 2208 }
2209 2209
2210 void RenderFrameHostImpl::DeleteSurroundingText(int before, int after) {
2211 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2212 }
2213
2210 void RenderFrameHostImpl::JavaScriptDialogClosed( 2214 void RenderFrameHostImpl::JavaScriptDialogClosed(
2211 IPC::Message* reply_msg, 2215 IPC::Message* reply_msg,
2212 bool success, 2216 bool success,
2213 const base::string16& user_input, 2217 const base::string16& user_input,
2214 bool dialog_was_suppressed) { 2218 bool dialog_was_suppressed) {
2215 GetProcess()->SetIgnoreInputEvents(false); 2219 GetProcess()->SetIgnoreInputEvents(false);
2216 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK(); 2220 bool is_waiting = is_waiting_for_beforeunload_ack_ || IsWaitingForUnloadACK();
2217 2221
2218 // If we are executing as part of (before)unload event handling, we don't 2222 // If we are executing as part of (before)unload event handling, we don't
2219 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to 2223 // want to use the regular hung_renderer_delay_ms_ if the user has agreed to
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2843 // handler after it's destroyed so it can't run after the RFHI is destroyed. 2847 // handler after it's destroyed so it can't run after the RFHI is destroyed.
2844 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 2848 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
2845 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 2849 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
2846 } 2850 }
2847 2851
2848 void RenderFrameHostImpl::DeleteWebBluetoothService() { 2852 void RenderFrameHostImpl::DeleteWebBluetoothService() {
2849 web_bluetooth_service_.reset(); 2853 web_bluetooth_service_.reset();
2850 } 2854 }
2851 2855
2852 } // namespace content 2856 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698