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

Side by Side Diff: chrome/common/render_messages_internal.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) 104 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost)
105 105
106 // TODO(darin): figure out how this meshes with RestoreFocus 106 // TODO(darin): figure out how this meshes with RestoreFocus
107 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) 107 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */)
108 108
109 // Tells the renderer to focus the first (last if reverse is true) focusable 109 // Tells the renderer to focus the first (last if reverse is true) focusable
110 // node. 110 // node.
111 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) 111 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */)
112 112
113 // Ask the renderer to send us the selection text via the SetSelectionText
114 // message.
115 IPC_MESSAGE_ROUTED0(ViewMsg_RequestSelectionText)
116
117 // Tells the renderer to perform the specified navigation, interrupting any 113 // Tells the renderer to perform the specified navigation, interrupting any
118 // existing navigation. 114 // existing navigation.
119 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) 115 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params)
120 116
121 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) 117 IPC_MESSAGE_ROUTED0(ViewMsg_Stop)
122 118
123 // Tells the renderer to load the specified html text and report a navigation 119 // Tells the renderer to load the specified html text and report a navigation
124 // to display_url if passing true for new navigation. 120 // to display_url if passing true for new navigation.
125 IPC_MESSAGE_ROUTED4(ViewMsg_LoadAlternateHTMLText, 121 IPC_MESSAGE_ROUTED4(ViewMsg_LoadAlternateHTMLText,
126 std::string /* utf8 html text */, 122 std::string /* utf8 html text */,
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 // the view id. 916 // the view id.
921 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, 917 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo,
922 gfx::NativeViewId /* native view id */, 918 gfx::NativeViewId /* native view id */,
923 WebKit::WebScreenInfo /* results */) 919 WebKit::WebScreenInfo /* results */)
924 920
925 // Send the tooltip text for the current mouse position to the browser. 921 // Send the tooltip text for the current mouse position to the browser.
926 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, 922 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText,
927 std::wstring /* tooltip text string */) 923 std::wstring /* tooltip text string */)
928 924
929 // Notification that the text selection has changed. 925 // Notification that the text selection has changed.
930 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectionChanged) 926 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged,
931
932 // Send the current text selection.
933 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectionText,
934 std::string /* currently selected text */) 927 std::string /* currently selected text */)
935 928
936 // Asks the browser to display the file chooser. The result is returned in a 929 // Asks the browser to display the file chooser. The result is returned in a
937 // ViewHost_RunFileChooserResponse message. 930 // ViewHost_RunFileChooserResponse message.
938 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, 931 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser,
939 bool /* multiple_files */, 932 bool /* multiple_files */,
940 std::wstring /* title */, 933 std::wstring /* title */,
941 std::wstring /* Default file name */, 934 std::wstring /* Default file name */,
942 std::wstring /* filter */) 935 std::wstring /* filter */)
943 936
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, 1329 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension,
1337 std::string /* extension_id */, 1330 std::string /* extension_id */,
1338 int /* port_id */) 1331 int /* port_id */)
1339 1332
1340 // Send a message to an extension process. The handle is the value returned 1333 // Send a message to an extension process. The handle is the value returned
1341 // by ViewHostMsg_OpenChannelToExtension. 1334 // by ViewHostMsg_OpenChannelToExtension.
1342 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, 1335 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage,
1343 int /* port_id */, 1336 int /* port_id */,
1344 std::string /* message */) 1337 std::string /* message */)
1345 IPC_END_MESSAGES(ViewHost) 1338 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698