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

Issue 12566007: Wrap calls to GetTouchInputInfo (Closed)

Created:
7 years, 9 months ago by girard
Modified:
7 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Wrap calls to GetTouchInputInfo This function is not available before Win7. BUG=181073 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187406

Patch Set 1 #

Total comments: 8

Patch Set 2 : Adding comments, reformat. #

Patch Set 3 : Rebase for CQ #

Patch Set 4 : Correcting namespace references. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -6 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
A ui/base/win/touch_input.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A ui/base/win/touch_input.cc View 1 1 chunk +23 lines, -0 lines 1 comment Download
M ui/ui.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
girard
Wrap up GetTouchInputInfo for safety - it's not available pre-Win7.
7 years, 9 months ago (2013-03-08 20:37:11 UTC) #1
sky
LGTM with the following changes. https://codereview.chromium.org/12566007/diff/1/ui/base/win/touch_input.cc File ui/base/win/touch_input.cc (right): https://codereview.chromium.org/12566007/diff/1/ui/base/win/touch_input.cc#newcode9 ui/base/win/touch_input.cc:9: UI_EXPORT BOOL GetTouchInputInfoWrapper(HTOUCHINPUT handle, ...
7 years, 9 months ago (2013-03-08 21:58:58 UTC) #2
girard
Thanks, Scott. Corrections have been made, and I'm submitting to the CQ. https://codereview.chromium.org/12566007/diff/1/ui/base/win/touch_input.cc File ui/base/win/touch_input.cc ...
7 years, 9 months ago (2013-03-11 15:04:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/12566007/6001
7 years, 9 months ago (2013-03-11 15:04:56 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/omnibox/omnibox_view_win.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-11 15:04:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/12566007/11001
7 years, 9 months ago (2013-03-11 16:59:59 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-11 17:47:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/12566007/6003
7 years, 9 months ago (2013-03-11 19:22:23 UTC) #8
commit-bot: I haz the power
Change committed as 187406
7 years, 9 months ago (2013-03-11 23:27:23 UTC) #9
scottmg
https://chromiumcodereview.appspot.com/12566007/diff/6003/ui/base/win/touch_input.cc File ui/base/win/touch_input.cc (right): https://chromiumcodereview.appspot.com/12566007/diff/6003/ui/base/win/touch_input.cc#newcode13 ui/base/win/touch_input.cc:13: typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT, user32 is delayloaded https://code.google.com/p/chromium/codesearch#chromium/src/ui/views/views.gyp&q=DelayLoadDLLs%20user32&sq=package:chromium&type=cs&l=524 so ...
7 years, 9 months ago (2013-03-11 23:48:59 UTC) #10
cpu_(ooo_6.6-7.5)
yes, version check is *much* cheaper than GetProcAddress because GPA grabs the process wide loader ...
7 years, 9 months ago (2013-03-12 01:35:58 UTC) #11
girard
7 years, 9 months ago (2013-03-12 14:49:35 UTC) #12
Message was sent while issue was closed.
On 2013/03/11 23:48:59, scottmg wrote:
>
https://chromiumcodereview.appspot.com/12566007/diff/6003/ui/base/win/touch_i...
> File ui/base/win/touch_input.cc (right):
> 
>
https://chromiumcodereview.appspot.com/12566007/diff/6003/ui/base/win/touch_i...
> ui/base/win/touch_input.cc:13: typedef BOOL(WINAPI
> *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT,
> user32 is delayloaded
>
https://code.google.com/p/chromium/codesearch#chromium/src/ui/views/views.gyp...
> so just doing a version check rather than beating on GetProcAddress would be
> fine.

The version check would work for modules that use delayload on User32. 
ui_unittests doesn't seem to do this. I've adapted the code in 
https://codereview.chromium.org/12585005 to avoid multiple calls to
GetProcAddress.

Powered by Google App Engine
This is Rietveld 408576698