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

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 tyrbot failure 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..4279e58f150dde858967ccb59dc5562ed2c94e98 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.
+ void adjustSelectionForBoundary(int& selectionStart,
+ int& selectionEnd,
+ const int textLength) const;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};

Powered by Google App Engine
This is Rietveld 408576698