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

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: For multi-code text 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 f03c05da0935b7f9b057f8f49fc62d97be49e7c2..68ea86c10d3c0a6e4940612b97626bc6a4010414 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -781,6 +781,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