| OLD | NEW |
| 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" | |
| 15 #include "chrome/browser/translate/translate_tab_helper.h" | 14 #include "chrome/browser/translate/translate_tab_helper.h" |
| 15 #include "components/infobars/core/infobar_delegate.h" |
| 16 #include "components/translate/core/browser/translate_prefs.h" | 16 #include "components/translate/core/browser/translate_prefs.h" |
| 17 #include "components/translate/core/browser/translate_ui_delegate.h" | 17 #include "components/translate/core/browser/translate_ui_delegate.h" |
| 18 #include "components/translate/core/common/translate_constants.h" | 18 #include "components/translate/core/common/translate_constants.h" |
| 19 #include "components/translate/core/common/translate_errors.h" | 19 #include "components/translate/core/common/translate_errors.h" |
| 20 | 20 |
| 21 class PrefService; | 21 class PrefService; |
| 22 | 22 |
| 23 class TranslateInfoBarDelegate : public InfoBarDelegate { | 23 class TranslateInfoBarDelegate : public InfoBarDelegate { |
| 24 public: | 24 public: |
| 25 // The types of background color animations. | 25 // The types of background color animations. |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // The translation related preferences. | 207 // The translation related preferences. |
| 208 scoped_ptr<TranslatePrefs> prefs_; | 208 scoped_ptr<TranslatePrefs> prefs_; |
| 209 | 209 |
| 210 // Whether the translation was triggered via a menu click vs automatically | 210 // Whether the translation was triggered via a menu click vs automatically |
| 211 // (due to language detection, preferences...) | 211 // (due to language detection, preferences...) |
| 212 bool triggered_from_menu_; | 212 bool triggered_from_menu_; |
| 213 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 213 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ | 216 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |