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

Side by Side Diff: chrome/browser/chromeos/login/helper.h

Issue 5074001: Fix username label's color (regression from r66060) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screen_lock_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file contains helper functions used by Chromium OS login. 5 // This file contains helper functions used by Chromium OS login.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const SkColor kLinkColor = 0xFF0066CC; 78 const SkColor kLinkColor = 0xFF0066CC;
79 79
80 // Default size of the OOBE screen. Includes 10px shadow from each side. 80 // Default size of the OOBE screen. Includes 10px shadow from each side.
81 // See rounded_rect_painter.cc for border definitions. 81 // See rounded_rect_painter.cc for border definitions.
82 const int kWizardScreenWidth = 800; 82 const int kWizardScreenWidth = 800;
83 const int kWizardScreenHeight = 450; 83 const int kWizardScreenHeight = 450;
84 84
85 const int kScreenCornerRadius = 10; 85 const int kScreenCornerRadius = 10;
86 const int kUserCornerRadius = 5; 86 const int kUserCornerRadius = 5;
87 87
88 // Username label height in different states.
89 const int kSelectedLabelHeight = 25;
90 const int kUnselectedLabelHeight = 20;
91
88 class WideButton : public views::NativeButton { 92 class WideButton : public views::NativeButton {
89 public: 93 public:
90 WideButton(views::ButtonListener* listener, const std::wstring& text) 94 WideButton(views::ButtonListener* listener, const std::wstring& text)
91 : NativeButton(listener, text) { 95 : NativeButton(listener, text) {
92 CorrectNativeButtonFontSize(this); 96 CorrectNativeButtonFontSize(this);
93 } 97 }
94 98
95 ~WideButton() {} 99 ~WideButton() {}
96 100
97 private: 101 private:
98 virtual gfx::Size GetPreferredSize(); 102 virtual gfx::Size GetPreferredSize();
99 103
100 DISALLOW_COPY_AND_ASSIGN(WideButton); 104 DISALLOW_COPY_AND_ASSIGN(WideButton);
101 }; 105 };
102 106
103 } // namespace login 107 } // namespace login
104 108
105 // Font size correction in points for login/oobe textfields/buttons/title. 109 // Font size correction in points for login/oobe textfields/buttons/title.
106 const int kFontSizeCorrectionDelta = 2; 110 const int kFontSizeCorrectionDelta = 2;
107 111
108 // New pod sizes. 112 // New pod sizes.
109 const int kNewUserPodFullWidth = 372; 113 const int kNewUserPodFullWidth = 372;
110 const int kNewUserPodFullHeight = 372; 114 const int kNewUserPodFullHeight = 372;
111 const int kNewUserPodSmallWidth = 360; 115 const int kNewUserPodSmallWidth = 360;
112 const int kNewUserPodSmallHeight = 322; 116 const int kNewUserPodSmallHeight = 322;
113 117
114 } // namespace chromeos 118 } // namespace chromeos
115 119
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screen_lock_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698