Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(959)

Unified Diff: chrome/browser/ui/gtk/sad_tab_gtk.h

Issue 10703110: browser/ui: Unify the enum Kind of SadTab used by SadTabViews and SabTabGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/sad_tab_gtk.h
diff --git a/chrome/browser/ui/gtk/sad_tab_gtk.h b/chrome/browser/ui/gtk/sad_tab_gtk.h
index 1ca367563145a016c94bafdcbb37410731d4ecbb..1bc003c4c654475af8a5ba98f09d6eae15e206c3 100644
--- a/chrome/browser/ui/gtk/sad_tab_gtk.h
+++ b/chrome/browser/ui/gtk/sad_tab_gtk.h
@@ -6,23 +6,20 @@
#define CHROME_BROWSER_UI_GTK_SAD_TAB_GTK_H_
#pragma once
-typedef struct _GtkWidget GtkWidget;
-
+#include "base/basictypes.h"
+#include "chrome/browser/ui/sad_tab_types.h"
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/gtk/owned_widget_gtk.h"
+typedef struct _GtkWidget GtkWidget;
+
namespace content {
class WebContents;
}
class SadTabGtk {
public:
- enum Kind {
- CRASHED, // The tab crashed. Display the "Aw, Snap!" page.
- KILLED // The tab was killed. Display the killed tab page.
- };
-
- SadTabGtk(content::WebContents* web_contents, Kind kind);
+ SadTabGtk(content::WebContents* web_contents, chrome::SadTabKind kind);
~SadTabGtk();
GtkWidget* widget() const { return event_box_.get(); }
@@ -34,7 +31,7 @@ class SadTabGtk {
content::WebContents* web_contents_;
ui::OwnedWidgetGtk event_box_;
- Kind kind_;
+ chrome::SadTabKind kind_;
DISALLOW_COPY_AND_ASSIGN(SadTabGtk);
};
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698