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

Side by Side 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, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, 972 IPC_MESSAGE_ROUTED1(ViewMsg_Replace,
973 string16) 973 string16)
974 IPC_MESSAGE_ROUTED0(ViewMsg_Delete) 974 IPC_MESSAGE_ROUTED0(ViewMsg_Delete)
975 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll) 975 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll)
976 976
977 // Requests the renderer to select the region between two points. 977 // Requests the renderer to select the region between two points.
978 IPC_MESSAGE_ROUTED2(ViewMsg_SelectRange, 978 IPC_MESSAGE_ROUTED2(ViewMsg_SelectRange,
979 gfx::Point /* start */, 979 gfx::Point /* start */,
980 gfx::Point /* end */) 980 gfx::Point /* end */)
981 981
982 #if defined(OS_MACOSX)
983 // Requests the renderer to speak the selected text. If text is selected, the
984 // renderer will reply with a ViewHostMsg_SpeakText with the selected text.
985 IPC_MESSAGE_ROUTED0(ViewMsg_SpeakSelection)
986 #endif
987
982 // Copies the image at location x, y to the clipboard (if there indeed is an 988 // Copies the image at location x, y to the clipboard (if there indeed is an
983 // image at that location). 989 // image at that location).
984 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, 990 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
985 int /* x */, 991 int /* x */,
986 int /* y */) 992 int /* y */)
987 993
988 // Tells the renderer to perform the given action on the media player 994 // Tells the renderer to perform the given action on the media player
989 // located at the given point. 995 // located at the given point.
990 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, 996 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
991 gfx::Point, /* location */ 997 gfx::Point, /* location */
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 uint32 /* buffer size */, 1837 uint32 /* buffer size */,
1832 base::SharedMemoryHandle /* font data */, 1838 base::SharedMemoryHandle /* font data */,
1833 uint32 /* font id */) 1839 uint32 /* font id */)
1834 #endif 1840 #endif
1835 1841
1836 // Send the tooltip text for the current mouse position to the browser. 1842 // Send the tooltip text for the current mouse position to the browser.
1837 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, 1843 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
1838 string16 /* tooltip text string */, 1844 string16 /* tooltip text string */,
1839 WebKit::WebTextDirection /* text direction hint */) 1845 WebKit::WebTextDirection /* text direction hint */)
1840 1846
1847 #if defined(OS_MACOSX)
1848 // Sent in response to ViewMsg_SpeakSelection with the text to be spoken.
1849 IPC_MESSAGE_ROUTED1(ViewHostMsg_SpeakText,
1850 string16 /* text */)
1851 #endif
1852
1841 // Notification that the text selection has changed. 1853 // Notification that the text selection has changed.
1842 // Note: The secound parameter is the character based offset of the string16 1854 // Note: The secound parameter is the character based offset of the string16
1843 // text in the document. 1855 // text in the document.
1844 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1856 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1845 string16 /* text covers the selection range */, 1857 string16 /* text covers the selection range */,
1846 size_t /* the offset of the text in the document */, 1858 size_t /* the offset of the text in the document */,
1847 ui::Range /* selection range in the document */) 1859 ui::Range /* selection range in the document */)
1848 1860
1849 // Notification that the selection bounds have changed. 1861 // Notification that the selection bounds have changed.
1850 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, 1862 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 // (according to the value of is_hung). The browser can give the user the 2179 // (according to the value of is_hung). The browser can give the user the
2168 // option of killing the plugin. 2180 // option of killing the plugin.
2169 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2181 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2170 int /* plugin_child_id */, 2182 int /* plugin_child_id */,
2171 FilePath /* path */, 2183 FilePath /* path */,
2172 bool /* is_hung */) 2184 bool /* is_hung */)
2173 2185
2174 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2186 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2175 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2187 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2176 int /* orientation */) 2188 int /* orientation */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698