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

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

Issue 8574074: Add reload button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace conditional returns with DCHECKS. Formatting tweaks. Created 9 years, 1 month 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/app/generated_resources.grd ('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 2ad400b4bd16c0b214b251320ef3ab7ab3c5dfc7..ceffefe1b75edaf203013fd8474f2ccbcffcbf3f 100644
--- a/chrome/browser/ui/views/sad_tab_view.h
+++ b/chrome/browser/ui/views/sad_tab_view.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "views/controls/button/button.h"
#include "views/controls/link_listener.h"
#include "views/view.h"
@@ -19,6 +20,7 @@ class Font;
namespace views {
class Label;
+class TextButton;
}
///////////////////////////////////////////////////////////////////////////////
@@ -30,7 +32,8 @@ class Label;
//
///////////////////////////////////////////////////////////////////////////////
class SadTabView : public views::View,
- public views::LinkListener {
+ public views::LinkListener,
+ public views::ButtonListener {
public:
// 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.
@@ -48,6 +51,10 @@ class SadTabView : public views::View,
// 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 views::Event& event) OVERRIDE;
+
protected:
// Overridden from views::View:
virtual void ViewHierarchyChanged(bool is_add,
@@ -66,6 +73,7 @@ class SadTabView : public views::View,
views::Label* message_;
views::Link* help_link_;
views::Link* feedback_link_;
+ views::TextButton* reload_button_;
DISALLOW_COPY_AND_ASSIGN(SadTabView);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698