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

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

Issue 395007: Move Mac to using renderer spellchecker. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: ui test fix Created 11 years, 1 month 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/common/notification_type.h ('k') | chrome/common/spellcheck_common.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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // |amount_sent| bytes of data requested by 826 // |amount_sent| bytes of data requested by
827 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream. 827 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream.
828 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData, 828 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData,
829 int /* socket_id */, 829 int /* socket_id */,
830 int /* amount_sent */) 830 int /* amount_sent */)
831 831
832 // The Socket Stream is closed. 832 // The Socket Stream is closed.
833 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed, 833 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed,
834 int /* socket_id */) 834 int /* socket_id */)
835 835
836 #if defined(SPELLCHECKER_IN_RENDERER)
837 // SpellChecker messages. 836 // SpellChecker messages.
838 837
839 // Passes some initialization params to the renderer's spellchecker. This can 838 // Passes some initialization params to the renderer's spellchecker. This can
840 // be called directly after startup or in (async) response to a 839 // be called directly after startup or in (async) response to a
841 // RequestDictionary ViewHost message. 840 // RequestDictionary ViewHost message.
842 IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init, 841 IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init,
843 IPC::PlatformFileForTransit /* bdict_file */, 842 IPC::PlatformFileForTransit /* bdict_file */,
844 std::vector<std::string> /* custom_dict_words */, 843 std::vector<std::string> /* custom_dict_words */,
845 std::string /* language */, 844 std::string /* language */,
846 bool /* auto spell correct */) 845 bool /* auto spell correct */)
847 846
848 // A word has been added to the custom dictionary; update the local custom 847 // A word has been added to the custom dictionary; update the local custom
849 // word list. 848 // word list.
850 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded, 849 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded,
851 std::string /* word */) 850 std::string /* word */)
852 851
853 // Toggle the auto spell correct functionality. 852 // Toggle the auto spell correct functionality.
854 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect, 853 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
855 bool /* enable */) 854 bool /* enable */)
856 #endif
857 855
858 IPC_END_MESSAGES(View) 856 IPC_END_MESSAGES(View)
859 857
860 858
861 //----------------------------------------------------------------------------- 859 //-----------------------------------------------------------------------------
862 // TabContents messages 860 // TabContents messages
863 // These are messages sent from the renderer to the browser process. 861 // These are messages sent from the renderer to the browser process.
864 862
865 IPC_BEGIN_MESSAGES(ViewHost) 863 IPC_BEGIN_MESSAGES(ViewHost)
866 // Sent by the renderer when it is creating a new window. The browser creates 864 // Sent by the renderer when it is creating a new window. The browser creates
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 int /* the tag */) 1121 int /* the tag */)
1124 1122
1125 // Tells the browser to display or not display the SpellingPanel 1123 // Tells the browser to display or not display the SpellingPanel
1126 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, 1124 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel,
1127 bool /* if true, then show it, otherwise hide it*/) 1125 bool /* if true, then show it, otherwise hide it*/)
1128 1126
1129 // Tells the browser to update the spelling panel with the given word. 1127 // Tells the browser to update the spelling panel with the given word.
1130 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, 1128 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord,
1131 string16 /* the word to update the panel with */) 1129 string16 /* the word to update the panel with */)
1132 1130
1133 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetAutoCorrectWord,
1134 string16 /* word to check */,
1135 int /* tag for the document containg the word */,
1136 string16 /* autocorrected word */)
1137
1138 // Initiate a download based on user actions like 'ALT+click'. 1131 // Initiate a download based on user actions like 'ALT+click'.
1139 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, 1132 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl,
1140 GURL /* url */, 1133 GURL /* url */,
1141 GURL /* referrer */) 1134 GURL /* referrer */)
1142 1135
1143 // Used to go to the session history entry at the given offset (ie, -1 will 1136 // Used to go to the session history entry at the given offset (ie, -1 will
1144 // return the "back" item). 1137 // return the "back" item).
1145 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, 1138 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1146 int /* offset (from current) of history item to get */) 1139 int /* offset (from current) of history item to get */)
1147 1140
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 2023
2031 // Asks the browser process to generate a keypair for grabbing a client 2024 // Asks the browser process to generate a keypair for grabbing a client
2032 // certificate from a CA (<keygen> tag), and returns the signed public 2025 // certificate from a CA (<keygen> tag), and returns the signed public
2033 // key and challenge string. 2026 // key and challenge string.
2034 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, 2027 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen,
2035 uint32 /* key size index */, 2028 uint32 /* key size index */,
2036 std::string /* challenge string */, 2029 std::string /* challenge string */,
2037 GURL /* URL of requestor */, 2030 GURL /* URL of requestor */,
2038 std::string /* signed public key and challenge */) 2031 std::string /* signed public key and challenge */)
2039 2032
2040 #if defined(SPELLCHECKER_IN_RENDERER)
2041 // The renderer has tried to spell check a word, but couldn't because no 2033 // The renderer has tried to spell check a word, but couldn't because no
2042 // dictionary was available to load. Request that the browser find an 2034 // dictionary was available to load. Request that the browser find an
2043 // appropriate dictionary and return it. 2035 // appropriate dictionary and return it.
2044 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) 2036 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary)
2045 #endif 2037
2038 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_SpellChecker_PlatformCheckSpelling,
2039 string16 /* word */,
2040 int /* document tag */,
2041 bool /* correct */)
2042
2043 IPC_SYNC_MESSAGE_CONTROL1_1(
2044 ViewHostMsg_SpellChecker_PlatformFillSuggestionList,
2045 string16 /* word */,
2046 std::vector<string16> /* suggestions */)
2046 2047
2047 IPC_END_MESSAGES(ViewHost) 2048 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/notification_type.h ('k') | chrome/common/spellcheck_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698