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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // renderer to apply the specified operation to the current selection. 177 // renderer to apply the specified operation to the current selection.
178 IPC_MESSAGE_ROUTED0(ViewMsg_Undo) 178 IPC_MESSAGE_ROUTED0(ViewMsg_Undo)
179 IPC_MESSAGE_ROUTED0(ViewMsg_Redo) 179 IPC_MESSAGE_ROUTED0(ViewMsg_Redo)
180 IPC_MESSAGE_ROUTED0(ViewMsg_Cut) 180 IPC_MESSAGE_ROUTED0(ViewMsg_Cut)
181 IPC_MESSAGE_ROUTED0(ViewMsg_Copy) 181 IPC_MESSAGE_ROUTED0(ViewMsg_Copy)
182 IPC_MESSAGE_ROUTED0(ViewMsg_Paste) 182 IPC_MESSAGE_ROUTED0(ViewMsg_Paste)
183 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, std::wstring) 183 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, std::wstring)
184 IPC_MESSAGE_ROUTED0(ViewMsg_ToggleSpellCheck) 184 IPC_MESSAGE_ROUTED0(ViewMsg_ToggleSpellCheck)
185 IPC_MESSAGE_ROUTED0(ViewMsg_Delete) 185 IPC_MESSAGE_ROUTED0(ViewMsg_Delete)
186 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll) 186 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll)
187 IPC_MESSAGE_ROUTED1(ViewMsg_ToggleSpellPanel, bool)
188
189 // This message tells the renderer to advance to the next misspelling. It is
190 // sent when the user clicks the "Find Next" button on the spelling panel.
191 IPC_MESSAGE_ROUTED0(ViewMsg_AdvanceToNextMisspelling)
187 192
188 // Copies the image at location x, y to the clipboard (if there indeed is an 193 // Copies the image at location x, y to the clipboard (if there indeed is an
189 // image at that location). 194 // image at that location).
190 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, 195 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
191 int /* x */, 196 int /* x */,
192 int /* y */) 197 int /* y */)
193 198
194 // History system notification that the visited link database has been 199 // History system notification that the visited link database has been
195 // replaced. It has one SharedMemoryHandle argument consisting of the table 200 // replaced. It has one SharedMemoryHandle argument consisting of the table
196 // handle. This handle is valid in the context of the renderer 201 // handle. This handle is valid in the context of the renderer
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 // no plugin, an empty string is returned. 931 // no plugin, an empty string is returned.
927 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_GetPluginPath, 932 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_GetPluginPath,
928 GURL /* url */, 933 GURL /* url */,
929 GURL /* policy_url */, 934 GURL /* policy_url */,
930 std::string /* mime_type */, 935 std::string /* mime_type */,
931 std::string /* clsid */, 936 std::string /* clsid */,
932 FilePath /* filename */, 937 FilePath /* filename */,
933 std::string /* actual mime type for url */) 938 std::string /* actual mime type for url */)
934 939
935 // Requests spellcheck for a word. 940 // Requests spellcheck for a word.
936 IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck, 941 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
937 std::wstring /* word to check */, 942 std::wstring /* word to check */,
943 int /* document tag*/,
938 int /* misspell location */, 944 int /* misspell location */,
939 int /* misspell length */) 945 int /* misspell length */)
940 946
941 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetAutoCorrectWord, 947 // Asks the browser for a unique document tag.
948 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag,
949 int /* the tag */)
950
951
952 // This message tells the spellchecker that a document, identified by an int
953 // tag, has been closed and all of the ignored words for that document can be
954 // forgotten.
955 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentWithTagClosed,
956 int /* the tag */)
957
958 // Tells the browser to display or not display the SpellingPanel
959 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel,
960 bool /* if true, then show it, otherwise hide it*/)
961
962 // Tells the browser to update the spelling panel with the given word.
963 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord,
964 std::wstring /* the word to update the panel with */)
965
966 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetAutoCorrectWord,
942 std::wstring /* word to check */, 967 std::wstring /* word to check */,
968 int /* tag for the document containg the word */,
943 std::wstring /* autocorrected word */) 969 std::wstring /* autocorrected word */)
944 970
945 // Initiate a download based on user actions like 'ALT+click'. 971 // Initiate a download based on user actions like 'ALT+click'.
946 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, 972 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl,
947 GURL /* url */, 973 GURL /* url */,
948 GURL /* referrer */) 974 GURL /* referrer */)
949 975
950 // Used to go to the session history entry at the given offset (ie, -1 will 976 // Used to go to the session history entry at the given offset (ie, -1 will
951 // return the "back" item). 977 // return the "back" item).
952 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, 978 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, 1731 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes,
1706 FilePath /* the name of the file */, 1732 FilePath /* the name of the file */,
1707 int32 /* a unique message ID */) 1733 int32 /* a unique message ID */)
1708 1734
1709 // Asks the browser process to return the size of a DB file 1735 // Asks the browser process to return the size of a DB file
1710 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, 1736 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize,
1711 FilePath /* the name of the file */, 1737 FilePath /* the name of the file */,
1712 int32 /* a unique message ID */) 1738 int32 /* a unique message ID */)
1713 1739
1714 IPC_END_MESSAGES(ViewHost) 1740 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698