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

Unified Diff: chrome/browser/renderer_host/render_view_host.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/browser/renderer_host/render_view_host.h
===================================================================
--- chrome/browser/renderer_host/render_view_host.h (revision 37411)
+++ chrome/browser/renderer_host/render_view_host.h (working copy)
@@ -438,6 +438,12 @@
// Tells the render view that a custom context action has been selected.
void PerformCustomContextMenuAction(unsigned action);
+ // Tells the renderer to translate the current page from one language to
+ // another. If the current page id is not |page_id|, the request is ignored.
+ void TranslatePage(int page_id,
+ const std::string& source_lang,
+ const std::string& target_lang);
+
protected:
// RenderWidgetHost protected overrides.
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,

Powered by Google App Engine
This is Rietveld 408576698