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

Unified Diff: chrome/common/render_messages_internal.h

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Plumb selection rannge with ViewHostMsg_SelectionChanged Created 9 years, 11 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/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.

Powered by Google App Engine
This is Rietveld 408576698