OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
7 | 7 |
8 #include "chrome/browser/translate/options_menu_model.h" | 8 #include "chrome/browser/translate/options_menu_model.h" |
9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" | 9 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" |
10 #include "chrome/browser/ui/views/infobars/translate_language_menu_model.h" | 10 #include "chrome/browser/ui/views/infobars/translate_language_menu_model.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 views::LabelButton* revert_button_; | 49 views::LabelButton* revert_button_; |
50 views::MenuButton* options_menu_button_; | 50 views::MenuButton* options_menu_button_; |
51 | 51 |
52 scoped_ptr<TranslateLanguageMenuModel> original_language_menu_model_; | 52 scoped_ptr<TranslateLanguageMenuModel> original_language_menu_model_; |
53 scoped_ptr<TranslateLanguageMenuModel> target_language_menu_model_; | 53 scoped_ptr<TranslateLanguageMenuModel> target_language_menu_model_; |
54 OptionsMenuModel options_menu_model_; | 54 OptionsMenuModel options_menu_model_; |
55 | 55 |
56 // True if the target language comes before the original one. | 56 // True if the target language comes before the original one. |
57 bool swapped_language_buttons_; | 57 bool swapped_language_buttons_; |
58 | 58 |
| 59 // True if the source language is expected to be determined by a server. |
| 60 bool autodetermined_source_language_; |
| 61 |
59 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); | 62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); |
60 }; | 63 }; |
61 | 64 |
62 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
OLD | NEW |