OLD | NEW |
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 // 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 "base/compiler_specific.h" |
11 #include "base/string16.h" | 12 #include "base/string16.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
13 #include "views/controls/button/text_button.h" | 14 #include "views/controls/button/text_button.h" |
14 #include "views/view.h" | 15 #include "views/view.h" |
15 | 16 |
16 class GURL; | 17 class GURL; |
17 | 18 |
18 namespace gfx { | 19 namespace gfx { |
19 class Rect; | 20 class Rect; |
20 class Size; | 21 class Size; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 class WideButton : public views::NativeTextButton { | 153 class WideButton : public views::NativeTextButton { |
153 public: | 154 public: |
154 WideButton(views::ButtonListener* listener, const string16& text) | 155 WideButton(views::ButtonListener* listener, const string16& text) |
155 : NativeTextButton(listener, text) { | 156 : NativeTextButton(listener, text) { |
156 CorrectNativeButtonFontSize(this); | 157 CorrectNativeButtonFontSize(this); |
157 } | 158 } |
158 | 159 |
159 virtual ~WideButton() {} | 160 virtual ~WideButton() {} |
160 | 161 |
161 private: | 162 private: |
162 virtual gfx::Size GetPreferredSize(); | 163 virtual gfx::Size GetPreferredSize() OVERRIDE; |
163 | 164 |
164 DISALLOW_COPY_AND_ASSIGN(WideButton); | 165 DISALLOW_COPY_AND_ASSIGN(WideButton); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace login | 168 } // namespace login |
168 | 169 |
169 // Font size correction in pixels for login/oobe controls. | 170 // Font size correction in pixels for login/oobe controls. |
170 #if defined(CROS_FONTS_USING_BCI) | 171 #if defined(CROS_FONTS_USING_BCI) |
171 const int kFontSizeCorrectionDelta = 1; | 172 const int kFontSizeCorrectionDelta = 1; |
172 const int kNetworkSelectionLabelFontDelta = 1; | 173 const int kNetworkSelectionLabelFontDelta = 1; |
(...skipping 12 matching lines...) Expand all Loading... |
185 | 186 |
186 // New pod sizes. | 187 // New pod sizes. |
187 const int kNewUserPodFullWidth = 372; | 188 const int kNewUserPodFullWidth = 372; |
188 const int kNewUserPodFullHeight = 372; | 189 const int kNewUserPodFullHeight = 372; |
189 const int kNewUserPodSmallWidth = 360; | 190 const int kNewUserPodSmallWidth = 360; |
190 const int kNewUserPodSmallHeight = 322; | 191 const int kNewUserPodSmallHeight = 322; |
191 | 192 |
192 } // namespace chromeos | 193 } // namespace chromeos |
193 | 194 |
194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
OLD | NEW |