Index: content/common/view_messages.h |
=================================================================== |
--- content/common/view_messages.h (revision 148651) |
+++ content/common/view_messages.h (working copy) |
@@ -979,6 +979,12 @@ |
gfx::Point /* start */, |
gfx::Point /* end */) |
+#if defined(OS_MACOSX) |
+// Requests the renderer to speak the selected text. If text is selected, the |
+// renderer will reply with a ViewHostMsg_SpeakText with the selected text. |
+IPC_MESSAGE_ROUTED0(ViewMsg_SpeakSelection) |
+#endif |
+ |
// Copies the image at location x, y to the clipboard (if there indeed is an |
// image at that location). |
IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
@@ -1838,6 +1844,12 @@ |
string16 /* tooltip text string */, |
WebKit::WebTextDirection /* text direction hint */) |
+#if defined(OS_MACOSX) |
+// Sent in response to ViewMsg_SpeakSelection with the text to be spoken. |
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SpeakText, |
+ string16 /* text */) |
+#endif |
+ |
// Notification that the text selection has changed. |
// Note: The secound parameter is the character based offset of the string16 |
// text in the document. |