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

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

Issue 5180002: Adjust default font sizes for new hand hinted fonts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - textbutton header Created 10 years 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) 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 23 matching lines...) Expand all
34 views::Throbber* CreateDefaultThrobber(); 34 views::Throbber* CreateDefaultThrobber();
35 35
36 // Creates painter for login background. 36 // Creates painter for login background.
37 views::Painter* CreateBackgroundPainter(); 37 views::Painter* CreateBackgroundPainter();
38 38
39 // Returns bounds of the screen to use for login wizard. 39 // Returns bounds of the screen to use for login wizard.
40 // The rect is centered within the default monitor and sized accordingly if 40 // The rect is centered within the default monitor and sized accordingly if
41 // |size| is not empty. Otherwise the whole monitor is occupied. 41 // |size| is not empty. Otherwise the whole monitor is occupied.
42 gfx::Rect CalculateScreenBounds(const gfx::Size& size); 42 gfx::Rect CalculateScreenBounds(const gfx::Size& size);
43 43
44 // Corrects font size for NativeButton control. 44 // Corrects font size for Label control.
45 void CorrectLabelFontSize(views::Label* label); 45 void CorrectLabelFontSize(views::Label* label);
46 46
47 // Corrects font size for NativeButton control. 47 // Corrects font size for NativeButton control.
48 void CorrectNativeButtonFontSize(views::NativeButton* button); 48 void CorrectNativeButtonFontSize(views::NativeButton* button);
49 49
50 // Corrects font size for Textfield control. 50 // Corrects font size for Textfield control.
51 void CorrectTextfieldFontSize(views::Textfield* textfield); 51 void CorrectTextfieldFontSize(views::Textfield* textfield);
52 52
53 // Returns URL used for account recovery. 53 // Returns URL used for account recovery.
54 GURL GetAccountRecoveryHelpUrl(); 54 GURL GetAccountRecoveryHelpUrl();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ~WideButton() {} 99 ~WideButton() {}
100 100
101 private: 101 private:
102 virtual gfx::Size GetPreferredSize(); 102 virtual gfx::Size GetPreferredSize();
103 103
104 DISALLOW_COPY_AND_ASSIGN(WideButton); 104 DISALLOW_COPY_AND_ASSIGN(WideButton);
105 }; 105 };
106 106
107 } // namespace login 107 } // namespace login
108 108
109 // Font size correction in points for login/oobe textfields/buttons/title. 109 // Font size correction in points for login/oobe controls.
110 #if defined(CROS_FONTS_USING_BCI)
111 const int kFontSizeCorrectionDelta = 1;
112 const int kUnselectedUsernameFontDelta = 0;
113 const int kWelcomeTitleFontDelta = 5;
114 #else
110 const int kFontSizeCorrectionDelta = 2; 115 const int kFontSizeCorrectionDelta = 2;
116 const int kUnselectedUsernameFontDelta = 1;
117 const int kWelcomeTitleFontDelta = 5;
118 #endif
111 119
112 // New pod sizes. 120 // New pod sizes.
113 const int kNewUserPodFullWidth = 372; 121 const int kNewUserPodFullWidth = 372;
114 const int kNewUserPodFullHeight = 372; 122 const int kNewUserPodFullHeight = 372;
115 const int kNewUserPodSmallWidth = 360; 123 const int kNewUserPodSmallWidth = 360;
116 const int kNewUserPodSmallHeight = 322; 124 const int kNewUserPodSmallHeight = 322;
117 125
118 } // namespace chromeos 126 } // namespace chromeos
119 127
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 128 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/candidate_window.cc ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698