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

Side by Side Diff: chrome/browser/ui/views/sad_tab_view.h

Issue 2835233005: Revert of Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
54 bool painted_ = false; 58 bool painted_ = false;
55 views::Label* message_; 59 views::Label* message_;
56 views::Link* help_link_; 60 views::Link* help_link_;
57 views::LabelButton* action_button_; 61 views::LabelButton* action_button_;
58 views::Label* title_; 62 views::Label* title_;
59 }; 63 };
60 64
61 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ 65 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/password_generation_popup_view_views.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