Chromium Code Reviews| Index: chrome/common/render_messages_internal.h |
| diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h |
| index 3d66251f4ad7492274eb2ee428439b953d56c6fd..652378899b08c243f10c5df92d3381f386610906 100644 |
| --- a/chrome/common/render_messages_internal.h |
| +++ b/chrome/common/render_messages_internal.h |
| @@ -892,6 +892,20 @@ IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionConfirmed, |
| string16 /* text */, |
| int /* plugin_id */) |
| + |
| +// Tells the renderer to send back the character index for a point. |
| +IPC_MESSAGE_ROUTED1(ViewMsg_CharacterIndexForPoint, |
| + gfx::Point) |
| + |
| +// Tells the renderer to send back the rectangle for a given character range. |
| +IPC_MESSAGE_ROUTED2(ViewMsg_FirstRectForCharacterRange, |
| + uint /* location */, |
| + uint /* length */) |
| + |
| +// Tells the renderer to send back the text fragment in a given range. |
| +IPC_MESSAGE_ROUTED2(ViewMsg_StringForRange, |
| + uint /* location */, |
| + uint /* length */) |
| #endif |
| // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
| @@ -1653,6 +1667,12 @@ IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont, |
| FontDescriptor /* font to load */, |
| uint32 /* buffer size */, |
| base::SharedMemoryHandle /* font data */) |
| + |
| +IPC_MESSAGE_ROUTED1(ViewHostMsg_GotCharacterIndexForPoint, |
| + uint) |
|
jam
2011/01/21 18:51:07
nit: convention is to have each parameter on a sep
Robert Sesek
2011/01/21 23:40:07
Done.
|
| +IPC_MESSAGE_ROUTED1(ViewHostMsg_GotFirstRectForRange, gfx::Rect) |
| +IPC_MESSAGE_ROUTED1(ViewHostMsg_GotStringForRange, |
| + string16) |
| #endif |
| #if defined(OS_WIN) |
| @@ -1675,8 +1695,10 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
| WebKit::WebTextDirection /* text direction hint */) |
| // Notification that the text selection has changed. |
| -IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, |
| - std::string /* currently selected text */) |
| +IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
| + std::string /* currently selected text */, |
| + int /* selection range start */, |
| + int /* selection range end */) |
| // Asks the browser to display the file chooser. The result is returned in a |
| // ViewHost_RunFileChooserResponse message. |