| 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_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h" | 9 #include "chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h" |
| 10 | 10 |
| 11 class TranslateInfoBarDelegate; | 11 class TranslateInfoBarDelegate; |
| 12 | 12 |
| 13 class TranslateMessageInfoBar : public TranslateInfoBarBase { | 13 class TranslateMessageInfoBar : public TranslateInfoBarBase { |
| 14 public: | 14 public: |
| 15 explicit TranslateMessageInfoBar(TabContentsWrapper* owner, | 15 TranslateMessageInfoBar(TabContentsWrapper* owner, |
| 16 TranslateInfoBarDelegate* delegate); | 16 TranslateInfoBarDelegate* delegate); |
| 17 virtual ~TranslateMessageInfoBar(); | 17 virtual ~TranslateMessageInfoBar(); |
| 18 | 18 |
| 19 // Overridden from TranslateInfoBarBase: | 19 // Overridden from TranslateInfoBarBase: |
| 20 virtual void Init(); | 20 virtual void Init(); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 CHROMEGTK_CALLBACK_0(TranslateMessageInfoBar, void, OnButtonPressed); | 23 CHROMEGTK_CALLBACK_0(TranslateMessageInfoBar, void, OnButtonPressed); |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); | 25 DISALLOW_COPY_AND_ASSIGN(TranslateMessageInfoBar); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ | 28 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_TRANSLATE_MESSAGE_INFOBAR_GTK_H_ |
| OLD | NEW |