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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_SAD_TAB_GTK_H_
6 #define CHROME_BROWSER_GTK_SAD_TAB_GTK_H_ 6 #define CHROME_BROWSER_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 enum Kind {
19 CRASHED, // The tab crashed. Display the "Aw, Snap!" page.
20 KILLED // The tab was killed. Display the killed tab page.
21 };
22
23 explicit SadTabGtk(TabContents* tab_contents, Kind kind);
19 virtual ~SadTabGtk(); 24 virtual ~SadTabGtk();
20 25
21 GtkWidget* widget() const { return event_box_.get(); } 26 GtkWidget* widget() const { return event_box_.get(); }
22 27
23 private: 28 private:
24 CHROMEGTK_CALLBACK_0(SadTabGtk, void, OnLinkButtonClick); 29 CHROMEGTK_CALLBACK_0(SadTabGtk, void, OnLinkButtonClick);
25 30
26 void OnLinkButtonClick(); 31 void OnLinkButtonClick();
27 32
28 TabContents* tab_contents_; 33 TabContents* tab_contents_;
29 OwnedWidgetGtk event_box_; 34 OwnedWidgetGtk event_box_;
35 Kind kind_;
30 36
31 DISALLOW_COPY_AND_ASSIGN(SadTabGtk); 37 DISALLOW_COPY_AND_ASSIGN(SadTabGtk);
32 }; 38 };
33 39
34 #endif // CHROME_BROWSER_GTK_SAD_TAB_GTK_H_ 40 #endif // CHROME_BROWSER_GTK_SAD_TAB_GTK_H_
OLDNEW
« 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