| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // ============================================================================= | 5 // ============================================================================= |
| 6 // PLEASE READ | 6 // PLEASE READ |
| 7 // | 7 // |
| 8 // In general, you should not be adding stuff to this file. | 8 // In general, you should not be adding stuff to this file. |
| 9 // | 9 // |
| 10 // - If your thing is only used in one place, just put it in a reasonable | 10 // - If your thing is only used in one place, just put it in a reasonable |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // above. Returns true on success. | 152 // above. Returns true on success. |
| 153 BASE_EXPORT bool DismissVirtualKeyboard(); | 153 BASE_EXPORT bool DismissVirtualKeyboard(); |
| 154 | 154 |
| 155 // Returns true if the machine is enrolled to a domain. | 155 // Returns true if the machine is enrolled to a domain. |
| 156 BASE_EXPORT bool IsEnrolledToDomain(); | 156 BASE_EXPORT bool IsEnrolledToDomain(); |
| 157 | 157 |
| 158 // Used by tests to mock any wanted state. Call with |state| set to true to | 158 // Used by tests to mock any wanted state. Call with |state| set to true to |
| 159 // simulate being in a domain and false otherwise. | 159 // simulate being in a domain and false otherwise. |
| 160 BASE_EXPORT void SetDomainStateForTesting(bool state); | 160 BASE_EXPORT void SetDomainStateForTesting(bool state); |
| 161 | 161 |
| 162 // Returns true if the current operating system has support for SHA-256 | |
| 163 // certificates. As its name indicates, this function provides a best-effort | |
| 164 // answer, which is solely based on comparing version numbers. The function | |
| 165 // may be re-implemented in the future to return a reliable value, based on | |
| 166 // run-time detection of this capability. | |
| 167 BASE_EXPORT bool MaybeHasSHA256Support(); | |
| 168 | |
| 169 // Returns true if the current process can make USER32 or GDI32 calls such as | 162 // Returns true if the current process can make USER32 or GDI32 calls such as |
| 170 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component | 163 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component |
| 171 // of these calls to be disabled which can cause undefined behaviour such as | 164 // of these calls to be disabled which can cause undefined behaviour such as |
| 172 // crashes. This function can be used to guard areas of code using these calls | 165 // crashes. This function can be used to guard areas of code using these calls |
| 173 // and provide a fallback path if necessary. | 166 // and provide a fallback path if necessary. |
| 174 BASE_EXPORT bool IsUser32AndGdi32Available(); | 167 BASE_EXPORT bool IsUser32AndGdi32Available(); |
| 175 | 168 |
| 176 } // namespace win | 169 } // namespace win |
| 177 } // namespace base | 170 } // namespace base |
| 178 | 171 |
| 179 #endif // BASE_WIN_WIN_UTIL_H_ | 172 #endif // BASE_WIN_WIN_UTIL_H_ |
| OLD | NEW |