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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Convert UTF8 to UTF16 Created 3 years, 11 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 86c7d56f0bba86c9b7c03fd2db88fbf07656ae6b..5e6bf0f1947a0c197865e9a933156b441288b293 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -463,9 +463,16 @@ class CONTENT_EXPORT RenderFrameHostImpl
void ExtendSelectionAndDelete(size_t before, size_t after);
// Deletes text before and after the current cursor position, excluding the
- // selection.
+ // selection. The lengths are supplied in Java chars, not in code points or in
+ // glyphs.
void DeleteSurroundingText(size_t before, size_t after);
+ // Deletes text before and after the current cursor position, excluding the
+ // selection. The lengths are supplied in code points, not in Java chars or in
+ // glyphs. Do nothing if there are one or more invalid surrogate pairs in the
+ // requested range.
+ void DeleteSurroundingTextInCodePoints(size_t before, size_t 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