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

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

Issue 6356004: If the user selects text in the current tab, and types CTRL-F,... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/ui/find_bar/find_bar_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 71618)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -1313,6 +1313,7 @@
}
void RenderViewHost::OnMsgSelectionChanged(const std::string& text) {
+ selected_text_ = text;
if (view())
view()->SelectionChanged(text);
}
@@ -1820,6 +1821,10 @@
}
}
+std::string RenderViewHost::selected_text() {
+ return selected_text_;
+}
+
void RenderViewHost::JavaScriptStressTestControl(int cmd, int param) {
Send(new ViewMsg_JavaScriptStressTestControl(routing_id(), cmd, param));
}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/ui/find_bar/find_bar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698