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

Unified Diff: chrome/browser/ui/sad_tab_types.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 | « chrome/browser/ui/sad_tab_helper.cc ('k') | chrome/browser/ui/views/sad_tab_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sad_tab_types.h
diff --git a/chrome/browser/ui/sad_tab_types.h b/chrome/browser/ui/sad_tab_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b1aeeb19e02de2deb4ecb4eab47ed9b9d539f57
--- /dev/null
+++ b/chrome/browser/ui/sad_tab_types.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_SAD_TAB_TYPES_H_
+#define CHROME_BROWSER_UI_SAD_TAB_TYPES_H_
+#pragma once
+
+namespace chrome {
+
+// NOTE: Do not remove or reorder the elements in this enum, and only add new
+// items at the end. We depend on these specific values in a histogram.
+enum SadTabKind {
+ SAD_TAB_KIND_CRASHED = 0, // Tab crashed. Display the "Aw, Snap!" page.
+ SAD_TAB_KIND_KILLED // Tab killed. Display the "He's dead, Jim!" tab page.
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_SAD_TAB_TYPES_H_
« no previous file with comments | « chrome/browser/ui/sad_tab_helper.cc ('k') | chrome/browser/ui/views/sad_tab_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698