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

Unified Diff: chrome/browser/ui/views/sad_tab_view.h

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 3 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/tab_helpers.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
deleted file mode 100644
index afb893a02949ba003647ab2d0ef75df95778871b..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/sad_tab_view.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// 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_VIEWS_SAD_TAB_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/sad_tab.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/link_listener.h"
-#include "ui/views/view.h"
-
-namespace content {
-class WebContents;
-}
-
-namespace views {
-class Label;
-class LabelButton;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-//
-// 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 chrome::SadTab,
- public views::View,
- public views::LinkListener,
- public views::ButtonListener {
- public:
- SadTabView(content::WebContents* web_contents, chrome::SadTabKind kind);
- virtual ~SadTabView();
-
- // Overridden from views::View:
- virtual void Layout() OVERRIDE;
-
- // Overridden from views::LinkListener:
- virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
-
- // Overridden from views::ButtonListener:
- virtual void ButtonPressed(views::Button* source,
- const ui::Event& event) OVERRIDE;
-
- protected:
- // Overridden from views::View:
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
-
- private:
- // Overridden from chrome::SadTab:
- virtual void Show() OVERRIDE;
- virtual void Close() OVERRIDE;
-
- views::Label* CreateLabel(const base::string16& text);
- views::Link* CreateLink(const base::string16& text);
-
- content::WebContents* web_contents_;
- chrome::SadTabKind kind_;
- bool painted_;
- views::Label* message_;
- views::Link* help_link_;
- views::Link* feedback_link_;
- views::LabelButton* reload_button_;
-
- DISALLOW_COPY_AND_ASSIGN(SadTabView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__
« no previous file with comments | « chrome/browser/ui/tab_helpers.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