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

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

Issue 63145: Copy text selection from renderer to browser every time it changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 13391)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -789,7 +789,6 @@
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFeedList, OnMsgUpdateFeedList)
IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest)
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged)
- IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectionText, OnMsgSetSelectionText)
IPC_MESSAGE_HANDLER(ViewHostMsg_PasteFromSelectionClipboard,
OnMsgPasteFromSelectionClipboard)
// Have the super handle all other messages.
@@ -1116,16 +1115,11 @@
view()->SetTooltipText(tooltip_text);
}
-void RenderViewHost::OnMsgSelectionChanged() {
+void RenderViewHost::OnMsgSelectionChanged(const std::string& text) {
if (view())
- view()->SelectionChanged();
+ view()->SelectionChanged(text);
}
-void RenderViewHost::OnMsgSetSelectionText(const std::string& text) {
- if (view())
- view()->SetSelectionText(text);
-}
-
void RenderViewHost::OnMsgPasteFromSelectionClipboard() {
if (view())
view()->PasteFromSelectionClipboard();

Powered by Google App Engine
This is Rietveld 408576698