| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include <string> | 27 #include <string> |
| 28 | 28 |
| 29 #include "base/base_export.h" | 29 #include "base/base_export.h" |
| 30 #include "base/strings/string16.h" | 30 #include "base/strings/string16.h" |
| 31 | 31 |
| 32 struct IPropertyStore; | 32 struct IPropertyStore; |
| 33 struct _tagpropertykey; | 33 struct _tagpropertykey; |
| 34 typedef _tagpropertykey PROPERTYKEY; | 34 typedef _tagpropertykey PROPERTYKEY; |
| 35 | 35 |
| 36 // This is the same as NONCLIENTMETRICS except that the |
| 37 // unused member |iPaddedBorderWidth| has been removed. |
| 38 struct NONCLIENTMETRICS_XP { |
| 39 UINT cbSize; |
| 40 int iBorderWidth; |
| 41 int iScrollWidth; |
| 42 int iScrollHeight; |
| 43 int iCaptionWidth; |
| 44 int iCaptionHeight; |
| 45 LOGFONTW lfCaptionFont; |
| 46 int iSmCaptionWidth; |
| 47 int iSmCaptionHeight; |
| 48 LOGFONTW lfSmCaptionFont; |
| 49 int iMenuWidth; |
| 50 int iMenuHeight; |
| 51 LOGFONTW lfMenuFont; |
| 52 LOGFONTW lfStatusFont; |
| 53 LOGFONTW lfMessageFont; |
| 54 }; |
| 55 |
| 36 namespace base { | 56 namespace base { |
| 37 namespace win { | 57 namespace win { |
| 38 | 58 |
| 39 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); | 59 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS_XP* metrics); |
| 40 | 60 |
| 41 // Returns the string representing the current user sid. | 61 // Returns the string representing the current user sid. |
| 42 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); | 62 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); |
| 43 | 63 |
| 44 // Returns true if the shift key is currently pressed. | 64 // Returns true if the shift key is currently pressed. |
| 45 BASE_EXPORT bool IsShiftPressed(); | 65 BASE_EXPORT bool IsShiftPressed(); |
| 46 | 66 |
| 47 // Returns true if the ctrl key is currently pressed. | 67 // Returns true if the ctrl key is currently pressed. |
| 48 BASE_EXPORT bool IsCtrlPressed(); | 68 BASE_EXPORT bool IsCtrlPressed(); |
| 49 | 69 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // certificates. As its name indicates, this function provides a best-effort | 158 // certificates. As its name indicates, this function provides a best-effort |
| 139 // answer, which is solely based on comparing version numbers. The function | 159 // answer, which is solely based on comparing version numbers. The function |
| 140 // may be re-implemented in the future to return a reliable value, based on | 160 // may be re-implemented in the future to return a reliable value, based on |
| 141 // run-time detection of this capability. | 161 // run-time detection of this capability. |
| 142 BASE_EXPORT bool MaybeHasSHA256Support(); | 162 BASE_EXPORT bool MaybeHasSHA256Support(); |
| 143 | 163 |
| 144 } // namespace win | 164 } // namespace win |
| 145 } // namespace base | 165 } // namespace base |
| 146 | 166 |
| 147 #endif // BASE_WIN_WIN_UTIL_H_ | 167 #endif // BASE_WIN_WIN_UTIL_H_ |
| OLD | NEW |