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 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Returns URL used for account recovery. | 100 // Returns URL used for account recovery. |
101 GURL GetAccountRecoveryHelpUrl(); | 101 GURL GetAccountRecoveryHelpUrl(); |
102 | 102 |
103 // Returns name of the currently connected network. | 103 // Returns name of the currently connected network. |
104 // If there are no connected networks, returns name of the network | 104 // If there are no connected networks, returns name of the network |
105 // that is in the "connecting" state. Otherwise empty string is returned. | 105 // that is in the "connecting" state. Otherwise empty string is returned. |
106 // If there are multiple connected networks, network priority: | 106 // If there are multiple connected networks, network priority: |
107 // Ethernet > WiFi > Cellular. Same for connecting network. | 107 // Ethernet > WiFi > Cellular. Same for connecting network. |
108 string16 GetCurrentNetworkName(NetworkLibrary* network_library); | 108 string16 GetCurrentNetworkName(NetworkLibrary* network_library); |
109 | 109 |
| 110 // This gets rid of the ugly X default cursor. |
| 111 void ResetXCursor(); |
| 112 |
110 // Define the constants in |login| namespace to avoid potential | 113 // Define the constants in |login| namespace to avoid potential |
111 // conflict with other chromeos components. | 114 // conflict with other chromeos components. |
112 namespace login { | 115 namespace login { |
113 | 116 |
114 // Command tag for buttons on the lock screen. | 117 // Command tag for buttons on the lock screen. |
115 enum Command { | 118 enum Command { |
116 SIGN_OUT, | 119 SIGN_OUT, |
117 }; | 120 }; |
118 | 121 |
119 // Gap between edge and image view, and image view and controls. | 122 // Gap between edge and image view, and image view and controls. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 188 |
186 // New pod sizes. | 189 // New pod sizes. |
187 const int kNewUserPodFullWidth = 372; | 190 const int kNewUserPodFullWidth = 372; |
188 const int kNewUserPodFullHeight = 372; | 191 const int kNewUserPodFullHeight = 372; |
189 const int kNewUserPodSmallWidth = 360; | 192 const int kNewUserPodSmallWidth = 360; |
190 const int kNewUserPodSmallHeight = 322; | 193 const int kNewUserPodSmallHeight = 322; |
191 | 194 |
192 } // namespace chromeos | 195 } // namespace chromeos |
193 | 196 |
194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
OLD | NEW |