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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.h

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ReplaceSelectionCommand to delete Created 4 years, 8 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/Source/core/editing/InputMethodController.h
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.h b/third_party/WebKit/Source/core/editing/InputMethodController.h
index d28ff7a3389403c90dd01ac7f174016262841ba7..8249d00d20ea159ae83577b6b1b243870987094e 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -31,6 +31,7 @@
#include "core/editing/CompositionUnderline.h"
#include "core/editing/EphemeralRange.h"
#include "core/editing/PlainTextRange.h"
+#include "core/editing/Position.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
@@ -78,6 +79,7 @@ public:
// Returns true if setting selection to specified offsets, otherwise false.
bool setEditableSelectionOffsets(const PlainTextRange&);
void extendSelectionAndDelete(int before, int after);
+ void deleteSurroundingText(size_t before, size_t after);
private:
class SelectionOffsetsScope {

Powered by Google App Engine
This is Rietveld 408576698