Chromium Code Reviews

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: 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.
Jump to:
View side-by-side diff with in-line comments
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 5817bf9d78d9181f7d23d6b1517c96d67c7a43b1..c26b7a7a26bb129b0a4ac9bc5afa4a771bc7739b 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -429,6 +429,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// 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