Index: chrome/common/render_messages_internal.h |
=================================================================== |
--- chrome/common/render_messages_internal.h (revision 37411) |
+++ chrome/common/render_messages_internal.h (working copy) |
@@ -840,6 +840,15 @@ |
IPC_MESSAGE_ROUTED1(ViewMsg_CustomContextMenuAction, |
unsigned /* action */) |
+ // Tells the renderer to translate the page contents from one language to |
+ // another. |
+ IPC_MESSAGE_ROUTED3(ViewMsg_TranslatePage, |
+ int /* page id */, |
+ std::string, /* BCP 47/RFC 5646 language code the page |
+ is in */ |
+ std::string /* BCP 47/RFC 5646 language code to translate |
+ to */) |
+ |
// Reply to the ViewHostMsg_TranslateText message with the actual translated |
// text chunks. |
IPC_MESSAGE_ROUTED3(ViewMsg_TranslateTextReponse, |