| 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 // Feature flag for "Translate Compact Infobar UI" project. |
| 33 extern const base::Feature kTranslateCompactUI; |
| 34 |
| 32 class TranslateDriver; | 35 class TranslateDriver; |
| 33 class TranslateManager; | 36 class TranslateManager; |
| 34 | 37 |
| 35 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { | 38 class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { |
| 36 public: | 39 public: |
| 37 // The types of background color animations. | 40 // The types of background color animations. |
| 38 enum BackgroundAnimationType { | 41 enum BackgroundAnimationType { |
| 39 NONE, | 42 NONE, |
| 40 NORMAL_TO_ERROR, | 43 NORMAL_TO_ERROR, |
| 41 ERROR_TO_NORMAL | 44 ERROR_TO_NORMAL |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 232 |
| 230 // Whether the translation was triggered via a menu click vs automatically | 233 // Whether the translation was triggered via a menu click vs automatically |
| 231 // (due to language detection, preferences...) | 234 // (due to language detection, preferences...) |
| 232 bool triggered_from_menu_; | 235 bool triggered_from_menu_; |
| 233 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 236 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 234 }; | 237 }; |
| 235 | 238 |
| 236 } // namespace translate | 239 } // namespace translate |
| 237 | 240 |
| 238 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ | 241 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |