| OLD | NEW |
| 1 // Copyright (c) 2010 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_GTK_SAD_TAB_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_SAD_TAB_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 typedef struct _GtkWidget GtkWidget; | 9 typedef struct _GtkWidget GtkWidget; |
| 10 | 10 |
| 11 #include "app/gtk_signal.h" | 11 #include "app/gtk_signal.h" |
| 12 #include "chrome/browser/gtk/owned_widget_gtk.h" | 12 #include "chrome/browser/gtk/owned_widget_gtk.h" |
| 13 | 13 |
| 14 class TabContents; | 14 class TabContents; |
| 15 | 15 |
| 16 class SadTabGtk { | 16 class SadTabGtk { |
| 17 public: | 17 public: |
| 18 explicit SadTabGtk(TabContents* tab_contents); | 18 explicit SadTabGtk(TabContents* tab_contents); |
| 19 virtual ~SadTabGtk(); | 19 virtual ~SadTabGtk(); |
| 20 | 20 |
| 21 GtkWidget* widget() const { return event_box_.get(); } | 21 GtkWidget* widget() const { return event_box_.get(); } |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 CHROMEGTK_CALLBACK_0(SadTabGtk, void, OnLinkButtonClick); | 24 CHROMEGTK_CALLBACK_0(SadTabGtk, void, OnLinkButtonClick); |
| 25 | 25 |
| 26 void OnLinkButtonClick(); | 26 void OnLinkButtonClick(); |
| 27 | 27 |
| 28 TabContents* tab_contents_; | 28 TabContents* tab_contents_; |
| 29 OwnedWidgetGtk event_box_; | 29 OwnedWidgetGtk event_box_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(SadTabGtk); | 31 DISALLOW_COPY_AND_ASSIGN(SadTabGtk); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_GTK_SAD_TAB_GTK_H_ | 34 #endif // CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_ |
| OLD | NEW |