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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle multi-code text with BackspaceStateMachine::previousPositionOf Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index fa0047918cd349b68e276508f47fecaf46a398e2..3a46a975ae2319f95ecebdff9fe8888440b212da 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -419,6 +419,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// before and after the selection or caret.
void ExtendSelectionAndDelete(size_t before, size_t after);
+ // Deletes text before and after the current cursor position, excluding the
+ // selection.
+ void DeleteSurroundingText(int before, int after);
+
// Notifies the RenderFrame that the JavaScript message that was shown was
// closed by the user.
void JavaScriptDialogClosed(IPC::Message* reply_msg,

Powered by Google App Engine
This is Rietveld 408576698