Index: content/common/input_messages.h |
diff --git a/content/common/input_messages.h b/content/common/input_messages.h |
index 914440d6967bf1f8232a744606a836ec42a403f2..97f8c57fc462e662a383a6481767b012a2bc2d80 100644 |
--- a/content/common/input_messages.h |
+++ b/content/common/input_messages.h |
@@ -155,11 +155,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, 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 or in |
+// glyphs. Do 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, |