OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
6 #define CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 6 #define CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/menus/simple_menu_model.h" | |
12 #include "chrome/browser/translate/languages_menu_model.h" | 11 #include "chrome/browser/translate/languages_menu_model.h" |
13 #include "chrome/browser/translate/options_menu_model.h" | 12 #include "chrome/browser/translate/options_menu_model.h" |
14 #include "chrome/browser/translate/translate_infobar_view.h" | 13 #include "chrome/browser/translate/translate_infobar_view.h" |
15 #include "chrome/browser/views/infobars/translate_infobar_base.h" | 14 #include "chrome/browser/views/infobars/translate_infobar_base.h" |
16 #include "views/controls/button/button.h" | 15 #include "views/controls/button/button.h" |
17 #include "views/controls/link.h" | 16 #include "views/controls/link.h" |
18 #include "views/controls/menu/view_menu_delegate.h" | 17 #include "views/controls/menu/view_menu_delegate.h" |
19 | 18 |
20 class InfoBarTextButton; | 19 class InfoBarTextButton; |
21 class TranslateInfoBarDelegate; | 20 class TranslateInfoBarDelegate; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 scoped_ptr<views::Menu2> options_menu_; | 72 scoped_ptr<views::Menu2> options_menu_; |
74 OptionsMenuModel options_menu_model_; | 73 OptionsMenuModel options_menu_model_; |
75 | 74 |
76 // True if the target language comes before the original one. | 75 // True if the target language comes before the original one. |
77 bool swapped_language_buttons_; | 76 bool swapped_language_buttons_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); | 78 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); |
80 }; | 79 }; |
81 | 80 |
82 #endif // CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 81 #endif // CHROME_BROWSER_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
OLD | NEW |