Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / win / touch_input.cc
blob0114bdd3a7fb1ed5ce9200d44250be55050a8141
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/win/touch_input.h"
7 namespace ui {
9 BOOL GetTouchInputInfoWrapper(HTOUCHINPUT handle,
10 UINT count,
11 PTOUCHINPUT pointer,
12 int size) {
13 typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT,
14 PTOUCHINPUT, int);
15 static GetTouchInputInfoPtr get_touch_input_info_func =
16 reinterpret_cast<GetTouchInputInfoPtr>(
17 GetProcAddress(GetModuleHandleA("user32.dll"), "GetTouchInputInfo"));
18 if (get_touch_input_info_func)
19 return get_touch_input_info_func(handle, count, pointer, size);
20 return FALSE;
23 } // namespace ui