Home | History | Annotate | Download | only in gtk
      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.
      4 
      5 #ifndef CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
      6 #define CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
      7 
      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"
     13 
     14 typedef struct _GtkWidget GtkWidget;
     15 
     16 class SadTabGtk : public chrome::SadTab {
     17  public:
     18   SadTabGtk(content::WebContents* web_contents, chrome::SadTabKind kind);
     19   virtual ~SadTabGtk();
     20 
     21  private:
     22   // Overridden from SadTab:
     23   virtual void Show() OVERRIDE;
     24   virtual void Close() OVERRIDE;
     25 
     26   CHROMEGTK_CALLBACK_0(SadTabGtk, void, OnLinkButtonClick);
     27 
     28   void OnLinkButtonClick();
     29 
     30   content::WebContents* web_contents_;
     31   ui::OwnedWidgetGtk event_box_;
     32   chrome::SadTabKind kind_;
     33 
     34   DISALLOW_COPY_AND_ASSIGN(SadTabGtk);
     35 };
     36 
     37 #endif  // CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
     38