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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a different method to handle "\n" node Created 4 years, 5 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 59e559efda3a82ae4f9bd4064bc772b1dd3b3809..c1aaa422a9563a7be4982c63e5aff88b9be6d73a 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -255,6 +255,8 @@ public:
virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
// 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.
+ virtual void deleteSurroundingText(int before, int after) = 0;
// Spell-checking support -------------------------------------------------
virtual void replaceMisspelledRange(const WebString&) = 0;

Powered by Google App Engine
This is Rietveld 408576698