Index: content/common/input_messages.h |
diff --git a/content/common/input_messages.h b/content/common/input_messages.h |
index 7221f95d3d31c18cd2cfd6877c938d8ccab62dbe..7deff3c8b81dfb9c6ef860eb5651b47f6a3f8df0 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. Does nothing if there are one or more invalid |
+// 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, |