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, |