Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: components/translate/core/browser/translate_infobar_delegate.h

Issue 2852043002: Add a flag to enable Translate Compact Infobar on Android. (Closed)
Patch Set: fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/translate/core/browser/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698