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

Issue 2737123003: Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. (Closed)

Created:
3 years, 9 months ago by darktears
Modified:
3 years, 9 months ago
CC:
chromium-reviews, grt+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, ananta
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. On detachable/convertible devices when the keyboard/trackpad combo is detached/flipped the trackpad or keyboard may still be listed in Device Manager therefore GetSystemMetrics(SM_MOUSEPRESENT) will not return 0 and therefore we're assuming there is a mouse/trackpad connected. The fix is to rely on ConvertibleSlateMode instead which has been added part of Windows 8 and 10. BUG=442418 Review-Url: https://codereview.chromium.org/2737123003 Cr-Commit-Position: refs/heads/master@{#457851} Committed: https://chromium.googlesource.com/chromium/src/+/7b5e4e437bb223e9fd68f749f7b3325356719180

Patch Set 1 #

Patch Set 2 : Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. #

Total comments: 1

Patch Set 3 : Fix 'pointer', 'any-pointer', 'hover' and 'any-hover' value on detachable/convertible devices. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -15 lines) Patch
M base/win/win_util.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/touch/touch_device_win.cc View 1 2 2 chunks +35 lines, -15 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
darktears
3 years, 9 months ago (2017-03-08 22:51:33 UTC) #5
sadrul
I am afraid I don't know Windows enough to review this correctly. I can stamp ...
3 years, 9 months ago (2017-03-09 06:19:25 UTC) #10
grt (UTC plus 2)
ananta: IsWindows10TabletMode is your creation, yes? would you take a look at this related change? ...
3 years, 9 months ago (2017-03-09 09:39:17 UTC) #11
darktears
On 2017/03/09 09:39:17, grt (UTC plus 1) wrote: > ananta: IsWindows10TabletMode is your creation, yes? ...
3 years, 9 months ago (2017-03-14 15:34:33 UTC) #16
cpu_(ooo_6.6-7.5)
seems reasonable, I too would like to see iyengar take a peek.
3 years, 9 months ago (2017-03-16 17:18:52 UTC) #17
ananta
lgtm
3 years, 9 months ago (2017-03-16 18:47:43 UTC) #19
darktears
On 2017/03/16 18:47:43, ananta wrote: > lgtm iyengar any feedback or I can just go ...
3 years, 9 months ago (2017-03-17 16:27:39 UTC) #21
cpu_(ooo_6.6-7.5)
lgtm
3 years, 9 months ago (2017-03-17 17:06:03 UTC) #22
cpu_(ooo_6.6-7.5)
lgtm
3 years, 9 months ago (2017-03-17 17:06:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2737123003/40001
3 years, 9 months ago (2017-03-17 17:52:55 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 19:30:50 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7b5e4e437bb223e9fd68f749f7b3...

Powered by Google App Engine
This is Rietveld 408576698