summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 22:30:26 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 22:30:26 +0000
commit2e417c8257e0007ef3fb6929a507268d0450bd4a (patch)
tree756cbb26e6225ef36abddb2cf59a73800587dcbd /chrome/common/render_messages_internal.h
parent0cac83aa1536b90dd25db93808c4371c675e4cf2 (diff)
downloadchromium_src-2e417c8257e0007ef3fb6929a507268d0450bd4a.zip
chromium_src-2e417c8257e0007ef3fb6929a507268d0450bd4a.tar.gz
chromium_src-2e417c8257e0007ef3fb6929a507268d0450bd4a.tar.bz2
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
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h13
1 files changed, 12 insertions, 1 deletions
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