Index: third_party/WebKit/public/web/WebLocalFrame.h |
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
index f050d490dd9197213ed04c824bd90ff9fcd62161..8253889d7160f6d1980d8b08720cd379ab41eff5 100644 |
--- a/third_party/WebKit/public/web/WebLocalFrame.h |
+++ b/third_party/WebKit/public/web/WebLocalFrame.h |
@@ -316,8 +316,14 @@ class WebLocalFrame : public WebFrame { |
// Replaces the selection with the input string. |
virtual void replaceSelection(const WebString&) = 0; |
// 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. |
virtual void deleteSurroundingText(int before, int after) = 0; |
+ // A variant of deleteSurroundingText(int, int). Major differences are: |
+ // 1. The lengths are supplied in code points, not in Java chars or in glyphs. |
+ // 2. This method does nothing if there are one or more invalid surrogate |
+ // pairs in the requested range. |
+ virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0; |
// Spell-checking support ------------------------------------------------- |
virtual void replaceMisspelledRange(const WebString&) = 0; |