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

Unified Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 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: content/browser/renderer_host/render_widget_host_view_base.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
index ebf64e9cd8cd7c14822820a157b58b28e9f4368e..2dd0b1aaf7444b509ab6e18996f5dfd81c80e8a8 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
@@ -120,9 +120,12 @@ float RenderWidgetHostViewBase::GetBottomControlsHeight() const {
void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
size_t offset,
- const gfx::Range& range) {
- if (GetTextInputManager())
- GetTextInputManager()->SelectionChanged(this, text, offset, range);
+ const gfx::Range& range,
+ bool user_initiated) {
+ if (GetTextInputManager()) {
+ GetTextInputManager()->SelectionChanged(this, text, offset, range,
+ user_initiated);
+ }
}
gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const {

Powered by Google App Engine
This is Rietveld 408576698