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

Side by Side Diff: chrome/browser/translate/translate_infobar_delegate.h

Issue 159883002: Move TranslatePrefs to the Translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@acceptLanguages
Patch Set: Fix ChromeOS browsertests Created 6 years, 10 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/infobars/infobar_delegate.h" 14 #include "chrome/browser/infobars/infobar_delegate.h"
15 #include "chrome/browser/translate/translate_prefs.h"
16 #include "chrome/browser/translate/translate_ui_delegate.h" 15 #include "chrome/browser/translate/translate_ui_delegate.h"
16 #include "components/translate/core/browser/translate_prefs.h"
17 #include "components/translate/core/common/translate_constants.h" 17 #include "components/translate/core/common/translate_constants.h"
18 #include "components/translate/core/common/translate_errors.h" 18 #include "components/translate/core/common/translate_errors.h"
19 19
20 class PrefService; 20 class PrefService;
21 21
22 class TranslateInfoBarDelegate : public InfoBarDelegate { 22 class TranslateInfoBarDelegate : public InfoBarDelegate {
23 public: 23 public:
24 // The different types of infobars that can be shown for translation. 24 // The different types of infobars that can be shown for translation.
25 enum Type { 25 enum Type {
26 BEFORE_TRANSLATE, 26 BEFORE_TRANSLATE,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // The type of fading animation if any that should be used when showing this 194 // The type of fading animation if any that should be used when showing this
195 // infobar. 195 // infobar.
196 BackgroundAnimationType background_animation_; 196 BackgroundAnimationType background_animation_;
197 197
198 TranslateUIDelegate ui_delegate_; 198 TranslateUIDelegate ui_delegate_;
199 199
200 // The error that occurred when trying to translate (NONE if no error). 200 // The error that occurred when trying to translate (NONE if no error).
201 TranslateErrors::Type error_type_; 201 TranslateErrors::Type error_type_;
202 202
203 // The translation related preferences. 203 // The translation related preferences.
204 TranslatePrefs prefs_; 204 scoped_ptr<TranslatePrefs> prefs_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); 206 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
207 }; 207 };
208 208
209 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 209 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698