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

Side by Side Diff: components/translate/core/browser/translate_infobar_delegate.h

Issue 371113002: Fixes for re-enabling more MSVC level 4 warnings: components/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
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_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 29
30 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { 30 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
31 public: 31 public:
32 // The types of background color animations. 32 // The types of background color animations.
33 enum BackgroundAnimationType { 33 enum BackgroundAnimationType {
34 NONE, 34 NONE,
35 NORMAL_TO_ERROR, 35 NORMAL_TO_ERROR,
36 ERROR_TO_NORMAL 36 ERROR_TO_NORMAL
37 }; 37 };
38 38
39 static const size_t kNoIndex; 39 static const size_t kNoIndex = TranslateUIDelegate::kNoIndex;
40 40
41 virtual ~TranslateInfoBarDelegate(); 41 virtual ~TranslateInfoBarDelegate();
42 42
43 // Factory method to create a translate infobar. |error_type| must be 43 // Factory method to create a translate infobar. |error_type| must be
44 // specified iff |step| == TRANSLATION_ERROR. For other translate steps, 44 // specified iff |step| == TRANSLATION_ERROR. For other translate steps,
45 // |original_language| and |target_language| must be ASCII language codes 45 // |original_language| and |target_language| must be ASCII language codes
46 // (e.g. "en", "fr", etc.) for languages the TranslateManager supports 46 // (e.g. "en", "fr", etc.) for languages the TranslateManager supports
47 // translating. The lone exception is when the user initiates translation 47 // translating. The lone exception is when the user initiates translation
48 // from the context menu, in which case it's legal to call this with 48 // from the context menu, in which case it's legal to call this with
49 // |step| == TRANSLATING and |original_language| == kUnknownLanguageCode. 49 // |step| == TRANSLATING and |original_language| == kUnknownLanguageCode.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // The translation related preferences. 212 // The translation related preferences.
213 scoped_ptr<TranslatePrefs> prefs_; 213 scoped_ptr<TranslatePrefs> prefs_;
214 214
215 // Whether the translation was triggered via a menu click vs automatically 215 // Whether the translation was triggered via a menu click vs automatically
216 // (due to language detection, preferences...) 216 // (due to language detection, preferences...)
217 bool triggered_from_menu_; 217 bool triggered_from_menu_;
218 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); 218 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
219 }; 219 };
220 220
221 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ 221 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698