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/languages_menu_model.h" | 8 #include "chrome/browser/translate/languages_menu_model.h" |
9 #include "chrome/browser/translate/options_menu_model.h" | 9 #include "chrome/browser/translate/options_menu_model.h" |
10 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" | 10 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 private: | 24 private: |
25 virtual ~AfterTranslateInfoBar(); | 25 virtual ~AfterTranslateInfoBar(); |
26 | 26 |
27 // TranslateInfoBarBase: | 27 // TranslateInfoBarBase: |
28 virtual void Layout() OVERRIDE; | 28 virtual void Layout() OVERRIDE; |
29 virtual void ViewHierarchyChanged(bool is_add, | 29 virtual void ViewHierarchyChanged(bool is_add, |
30 views::View* parent, | 30 views::View* parent, |
31 views::View* child) OVERRIDE; | 31 views::View* child) OVERRIDE; |
32 virtual void ButtonPressed(views::Button* sender, | 32 virtual void ButtonPressed(views::Button* sender, |
33 const views::Event& event) OVERRIDE; | 33 const ui::Event& event) OVERRIDE; |
34 virtual int ContentMinimumWidth() const OVERRIDE; | 34 virtual int ContentMinimumWidth() const OVERRIDE; |
35 virtual void OriginalLanguageChanged() OVERRIDE; | 35 virtual void OriginalLanguageChanged() OVERRIDE; |
36 virtual void TargetLanguageChanged() OVERRIDE; | 36 virtual void TargetLanguageChanged() OVERRIDE; |
37 | 37 |
38 // views::MenuButtonListener: | 38 // views::MenuButtonListener: |
39 virtual void OnMenuButtonClicked(views::View* source, | 39 virtual void OnMenuButtonClicked(views::View* source, |
40 const gfx::Point& point) OVERRIDE; | 40 const gfx::Point& point) OVERRIDE; |
41 | 41 |
42 // The text displayed in the infobar is something like: | 42 // The text displayed in the infobar is something like: |
43 // "Translated from <lang1> to <lang2> [more text in some languages]" | 43 // "Translated from <lang1> to <lang2> [more text in some languages]" |
(...skipping 12 matching lines...) Expand all Loading... |
56 LanguagesMenuModel target_language_menu_model_; | 56 LanguagesMenuModel target_language_menu_model_; |
57 OptionsMenuModel options_menu_model_; | 57 OptionsMenuModel options_menu_model_; |
58 | 58 |
59 // True if the target language comes before the original one. | 59 // True if the target language comes before the original one. |
60 bool swapped_language_buttons_; | 60 bool swapped_language_buttons_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); | 62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); |
63 }; | 63 }; |
64 | 64 |
65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ |
OLD | NEW |