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