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_LINK_INFOBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_LINK_INFOBAR_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_INFOBARS_LINK_INFOBAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_LINK_INFOBAR_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" | 10 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
11 #include "ui/base/gtk/gtk_signal.h" | 11 #include "ui/base/gtk/gtk_signal.h" |
12 | 12 |
13 class LinkInfoBarDelegate; | 13 class LinkInfoBarDelegate; |
14 | 14 |
15 // An infobar that shows a string with an embedded link. | 15 // An infobar that shows a string with an embedded link. |
16 class LinkInfoBarGtk : public InfoBarGtk { | 16 class LinkInfoBarGtk : public InfoBarGtk { |
17 public: | 17 public: |
18 explicit LinkInfoBarGtk(TabContentsWrapper* owner, | 18 LinkInfoBarGtk(TabContentsWrapper* owner, LinkInfoBarDelegate* delegate); |
19 LinkInfoBarDelegate* delegate); | |
20 | 19 |
21 private: | 20 private: |
22 virtual ~LinkInfoBarGtk(); | 21 virtual ~LinkInfoBarGtk(); |
23 | 22 |
24 CHROMEGTK_CALLBACK_0(LinkInfoBarGtk, void, OnLinkClicked); | 23 CHROMEGTK_CALLBACK_0(LinkInfoBarGtk, void, OnLinkClicked); |
25 | 24 |
26 LinkInfoBarDelegate* GetDelegate(); | 25 LinkInfoBarDelegate* GetDelegate(); |
27 | 26 |
28 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarGtk); | 27 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarGtk); |
29 }; | 28 }; |
30 | 29 |
31 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_LINK_INFOBAR_GTK_H_ | 30 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_LINK_INFOBAR_GTK_H_ |
OLD | NEW |