summaryrefslogtreecommitdiffstats
path: root/chromium/base/win/win_util.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-10-13 13:24:50 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-10-14 10:57:25 +0000
commitaf3d4809763ef308f08ced947a73b624729ac7ea (patch)
tree4402b911e30383f6c6dace1e8cf3b8e85355db3a /chromium/base/win/win_util.h
parent0e8ff63a407fe323e215bb1a2c423c09a4747c8a (diff)
BASELINE: Update Chromium to 47.0.2526.14
Also adding in sources needed for spellchecking. Change-Id: Idd44170fa1616f26315188970a8d5ba7d472b18a Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'chromium/base/win/win_util.h')
-rw-r--r--chromium/base/win/win_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/base/win/win_util.h b/chromium/base/win/win_util.h
index 9f42e445748..3c900ff9b0a 100644
--- a/chromium/base/win/win_util.h
+++ b/chromium/base/win/win_util.h
@@ -166,6 +166,13 @@ BASE_EXPORT void SetDomainStateForTesting(bool state);
// run-time detection of this capability.
BASE_EXPORT bool MaybeHasSHA256Support();
+// Returns true if the current process can make USER32 or GDI32 calls such as
+// CreateWindow and CreateDC. Windows 8 and above allow the kernel component
+// of these calls to be disabled which can cause undefined behaviour such as
+// crashes. This function can be used to guard areas of code using these calls
+// and provide a fallback path if necessary.
+BASE_EXPORT bool IsUser32AndGdi32Available();
+
} // namespace win
} // namespace base