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

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

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Update TextSelection for non-user initiated events Created 3 years, 7 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 66e549f010161c11e45898c4d49abe7bd1451209..7c5a74835cb32c6418dc6b0003554134095ebe94 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
@@ -119,9 +119,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