summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/sad_tab_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/sad_tab_view.h')
-rw-r--r--chrome/browser/views/sad_tab_view.h57
1 files changed, 4 insertions, 53 deletions
diff --git a/chrome/browser/views/sad_tab_view.h b/chrome/browser/views/sad_tab_view.h
index 11f26265..f21d8e8 100644
--- a/chrome/browser/views/sad_tab_view.h
+++ b/chrome/browser/views/sad_tab_view.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -6,57 +6,8 @@
#define CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H_
#pragma once
-#include "base/basictypes.h"
-#include "gfx/font.h"
-#include "views/controls/link.h"
-#include "views/view.h"
+#include "chrome/browser/ui/views/sad_tab_view.h"
+// TODO(beng): remove this file once all includes have been updated.
-class SkBitmap;
-class TabContents;
+#endif // CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H_
-///////////////////////////////////////////////////////////////////////////////
-//
-// SadTabView
-//
-// A views::View subclass used to render the presentation of the crashed
-// "sad tab" in the browser window when a renderer is destroyed unnaturally.
-//
-///////////////////////////////////////////////////////////////////////////////
-class SadTabView : public views::View,
- public views::LinkController {
- public:
- explicit SadTabView(TabContents* tab_contents);
- virtual ~SadTabView() {}
-
- // Overridden from views::View:
- virtual void Paint(gfx::Canvas* canvas);
- virtual void Layout();
-
- // Overridden from views::LinkController:
- virtual void LinkActivated(views::Link* source, int event_flags);
-
- private:
- static void InitClass();
-
- // Assorted resources for display.
- static SkBitmap* sad_tab_bitmap_;
- static gfx::Font* title_font_;
- static gfx::Font* message_font_;
- static std::wstring title_;
- static std::wstring message_;
- static int title_width_;
-
- TabContents* tab_contents_;
- views::Link* learn_more_link_;
-
- // Regions within the display for different components, populated by
- // Layout().
- gfx::Rect icon_bounds_;
- gfx::Rect title_bounds_;
- gfx::Rect message_bounds_;
- gfx::Rect link_bounds_;
-
- DISALLOW_COPY_AND_ASSIGN(SadTabView);
-};
-
-#endif // CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H__