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

Unified Diff: content/common/view_messages.h

Issue 10820062: [Mac]: Enable speech sub-menu under the edit menu and pipe it through to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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: 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.

Powered by Google App Engine
This is Rietveld 408576698