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

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

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/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/gtk/sad_tab_gtk.h
diff --git a/chrome/browser/gtk/sad_tab_gtk.h b/chrome/browser/gtk/sad_tab_gtk.h
index 9c5489b1a3f78040ec8b9b25a3e97d6d10ea6375..dafc835a98c88bf60868d28fa591d8f6e1be2ba9 100644
--- a/chrome/browser/gtk/sad_tab_gtk.h
+++ b/chrome/browser/gtk/sad_tab_gtk.h
@@ -15,7 +15,12 @@ class TabContents;
class SadTabGtk {
public:
- explicit SadTabGtk(TabContents* tab_contents);
+ enum Kind {
+ CRASHED, // The tab crashed. Display the "Aw, Snap!" page.
+ KILLED // The tab was killed. Display the killed tab page.
+ };
+
+ explicit SadTabGtk(TabContents* tab_contents, Kind kind);
virtual ~SadTabGtk();
GtkWidget* widget() const { return event_box_.get(); }
@@ -27,6 +32,7 @@ class SadTabGtk {
TabContents* tab_contents_;
OwnedWidgetGtk event_box_;
+ Kind kind_;
DISALLOW_COPY_AND_ASSIGN(SadTabGtk);
};
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698