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

Unified Diff: chrome/browser/ui/views/sad_tab_view.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/ui/browser.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sad_tab_view.h
diff --git a/chrome/browser/ui/views/sad_tab_view.h b/chrome/browser/ui/views/sad_tab_view.h
index 22c088aedd728d08be4d115570d77bcceccc4a32..ce5ccbed196f41d7bc7f14e3c63972c1bae58a03 100644
--- a/chrome/browser/ui/views/sad_tab_view.h
+++ b/chrome/browser/ui/views/sad_tab_view.h
@@ -25,7 +25,12 @@ class TabContents;
class SadTabView : public views::View,
public views::LinkController {
public:
- explicit SadTabView(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 SadTabView(TabContents* tab_contents, Kind kind);
virtual ~SadTabView() {}
// Overridden from views::View:
@@ -36,7 +41,7 @@ class SadTabView : public views::View,
virtual void LinkActivated(views::Link* source, int event_flags);
private:
- static void InitClass();
+ static void InitClass(Kind kind);
// Assorted resources for display.
static SkBitmap* sad_tab_bitmap_;
@@ -56,6 +61,8 @@ class SadTabView : public views::View,
gfx::Rect message_bounds_;
gfx::Rect link_bounds_;
+ Kind kind_;
+
DISALLOW_COPY_AND_ASSIGN(SadTabView);
};
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698