Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: ui/base/win/touch_input.cc

Issue 12566007: Wrap calls to GetTouchInputInfo (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correcting namespace references. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/win/touch_input.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..70a07f52c1d34474d10502fa6507ff0c817fe4ee
--- /dev/null
+++ b/ui/base/win/touch_input.cc
@@ -0,0 +1,23 @@
+// 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,
+ PTOUCHINPUT pointer,
+ int size) {
+ typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT,
scottmg 2013/03/11 23:49:00 user32 is delayloaded https://code.google.com/p/ch
+ 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
« no previous file with comments | « ui/base/win/touch_input.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698