summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-31 22:38:44 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-31 22:38:44 +0000
commitcbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc (patch)
treeaf91ba96d5f2170bba3f63fbbe8726dbaf3a2c41 /chrome/common
parent9ee73628f9d8ec2998b6060805dac0efd825af44 (diff)
downloadchromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.zip
chromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.tar.gz
chromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.tar.bz2
Revert 37674 - Hooking the UI part to the translate feature.
Review URL: http://codereview.chromium.org/549217 TBR=jcampan@chromium.org Review URL: http://codereview.chromium.org/555195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc4
-rw-r--r--chrome/common/chrome_switches.h1
-rw-r--r--chrome/common/notification_type.h8
-rw-r--r--chrome/common/render_messages_internal.h6
4 files changed, 6 insertions, 13 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 85739da..574752a 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -31,6 +31,10 @@ const char kApp[] = "app";
// automation-related messages on IPC channel with the given ID.
const char kAutomationClientChannelID[] = "automation-channel";
+// Makes Chrome translate any page loaded which is not in the locale Chrome
+// is running in.
+const char kAutoPageTranslate[] = "auto-translate";
+
// Enables the bookmark menu.
const char kBookmarkMenu[] = "bookmark-menu";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 69db6fa..4f8d4d6 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -24,6 +24,7 @@ extern const char kAllowSandboxDebugging[];
extern const char kAlwaysEnableDevTools[];
extern const char kApp[];
extern const char kAutomationClientChannelID[];
+extern const char kAutoPageTranslate[];
extern const char kBookmarkMenu[];
extern const char kBrowserAssertTest[];
extern const char kBrowserCrashTest[];
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h
index 9e336e0..f05482f 100644
--- a/chrome/common/notification_type.h
+++ b/chrome/common/notification_type.h
@@ -225,15 +225,9 @@ class NotificationType {
// Sent when the language (English, French...) for a page has been detected.
// The details Details<std::string> contain the ISO 639-1 language code and
- // the source is Source<TabContents>.
+ // the source is Source<RenderViewHost>.
TAB_LANGUAGE_DETERMINED,
- // Sent when a page has been translated. The source is the tab for that page
- // (Source<TabContents>) and the details are the language the page was
- // originally in and the language it was translated to
- // (std::pair<std::string, std::string>).
- PAGE_TRANSLATED,
-
// Sent after the renderer returns a snapshot of tab contents.
TAB_SNAPSHOT_TAKEN,
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index b7ad8d4..55414a7 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1989,12 +1989,6 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined,
std::string /* the language */)
- // Notifies the browser that a page has been translated.
- IPC_MESSAGE_ROUTED3(ViewHostMsg_PageTranslated,
- int, /* page id */
- std::string /* the original language */,
- std::string /* the translated language */)
-
//---------------------------------------------------------------------------
// Socket Stream messages:
// These are messages from the SocketStreamHandle to the browser.