| 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> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const std::string& original_language, | 185 const std::string& original_language, |
| 186 const std::string& target_language); | 186 const std::string& target_language); |
| 187 Type infobar_type_; | 187 Type infobar_type_; |
| 188 | 188 |
| 189 private: | 189 private: |
| 190 typedef std::pair<std::string, string16> LanguageNamePair; | 190 typedef std::pair<std::string, string16> LanguageNamePair; |
| 191 | 191 |
| 192 // InfoBarDelegate: | 192 // InfoBarDelegate: |
| 193 virtual InfoBar* CreateInfoBar(InfoBarService* infobar_service) OVERRIDE; | 193 virtual InfoBar* CreateInfoBar(InfoBarService* infobar_service) OVERRIDE; |
| 194 virtual void InfoBarDismissed() OVERRIDE; | 194 virtual void InfoBarDismissed() OVERRIDE; |
| 195 virtual gfx::Image* GetIcon() const OVERRIDE; | 195 virtual int GetIconID() const OVERRIDE; |
| 196 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE; | 196 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE; |
| 197 virtual bool ShouldExpire( | 197 virtual bool ShouldExpire( |
| 198 const content::LoadCommittedDetails& details) const OVERRIDE; | 198 const content::LoadCommittedDetails& details) const OVERRIDE; |
| 199 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE; | 199 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE; |
| 200 | 200 |
| 201 // Gets the host of the page being translated, or an empty string if no URL is | 201 // Gets the host of the page being translated, or an empty string if no URL is |
| 202 // associated with the current page. | 202 // associated with the current page. |
| 203 std::string GetPageHost(); | 203 std::string GetPageHost(); |
| 204 | 204 |
| 205 // The type of fading animation if any that should be used when showing this | 205 // The type of fading animation if any that should be used when showing this |
| (...skipping 24 matching lines...) Expand all Loading... |
| 230 | 230 |
| 231 // The translation related preferences. | 231 // The translation related preferences. |
| 232 TranslatePrefs prefs_; | 232 TranslatePrefs prefs_; |
| 233 | 233 |
| 234 // Translation shortcut configuration | 234 // Translation shortcut configuration |
| 235 ShortcutConfiguration shortcut_config_; | 235 ShortcutConfiguration shortcut_config_; |
| 236 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 236 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ | 239 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |