OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 std::string /* word */) | 833 std::string /* word */) |
834 | 834 |
835 // Toggle the auto spell correct functionality. | 835 // Toggle the auto spell correct functionality. |
836 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect, | 836 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect, |
837 bool /* enable */) | 837 bool /* enable */) |
838 | 838 |
839 // Executes custom context menu action that was provided from WebKit. | 839 // Executes custom context menu action that was provided from WebKit. |
840 IPC_MESSAGE_ROUTED1(ViewMsg_CustomContextMenuAction, | 840 IPC_MESSAGE_ROUTED1(ViewMsg_CustomContextMenuAction, |
841 unsigned /* action */) | 841 unsigned /* action */) |
842 | 842 |
| 843 // Tells the renderer to translate the page contents from one language to |
| 844 // another. |
| 845 IPC_MESSAGE_ROUTED3(ViewMsg_TranslatePage, |
| 846 int /* page id */, |
| 847 std::string, /* BCP 47/RFC 5646 language code the page |
| 848 is in */ |
| 849 std::string /* BCP 47/RFC 5646 language code to translate |
| 850 to */) |
| 851 |
843 // Reply to the ViewHostMsg_TranslateText message with the actual translated | 852 // Reply to the ViewHostMsg_TranslateText message with the actual translated |
844 // text chunks. | 853 // text chunks. |
845 IPC_MESSAGE_ROUTED3(ViewMsg_TranslateTextReponse, | 854 IPC_MESSAGE_ROUTED3(ViewMsg_TranslateTextReponse, |
846 int /* id of translation work */, | 855 int /* id of translation work */, |
847 int /* error id of translation work */, | 856 int /* error id of translation work */, |
848 std::vector<string16> /* the translated text chunks */) | 857 std::vector<string16> /* the translated text chunks */) |
849 | 858 |
850 IPC_END_MESSAGES(View) | 859 IPC_END_MESSAGES(View) |
851 | 860 |
852 | 861 |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2019 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2028 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2020 string16 /* word */, | 2029 string16 /* word */, |
2021 std::vector<string16> /* suggestions */) | 2030 std::vector<string16> /* suggestions */) |
2022 | 2031 |
2023 // Request for text translation. | 2032 // Request for text translation. |
2024 // Used when translating a page from one language to another. | 2033 // Used when translating a page from one language to another. |
2025 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, | 2034 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, |
2026 ViewHostMsg_TranslateTextParam) | 2035 ViewHostMsg_TranslateTextParam) |
2027 | 2036 |
2028 IPC_END_MESSAGES(ViewHost) | 2037 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |