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

Unified Diff: chrome/common/render_messages_internal.h

Issue 552216: This CL makes the TranslationService class send the text to be translated to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698