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

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

Issue 8221027: Make views::Label and views::Link auto-color themselves to be readable over their background colo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
51 51
52 protected: 52 protected:
53 // Overridden from views::View: 53 // Overridden from views::View:
54 virtual void ViewHierarchyChanged(bool is_add, 54 virtual void ViewHierarchyChanged(bool is_add,
55 views::View* parent, 55 views::View* parent,
56 views::View* child) OVERRIDE; 56 views::View* child) OVERRIDE;
57 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 57 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
58 58
59 private: 59 private:
60 views::Label* CreateLabel(const string16& text);
61 views::Link* CreateLink(const string16& text);
62
60 TabContents* tab_contents_; 63 TabContents* tab_contents_;
61 Kind kind_; 64 Kind kind_;
62 bool painted_; 65 bool painted_;
66 const gfx::Font& base_font_;
63 views::Label* message_; 67 views::Label* message_;
64 views::Link* help_link_; 68 views::Link* help_link_;
65 views::Link* feedback_link_; 69 views::Link* feedback_link_;
66 70
67 DISALLOW_COPY_AND_ASSIGN(SadTabView); 71 DISALLOW_COPY_AND_ASSIGN(SadTabView);
68 }; 72 };
69 73
70 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ 74 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698