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

Unified Diff: chrome/renderer/render_view.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/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 37411)
+++ chrome/renderer/render_view.h (working copy)
@@ -159,18 +159,22 @@
return host_window_;
}
- int browser_window_id() {
+ int browser_window_id() const {
return browser_window_id_;
}
- ViewType::Type view_type() {
+ ViewType::Type view_type() const {
return view_type_;
}
- PrintWebViewHelper* print_helper() {
+ PrintWebViewHelper* print_helper() const {
return print_helper_.get();
}
+ int page_id() const {
+ return page_id_;
+ }
+
// IPC::Channel::Listener
virtual void OnMessageReceived(const IPC::Message& msg);
@@ -689,6 +693,11 @@
// Execute custom context menu action.
void OnCustomContextMenuAction(unsigned action);
+ // Tells the renderer to translate the page contents.
+ void OnTranslatePage(int page_id,
+ const std::string& source_lang,
+ const std::string& target_lang);
+
// Message that provides the translated text for a request.
void OnTranslateTextResponse(int work_id,
int error_id,

Powered by Google App Engine
This is Rietveld 408576698