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

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

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Suppress superfluous non-user initiated text selection events Created 3 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/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 ba036911289ac2b2169e82c21750cb4d584a1697..b9920f9e7cedd4a5ccf552af28f598dbe3a3d6cd 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