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

Unified Diff: third_party/WebKit/public/web/WebPlugin.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
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebPlugin.h
diff --git a/third_party/WebKit/public/web/WebPlugin.h b/third_party/WebKit/public/web/WebPlugin.h
index e805e94d7b926aa827ba0b08c9b0d4150b5f9f65..14619d092191bd0e31d0496aa4d18dca09db7088 100644
--- a/third_party/WebKit/public/web/WebPlugin.h
+++ b/third_party/WebKit/public/web/WebPlugin.h
@@ -195,8 +195,14 @@ class WebPlugin {
// before and after the selection or caret.
virtual void extendSelectionAndDelete(int before, int after) {}
// 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) {}
+ // Deletes text before and after the current cursor position, excluding the
+ // selection. The lengths are supplied in code points, not in UTF-16 Code Unit
+ // or in glyphs. Do nothing if there are one or more invalid surrogate pairs
+ // in the requested range.
+ virtual void deleteSurroundingTextInCodePoints(int before, int after) {}
// If the given position is over a link, returns the absolute url.
// Otherwise an empty url is returned.
virtual WebURL linkAtPosition(const WebPoint& position) const {
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698