| 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 |  | 
| 56 namespace base { | 36 namespace base { | 
| 57 namespace win { | 37 namespace win { | 
| 58 | 38 | 
| 59 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS_XP* metrics); | 39 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); | 
| 60 | 40 | 
| 61 // Returns the string representing the current user sid. | 41 // Returns the string representing the current user sid. | 
| 62 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); | 42 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); | 
| 63 | 43 | 
| 64 // Returns true if the shift key is currently pressed. | 44 // Returns true if the shift key is currently pressed. | 
| 65 BASE_EXPORT bool IsShiftPressed(); | 45 BASE_EXPORT bool IsShiftPressed(); | 
| 66 | 46 | 
| 67 // Returns true if the ctrl key is currently pressed. | 47 // Returns true if the ctrl key is currently pressed. | 
| 68 BASE_EXPORT bool IsCtrlPressed(); | 48 BASE_EXPORT bool IsCtrlPressed(); | 
| 69 | 49 | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 158 // certificates. As its name indicates, this function provides a best-effort | 138 // certificates. As its name indicates, this function provides a best-effort | 
| 159 // answer, which is solely based on comparing version numbers. The function | 139 // answer, which is solely based on comparing version numbers. The function | 
| 160 // may be re-implemented in the future to return a reliable value, based on | 140 // may be re-implemented in the future to return a reliable value, based on | 
| 161 // run-time detection of this capability. | 141 // run-time detection of this capability. | 
| 162 BASE_EXPORT bool MaybeHasSHA256Support(); | 142 BASE_EXPORT bool MaybeHasSHA256Support(); | 
| 163 | 143 | 
| 164 }  // namespace win | 144 }  // namespace win | 
| 165 }  // namespace base | 145 }  // namespace base | 
| 166 | 146 | 
| 167 #endif  // BASE_WIN_WIN_UTIL_H_ | 147 #endif  // BASE_WIN_WIN_UTIL_H_ | 
| OLD | NEW | 
|---|