Index: ui/base/win/touch_input.cc |
diff --git a/ui/base/win/touch_input.cc b/ui/base/win/touch_input.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27aaa4ff038e785cad238a373935978d3eca977e |
--- /dev/null |
+++ b/ui/base/win/touch_input.cc |
@@ -0,0 +1,21 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/base/win/touch_input.h" |
+ |
+namespace ui { |
+ |
+UI_EXPORT BOOL GetTouchInputInfoWrapper(HTOUCHINPUT handle, UINT count, |
sky
2013/03/08 21:58:58
Same comment about each param on its own line.
girard
2013/03/11 15:04:42
Done.
|
+ PTOUCHINPUT pointer, int size) { |
+ typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT, |
+ PTOUCHINPUT, int); |
+ GetTouchInputInfoPtr get_touch_input_info_func = |
+ reinterpret_cast<GetTouchInputInfoPtr>( |
+ GetProcAddress(GetModuleHandleA("user32.dll"), "GetTouchInputInfo")); |
+ if (get_touch_input_info_func) |
+ return get_touch_input_info_func(handle, count, pointer, size); |
+ return FALSE; |
+} |
+ |
+} // namespace ui |