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

Unified Diff: content/renderer/render_widget.h

Issue 2020973002: Reland: Fix setComposingText with empty text when newCursorPosition != 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 605b92ef67f443970001d930882b54f883883913..8008ff5b55017f009abe1cca221a5dcf3a3a69db 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -772,6 +772,11 @@ class CONTENT_EXPORT RenderWidget
// Indicates whether this widget has focus.
bool has_focus_;
+ // When selection exceeds the boundary, it should stay at the boundary.
+ std::pair<int, int> adjustSelectionForBoundary(int selectionStart,
+ int selectionEnd,
+ const int textLength) const;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};

Powered by Google App Engine
This is Rietveld 408576698