OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/sad_tab.h" | 8 #include "chrome/browser/ui/sad_tab.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/controls/link_listener.h" | 10 #include "ui/views/controls/link_listener.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void LinkClicked(views::Link* source, int event_flags) override; | 44 void LinkClicked(views::Link* source, int event_flags) override; |
45 | 45 |
46 // Overridden from views::ButtonListener: | 46 // Overridden from views::ButtonListener: |
47 void ButtonPressed(views::Button* source, const ui::Event& event) override; | 47 void ButtonPressed(views::Button* source, const ui::Event& event) override; |
48 | 48 |
49 protected: | 49 protected: |
50 // Overridden from views::View: | 50 // Overridden from views::View: |
51 void OnPaint(gfx::Canvas* canvas) override; | 51 void OnPaint(gfx::Canvas* canvas) override; |
52 | 52 |
53 private: | 53 private: |
54 | |
55 views::Label* CreateLabel(const base::string16& text); | |
56 views::Link* CreateLink(const base::string16& text, const SkColor& color); | |
57 | |
58 bool painted_ = false; | 54 bool painted_ = false; |
59 views::Label* message_; | 55 views::Label* message_; |
60 views::Link* help_link_; | 56 views::Link* help_link_; |
61 views::LabelButton* action_button_; | 57 views::LabelButton* action_button_; |
62 views::Label* title_; | 58 views::Label* title_; |
63 }; | 59 }; |
64 | 60 |
65 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ | 61 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ |
OLD | NEW |