| Index: base/win/win_util.cc
|
| diff --git a/base/win/win_util.cc b/base/win/win_util.cc
|
| index 87bde159cd5ac0420d3043cd87797cacfaf3f133..7193d40f3597aaf976e80e3321fb51690098e496 100644
|
| --- a/base/win/win_util.cc
|
| +++ b/base/win/win_util.cc
|
| @@ -22,6 +22,8 @@
|
| #include <signal.h>
|
| #include <stddef.h>
|
| #include <stdlib.h>
|
| +#include <tchar.h> // Must be before tpcshrd.h or for any use of _T macro
|
| +#include <tpcshrd.h>
|
| #include <uiviewsettingsinterop.h>
|
| #include <windows.ui.viewmanagement.h>
|
| #include <winstring.h>
|
| @@ -694,5 +696,15 @@ bool GetLoadedModulesSnapshot(HANDLE process, std::vector<HMODULE>* snapshot) {
|
| return false;
|
| }
|
|
|
| +void EnableFlicks(HWND hwnd) {
|
| + ::RemoveProp(hwnd, MICROSOFT_TABLETPENSERVICE_PROPERTY);
|
| +}
|
| +
|
| +void DisableFlicks(HWND hwnd) {
|
| + ::SetProp(hwnd, MICROSOFT_TABLETPENSERVICE_PROPERTY,
|
| + reinterpret_cast<HANDLE>(TABLET_DISABLE_FLICKS |
|
| + TABLET_DISABLE_FLICKFALLBACKKEYS));
|
| +}
|
| +
|
| } // namespace win
|
| } // namespace base
|
|
|