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

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

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Created 3 years, 8 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_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 8631b0cba3ece9b0d71a2ec2b9cbe876ce0593f7..4b4889f2849d25e3284db9466c5aec59c2453ecc 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1521,9 +1521,11 @@ const NativeWebKeyboardEvent*
void RenderWidgetHostImpl::SelectionChanged(const base::string16& text,
uint32_t offset,
- const gfx::Range& range) {
+ const gfx::Range& range,
+ bool user_initiated) {
if (view_)
- view_->SelectionChanged(text, static_cast<size_t>(offset), range);
+ view_->SelectionChanged(text, static_cast<size_t>(offset), range,
+ user_initiated);
nasko 2017/05/04 16:10:24 Add {} to the if statement, as its body now spans
Peter Varga 2017/05/04 16:33:45 Acknowledged.
}
void RenderWidgetHostImpl::OnSelectionBoundsChanged(

Powered by Google App Engine
This is Rietveld 408576698