OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TRANSLATE_MESSAGE_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" | 8 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" |
9 | 9 |
10 class TranslateMessageInfoBar : public TranslateInfoBarBase { | 10 class TranslateMessageInfoBar : public TranslateInfoBarBase { |
11 public: | 11 public: |
12 TranslateMessageInfoBar(InfoBarTabHelper* owner, | 12 TranslateMessageInfoBar(InfoBarTabHelper* owner, |
13 TranslateInfoBarDelegate* delegate); | 13 TranslateInfoBarDelegate* delegate); |
14 | 14 |
15 private: | 15 private: |
16 virtual ~TranslateMessageInfoBar(); | 16 virtual ~TranslateMessageInfoBar(); |
17 | 17 |
18 // TranslateInfoBarBase: | 18 // TranslateInfoBarBase: |
19 virtual void Layout() OVERRIDE; | 19 virtual void Layout() OVERRIDE; |
20 virtual void ViewHierarchyChanged(bool is_add, | 20 virtual void ViewHierarchyChanged(bool is_add, |
21 View* parent, | 21 View* parent, |
22 View* child) OVERRIDE; | 22 View* child) OVERRIDE; |
23 virtual void ButtonPressed(views::Button* sender, | 23 virtual void ButtonPressed(views::Button* sender, |
24 const views::Event& event) OVERRIDE; | 24 const ui::Event& event) OVERRIDE; |
25 virtual int ContentMinimumWidth() const OVERRIDE; | 25 virtual int ContentMinimumWidth() const OVERRIDE; |
26 | 26 |
27 views::Label* label_; | 27 views::Label* label_; |
28 views::TextButton* button_; | 28 views::TextButton* button_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); | 30 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); |
31 }; | 31 }; |
32 | 32 |
33 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ | 33 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_H_ |
OLD | NEW |