diff options
author | Zeno Albisser <zeno.albisser@theqtcompany.com> | 2014-12-05 15:04:29 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2014-12-09 10:49:28 +0100 |
commit | af6588f8d723931a298c995fa97259bb7f7deb55 (patch) | |
tree | 060ca707847ba1735f01af2372e0d5e494dc0366 /chromium/base/win/win_util.h | |
parent | 2fff84d821cc7b1c785f6404e0f8091333283e74 (diff) |
BASELINE: Update chromium to 40.0.2214.28 and ninja to 1.5.3.
Change-Id: I759465284fd64d59ad120219cbe257f7402c4181
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/base/win/win_util.h')
-rw-r--r-- | chromium/base/win/win_util.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/chromium/base/win/win_util.h b/chromium/base/win/win_util.h index 573c4c72506..8513f62bf19 100644 --- a/chromium/base/win/win_util.h +++ b/chromium/base/win/win_util.h @@ -33,10 +33,30 @@ struct IPropertyStore; struct _tagpropertykey; typedef _tagpropertykey PROPERTYKEY; +// This is the same as NONCLIENTMETRICS except that the +// unused member |iPaddedBorderWidth| has been removed. +struct NONCLIENTMETRICS_XP { + UINT cbSize; + int iBorderWidth; + int iScrollWidth; + int iScrollHeight; + int iCaptionWidth; + int iCaptionHeight; + LOGFONTW lfCaptionFont; + int iSmCaptionWidth; + int iSmCaptionHeight; + LOGFONTW lfSmCaptionFont; + int iMenuWidth; + int iMenuHeight; + LOGFONTW lfMenuFont; + LOGFONTW lfStatusFont; + LOGFONTW lfMessageFont; +}; + namespace base { namespace win { -BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); +BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS_XP* metrics); // Returns the string representing the current user sid. BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); @@ -134,6 +154,13 @@ BASE_EXPORT bool IsEnrolledToDomain(); // simulate being in a domain and false otherwise. BASE_EXPORT void SetDomainStateForTesting(bool state); +// Returns true if the current operating system has support for SHA-256 +// certificates. As its name indicates, this function provides a best-effort +// answer, which is solely based on comparing version numbers. The function +// may be re-implemented in the future to return a reliable value, based on +// run-time detection of this capability. +BASE_EXPORT bool MaybeHasSHA256Support(); + } // namespace win } // namespace base |