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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/sad_tab.h"
11 #include "ui/base/gtk/gtk_signal.h"
12 #include "ui/base/gtk/owned_widget_gtk.h"
14 typedef struct _GtkWidget GtkWidget
;
16 class SadTabGtk
: public chrome::SadTab
{
18 SadTabGtk(content::WebContents
* web_contents
, chrome::SadTabKind kind
);
22 // Overridden from SadTab:
23 virtual void Show() OVERRIDE
;
24 virtual void Close() OVERRIDE
;
26 CHROMEGTK_CALLBACK_0(SadTabGtk
, void, OnLinkButtonClick
);
28 void OnLinkButtonClick();
30 content::WebContents
* web_contents_
;
31 ui::OwnedWidgetGtk event_box_
;
32 chrome::SadTabKind kind_
;
34 DISALLOW_COPY_AND_ASSIGN(SadTabGtk
);
37 #endif // CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_