diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-05-09 14:22:11 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-05-09 15:11:45 +0000 |
commit | 2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c (patch) | |
tree | e75f511546c5fd1a173e87c1f9fb11d7ac8d1af3 /chromium/base/win/win_util.h | |
parent | a4f3d46271c57e8155ba912df46a05559d14726e (diff) |
BASELINE: Update Chromium to 51.0.2704.41
Also adds in all smaller components by reversing logic for exclusion.
Change-Id: Ibf90b506e7da088ea2f65dcf23f2b0992c504422
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/base/win/win_util.h')
-rw-r--r-- | chromium/base/win/win_util.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/chromium/base/win/win_util.h b/chromium/base/win/win_util.h index 6162b51bb03..08e0112af91 100644 --- a/chromium/base/win/win_util.h +++ b/chromium/base/win/win_util.h @@ -26,6 +26,7 @@ #include <stdint.h> #include <string> +#include <vector> #include "base/base_export.h" #include "base/strings/string16.h" @@ -122,6 +123,10 @@ BASE_EXPORT bool ShouldCrashOnProcessDetach(); // process is aborted. BASE_EXPORT void SetAbortBehaviorForCrashReporting(); +// Checks whether the supplied |hwnd| is in Windows 10 tablet mode. Will return +// false on versions below 10. +BASE_EXPORT bool IsWindows10TabletMode(HWND hwnd); + // A tablet is a device that is touch enabled and also is being used // "like a tablet". This is used by the following:- // 1. Metrics:- To gain insight into how users use Chrome. @@ -159,13 +164,6 @@ 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(); - // 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 @@ -173,6 +171,19 @@ BASE_EXPORT bool MaybeHasSHA256Support(); // and provide a fallback path if necessary. BASE_EXPORT bool IsUser32AndGdi32Available(); +// Takes a snapshot of the modules loaded in the |process|. The returned +// HMODULEs are not add-ref'd, so they should not be closed and may be +// invalidated at any time (should a module be unloaded). |process| requires +// the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ permissions. +BASE_EXPORT bool GetLoadedModulesSnapshot(HANDLE process, + std::vector<HMODULE>* snapshot); + +// Adds or removes the MICROSOFT_TABLETPENSERVICE_PROPERTY property with the +// TABLET_DISABLE_FLICKS & TABLET_DISABLE_FLICKFALLBACKKEYS flags in order to +// disable pen flick gestures for the given HWND. +BASE_EXPORT void EnableFlicks(HWND hwnd); +BASE_EXPORT void DisableFlicks(HWND hwnd); + } // namespace win } // namespace base |