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

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

Issue 1129513002: Sad tab redesign for Windows, Linux and CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 5 years, 7 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/app/theme/theme_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 ac2d056c18ad8e0be1187f07177405daa61fb516..ea68134c5547aee15bd515d91467058716d050c7 100644
--- a/chrome/browser/ui/views/sad_tab_view.h
+++ b/chrome/browser/ui/views/sad_tab_view.h
@@ -10,6 +10,8 @@
#include "chrome/browser/ui/sad_tab.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/link_listener.h"
+#include "ui/views/controls/styled_label.h"
+#include "ui/views/controls/styled_label_listener.h"
#include "ui/views/view.h"
namespace content {
@@ -32,7 +34,8 @@ class LabelButton;
class SadTabView : public chrome::SadTab,
public views::View,
public views::LinkListener,
- public views::ButtonListener {
+ public views::ButtonListener,
+ public views::StyledLabelListener {
public:
SadTabView(content::WebContents* web_contents, chrome::SadTabKind kind);
~SadTabView() override;
@@ -55,8 +58,12 @@ class SadTabView : public chrome::SadTab,
void Show() override;
void Close() override;
+ // views::StyledLabelListener methods.
+ void StyledLabelLinkClicked(const gfx::Range& range,
+ int event_flags) override;
+
views::Label* CreateLabel(const base::string16& text);
- views::Link* CreateLink(const base::string16& text);
+ views::Link* CreateLink(const base::string16& text, const SkColor& color);
content::WebContents* web_contents_;
chrome::SadTabKind kind_;
@@ -65,6 +72,8 @@ class SadTabView : public chrome::SadTab,
views::Link* help_link_;
views::Link* feedback_link_;
views::LabelButton* reload_button_;
+ views::Label* title_;
+ views::StyledLabel* help_message_;
DISALLOW_COPY_AND_ASSIGN(SadTabView);
};
« no previous file with comments | « chrome/app/theme/theme_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