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

Unified Diff: components/translate/content/common/translate_messages.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 years, 5 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: components/translate/content/common/translate_messages.h
diff --git a/components/translate/content/common/translate_messages.h b/components/translate/content/common/translate_messages.h
index 4fbcf29b4899ddd83e64a5740a2d05f01ca2744e..d8186118aa77b62a75686800893f2d9ae4f18b8a 100644
--- a/components/translate/content/common/translate_messages.h
+++ b/components/translate/content/common/translate_messages.h
@@ -12,9 +12,9 @@
#define IPC_MESSAGE_START TranslateMsgStart
-IPC_ENUM_TRAITS(TranslateErrors::Type)
+IPC_ENUM_TRAITS(translate::TranslateErrors::Type)
-IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
+IPC_STRUCT_TRAITS_BEGIN(translate::LanguageDetectionDetails)
IPC_STRUCT_TRAITS_MEMBER(time)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(content_language)
@@ -53,12 +53,14 @@ IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_TranslateAssignedSequenceNumber,
int /* page_seq_no */)
// Notification that the language for the tab has been determined.
-IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
- LanguageDetectionDetails /* details about lang detection */,
- bool /* whether the page needs translation */)
+IPC_MESSAGE_ROUTED2(
+ ChromeViewHostMsg_TranslateLanguageDetermined,
+ translate::LanguageDetectionDetails /* details about lang detection */,
+ bool /* whether the page needs translation */)
// Notifies the browser that a page has been translated.
-IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageTranslated,
- std::string /* the original language */,
- std::string /* the translated language */,
- TranslateErrors::Type /* the error type if available */)
+IPC_MESSAGE_ROUTED3(
+ ChromeViewHostMsg_PageTranslated,
+ std::string /* the original language */,
+ std::string /* the translated language */,
+ translate::TranslateErrors::Type /* the error type if available */)
« no previous file with comments | « components/translate/content/browser/content_translate_driver.cc ('k') | components/translate/core/browser/language_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698