| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "chrome/browser/tab_contents/infobar_delegate.h" | 12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 13 #include "chrome/browser/translate/translate_prefs.h" | 13 #include "chrome/browser/translate/translate_prefs.h" |
| 14 #include "chrome/common/translate_errors.h" | 14 #include "chrome/common/translate_errors.h" |
| 15 | 15 |
| 16 class SkBitmap; | 16 class SkBitmap; |
| 17 class TranslateInfoBarView; | 17 class TranslateInfoBarView; |
| 18 | 18 |
| 19 class TranslateInfoBarDelegate : public InfoBarDelegate { | 19 class TranslateInfoBarDelegate : public InfoBarDelegate { |
| 20 public: | 20 public: |
| 21 // The different types of infobars that can be shown for translation. | 21 // The different types of infobars that can be shown for translation. |
| 22 enum Type { | 22 enum Type { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // The current infobar view. | 201 // The current infobar view. |
| 202 TranslateInfoBarView* infobar_view_; | 202 TranslateInfoBarView* infobar_view_; |
| 203 | 203 |
| 204 // The translation related preferences. | 204 // The translation related preferences. |
| 205 TranslatePrefs prefs_; | 205 TranslatePrefs prefs_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 207 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ | 210 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |