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

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

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit test Created 9 years, 10 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_view_host.cc
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 58d3768f172feb7b8176c1d0200e0e3a057e698b..ad7d7c16bff4172e13ebb9bed08c1a66c7b96bbf 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -1207,9 +1207,11 @@ void RenderViewHost::OnMsgSetTooltipText(
view()->SetTooltipText(wrapped_tooltip_text);
}
-void RenderViewHost::OnMsgSelectionChanged(const std::string& text) {
+void RenderViewHost::OnMsgSelectionChanged(const std::string& text,
+ int start,
+ int end) {
if (view())
- view()->SelectionChanged(text);
+ view()->SelectionChanged(text, start, end);
}
void RenderViewHost::OnMsgRunJavaScriptMessage(

Powered by Google App Engine
This is Rietveld 408576698