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

Unified Diff: chrome/browser/ui/webui/translate_internals/translate_internals_handler.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/ui/webui/translate_internals/translate_internals_handler.h
diff --git a/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h b/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h
index e600fb53cd516043c56318c23b210678d4d1fb70..28c6a932393005b3c90011490c027f016c758d06 100644
--- a/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h
+++ b/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h
@@ -16,9 +16,11 @@
#include "content/public/browser/web_ui_message_handler.h"
#include "content/public/common/webplugininfo.h"
+namespace translate {
struct LanguageDetectionDetails;
struct TranslateErrorDetails;
struct TranslateEventDetails;
+}
namespace base {
class DictionaryValue;
@@ -48,10 +50,11 @@ class TranslateInternalsHandler : public content::WebUIMessageHandler,
const content::NotificationDetails& details) OVERRIDE;
// Callback for translate errors.
- void OnTranslateError(const TranslateErrorDetails& details);
+ void OnTranslateError(const translate::TranslateErrorDetails& details);
// Callback for translate events.
- virtual void OnTranslateEvent(const TranslateEventDetails& details);
+ virtual void OnTranslateEvent(
+ const translate::TranslateEventDetails& details);
// Handles the Javascript message 'removePrefItem'. This message is sent
// when UI requests to remove an item in the preference.
@@ -73,11 +76,12 @@ class TranslateInternalsHandler : public content::WebUIMessageHandler,
void SendSupportedLanguagesToJs();
// Subscription for translate events coming from the translate language list.
- scoped_ptr<TranslateLanguageList::EventCallbackList::Subscription>
+ scoped_ptr<translate::TranslateLanguageList::EventCallbackList::Subscription>
event_subscription_;
// Subscription for translate errors coming from the translate manager.
- scoped_ptr<TranslateManager::TranslateErrorCallbackList::Subscription>
+ scoped_ptr<
+ translate::TranslateManager::TranslateErrorCallbackList::Subscription>
error_subscription_;
content::NotificationRegistrar notification_registrar_;

Powered by Google App Engine
This is Rietveld 408576698