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

Side by Side Diff: components/translate/core/browser/translate_ui_delegate.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "components/translate/core/common/translate_errors.h" 15 #include "components/translate/core/common/translate_errors.h"
16 16
17 namespace translate {
17 class LanguageState; 18 class LanguageState;
droger 2014/07/09 07:52:44 Nit: Same here.
nshaik 2014/07/09 08:56:52 Done.
18 class TranslateClient; 19 class TranslateClient;
19 class TranslateDriver; 20 class TranslateDriver;
20 class TranslateManager; 21 class TranslateManager;
21 class TranslatePrefs; 22 class TranslatePrefs;
23 }
24
25 namespace translate {
22 26
23 // The TranslateUIDelegate is a generic delegate for UI which offers Translate 27 // The TranslateUIDelegate is a generic delegate for UI which offers Translate
24 // feature to the user. 28 // feature to the user.
25 class TranslateUIDelegate { 29 class TranslateUIDelegate {
26 public: 30 public:
27 enum { NO_INDEX = -1, }; 31 enum { NO_INDEX = -1, };
28 32
29 TranslateUIDelegate(const base::WeakPtr<TranslateManager>& translate_manager, 33 TranslateUIDelegate(const base::WeakPtr<TranslateManager>& translate_manager,
30 const std::string& original_language, 34 const std::string& original_language,
31 const std::string& target_language); 35 const std::string& target_language);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 125
122 // The index for language the page should be translated to. 126 // The index for language the page should be translated to.
123 size_t target_language_index_; 127 size_t target_language_index_;
124 128
125 // The translation related preferences. 129 // The translation related preferences.
126 scoped_ptr<TranslatePrefs> prefs_; 130 scoped_ptr<TranslatePrefs> prefs_;
127 131
128 DISALLOW_COPY_AND_ASSIGN(TranslateUIDelegate); 132 DISALLOW_COPY_AND_ASSIGN(TranslateUIDelegate);
129 }; 133 };
130 134
135 } // namespace translate
136
131 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_ 137 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_UI_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698