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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Address dcheng@'s review 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: 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 7f51aa1d49449953e6a18a00f4001a19ff8fb31b..6d1beeed3363daa3d5c7272f51c45cb47efb6448 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -340,8 +340,15 @@ 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 UTF-16 Code Unit, 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 UTF-16 Code Unit 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;
virtual void extractSmartClipData(WebRect rectInViewport,
WebString& clipText,
« no previous file with comments | « third_party/WebKit/Source/web/tests/data/input_field_populated.html ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698