| OLD | NEW |
| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "components/translate/core/browser/translate_ui_delegate.h" | 22 #include "components/translate/core/browser/translate_ui_delegate.h" |
| 23 #include "components/translate/core/common/translate_constants.h" | 23 #include "components/translate/core/common/translate_constants.h" |
| 24 #include "components/translate/core/common/translate_errors.h" | 24 #include "components/translate/core/common/translate_errors.h" |
| 25 | 25 |
| 26 namespace infobars { | 26 namespace infobars { |
| 27 class InfoBarManager; | 27 class InfoBarManager; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace translate { | 30 namespace translate { |
| 31 | 31 |
| 32 class TranslateClient; | |
| 33 class TranslateDriver; | 32 class TranslateDriver; |
| 34 class TranslateManager; | 33 class TranslateManager; |
| 35 | 34 |
| 36 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { | 35 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { |
| 37 public: | 36 public: |
| 38 // The types of background color animations. | 37 // The types of background color animations. |
| 39 enum BackgroundAnimationType { | 38 enum BackgroundAnimationType { |
| 40 NONE, | 39 NONE, |
| 41 NORMAL_TO_ERROR, | 40 NORMAL_TO_ERROR, |
| 42 ERROR_TO_NORMAL | 41 ERROR_TO_NORMAL |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 226 |
| 228 // Whether the translation was triggered via a menu click vs automatically | 227 // Whether the translation was triggered via a menu click vs automatically |
| 229 // (due to language detection, preferences...) | 228 // (due to language detection, preferences...) |
| 230 bool triggered_from_menu_; | 229 bool triggered_from_menu_; |
| 231 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 230 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 232 }; | 231 }; |
| 233 | 232 |
| 234 } // namespace translate | 233 } // namespace translate |
| 235 | 234 |
| 236 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ | 235 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |