From 2e417c8257e0007ef3fb6929a507268d0450bd4a Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 2 Apr 2009 22:30:26 +0000 Subject: Copy selection to x clipboard. Review URL: http://codereview.chromium.org/55052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13044 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'chrome/common/render_messages_internal.h') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 5e664c3..cc296a6 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -108,6 +108,10 @@ IPC_BEGIN_MESSAGES(View) // node. IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) + // Ask the renderer to send us the selection text via the SetSelectionText + // message. + IPC_MESSAGE_ROUTED0(ViewMsg_RequestSelectionText) + // Tells the renderer to perform the specified navigation, interrupting any // existing navigation. IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) @@ -900,6 +904,13 @@ IPC_BEGIN_MESSAGES(ViewHost) IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, std::wstring /* tooltip text string */) + // Notification that the text selection has changed. + IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectionChanged) + + // Send the current text selection. + IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectionText, + std::string /* currently selected text */) + // Asks the browser to display the file chooser. The result is returned in a // ViewHost_RunFileChooserResponse message. IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, @@ -1063,7 +1074,7 @@ IPC_BEGIN_MESSAGES(ViewHost) IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, FilePath /* plugin_path */) - // Dsiplays a JavaScript out-of-memory message in the infobar. + // Displays a JavaScript out-of-memory message in the infobar. IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) // Displays a box to confirm that the user wants to navigate away from the -- cgit v1.1