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

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

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
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
11 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace gfx { 15 namespace gfx {
16 class Rect; 16 class Rect;
17 class Size; 17 class Size;
18 } // namespace gfx 18 } // namespace gfx
19 19
20 namespace views { 20 namespace views {
21 class NativeButton;
21 class Painter; 22 class Painter;
23 class Textfield;
22 class Throbber; 24 class Throbber;
23 } // namespace views 25 } // namespace views
24 26
25 namespace chromeos { 27 namespace chromeos {
26 28
27 // Creates default smoothed throbber for time consuming operations on login. 29 // Creates default smoothed throbber for time consuming operations on login.
28 views::Throbber* CreateDefaultSmoothedThrobber(); 30 views::Throbber* CreateDefaultSmoothedThrobber();
29 31
30 // Creates default throbber. 32 // Creates default throbber.
31 views::Throbber* CreateDefaultThrobber(); 33 views::Throbber* CreateDefaultThrobber();
32 34
33 // Creates painter for login background. 35 // Creates painter for login background.
34 views::Painter* CreateBackgroundPainter(); 36 views::Painter* CreateBackgroundPainter();
35 37
36 // Returns bounds of the screen to use for login wizard. 38 // Returns bounds of the screen to use for login wizard.
37 // The rect is centered within the default monitor and sized accordingly if 39 // The rect is centered within the default monitor and sized accordingly if
38 // |size| is not empty. Otherwise the whole monitor is occupied. 40 // |size| is not empty. Otherwise the whole monitor is occupied.
39 gfx::Rect CalculateScreenBounds(const gfx::Size& size); 41 gfx::Rect CalculateScreenBounds(const gfx::Size& size);
40 42
43 // Corrects font size for NativeButton control.
44 void CorrectNativeButtonFontSize(views::NativeButton* button);
45
46 // Corrects font size for Textfield control.
47 void CorrectTextfieldFontSize(views::Textfield* textfield);
48
41 // Returns URL used for account recovery. 49 // Returns URL used for account recovery.
42 GURL GetAccountRecoveryHelpUrl(); 50 GURL GetAccountRecoveryHelpUrl();
43 51
44 // Define the constants in |login| namespace to avoid potential 52 // Define the constants in |login| namespace to avoid potential
45 // conflict with other chromeos components. 53 // conflict with other chromeos components.
46 namespace login { 54 namespace login {
47 55
48 // Command tag for buttons on the lock screen. 56 // Command tag for buttons on the lock screen.
49 enum Command { 57 enum Command {
50 SIGN_OUT, 58 SIGN_OUT,
51 }; 59 };
52 60
61 // Minimal width for the button.
62 const int kButtonMinWidth = 90;
63
53 // Gap between edge and image view, and image view and controls. 64 // Gap between edge and image view, and image view and controls.
54 const int kBorderSize = 6; 65 const int kBorderSize = 6;
55 66
56 // The size of user image. 67 // The size of user image.
57 const int kUserImageSize = 256; 68 const int kUserImageSize = 256;
58 69
59 // Background color of the login controls. 70 // Background color of the login controls.
60 const SkColor kBackgroundColor = SK_ColorWHITE; 71 const SkColor kBackgroundColor = SK_ColorWHITE;
61 72
62 // Text color on the login controls. 73 // Text color on the login controls.
63 const SkColor kTextColor = SK_ColorWHITE; 74 const SkColor kTextColor = SK_ColorWHITE;
64 75
76 // Default link color on login/OOBE controls.
77 const SkColor kLinkColor = 0xFF0066CC;
78
65 // Default size of the OOBE screen. Includes 10px shadow from each side. 79 // Default size of the OOBE screen. Includes 10px shadow from each side.
66 // See rounded_rect_painter.cc for border definitions. 80 // See rounded_rect_painter.cc for border definitions.
67 const int kWizardScreenWidth = 800; 81 const int kWizardScreenWidth = 800;
68 const int kWizardScreenHeight = 450; 82 const int kWizardScreenHeight = 450;
69 83
70 const int kScreenCornerRadius = 10; 84 const int kScreenCornerRadius = 10;
71 const int kUserCornerRadius = 5; 85 const int kUserCornerRadius = 5;
72 86
73 87
74 } // namespace login 88 } // namespace login
75 89
76 } // namespace chromeos 90 } // namespace chromeos
77 91
78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/guest_user_view.cc ('k') | chrome/browser/chromeos/login/helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698