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

Unified Diff: content/common/input_messages.h

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add some DCHECK Created 3 years, 10 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/common/input_messages.h
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index 7221f95d3d31c18cd2cfd6877c938d8ccab62dbe..cc60af8acd358640c0cfc600fb686b0cde8ed36e 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -163,11 +163,20 @@ IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete,
int /* after */)
// Deletes text before and after the current cursor position, excluding the
-// selection.
+// selection. The lengths are supplied in Java chars (UTF-16 Code Unit), not in
+// code points or in glyphs.
IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText,
int /* before */,
int /* after */)
+// Deletes text before and after the current cursor position, excluding the
+// selection. The lengths are supplied in code points, not in Java chars (UTF-16
+// Code Unit) or in glyphs. Do nothing if there are one or more invalid
dcheng 2017/02/25 07:37:03 Nit: Do nothing => Does nothing
yabinh 2017/02/27 02:04:33 Done.
+// surrogate pairs in the requested range
+IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingTextInCodePoints,
+ int /* before */,
+ int /* after */)
+
// Selects between the given start and end offsets in the currently focused
// editable field.
IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets,

Powered by Google App Engine
This is Rietveld 408576698