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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest.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/frame_host/render_widget_host_view_guest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_guest.cc b/content/browser/frame_host/render_widget_host_view_guest.cc
index fc720a7e09f1fbc141ce44bb2c8e9d606b533e34..5a73ce44f17c8e9e340cccdef8bccb88f214eaa1 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest.cc
@@ -411,12 +411,13 @@ void RenderWidgetHostViewGuest::ImeCompositionRangeChanged(
void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text,
size_t offset,
- const gfx::Range& range) {
+ const gfx::Range& range,
+ bool user_initiated) {
RenderWidgetHostViewBase* view = should_forward_text_selection_
? GetOwnerRenderWidgetHostView()
: platform_view_.get();
if (view)
- view->SelectionChanged(text, offset, range);
+ view->SelectionChanged(text, offset, range, user_initiated);
}
void RenderWidgetHostViewGuest::SelectionBoundsChanged(

Powered by Google App Engine
This is Rietveld 408576698