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

Issue 2020143003: Identity the mouse pointer type from low-level events for Windows (Closed)

Created:
4 years, 6 months ago by lanwei
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

We hard coded the pointer type as mouse in ui::GetMousePointerDetailsFromNative for events sending from Windows. Now we use a mouse message from GetMessageExtraInfo to decide the actual input device type. GetMessageExtraInfo needs to be mask-checked against 0xFFFFFF00, and then compared with 0xFF515700. True when this mouse message was generated by a Tablet PC pen or touch screen. Otherwise it is from a mouse device. Additionally, in Windows Vista or later, the eighth bit, masked by 0x80, is used to differentiate touch input from pen input (0 = pen, 1 = touch). Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx BUG=614820 Committed: https://crrev.com/16ac979eddbdd5ccc045092c1260e42dd38191f6 Cr-Commit-Position: refs/heads/master@{#398025}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Remove touch pointer type for mouse event #

Patch Set 3 : Remove touch pointer type for mouse event #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M ui/events/win/events_win.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
lanwei
4 years, 6 months ago (2016-06-01 19:03:26 UTC) #4
Navid Zolghadr
https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc File ui/events/win/events_win.cc (right): https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode298 ui/events/win/events_win.cc:298: LPARAM message = ::GetMessageExtraInfo(); Do we have any sort ...
4 years, 6 months ago (2016-06-01 19:15:29 UTC) #5
lanwei
https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc File ui/events/win/events_win.cc (right): https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode298 ui/events/win/events_win.cc:298: LPARAM message = ::GetMessageExtraInfo(); On 2016/06/01 19:15:29, Navid Zolghadr ...
4 years, 6 months ago (2016-06-01 22:54:31 UTC) #6
tdresser
https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc File ui/events/win/events_win.cc (right): https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode303 ui/events/win/events_win.cc:303: return PointerDetails(EventPointerType::POINTER_TYPE_TOUCH); On 2016/06/01 22:54:31, lanwei wrote: > On ...
4 years, 6 months ago (2016-06-02 13:40:40 UTC) #7
Navid Zolghadr
https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc File ui/events/win/events_win.cc (right): https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode298 ui/events/win/events_win.cc:298: LPARAM message = ::GetMessageExtraInfo(); On 2016/06/01 22:54:31, lanwei wrote: ...
4 years, 6 months ago (2016-06-02 14:29:37 UTC) #8
Navid Zolghadr
On 2016/06/02 14:29:37, Navid Zolghadr wrote: > https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc > File ui/events/win/events_win.cc (right): > > https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode298 ...
4 years, 6 months ago (2016-06-02 15:16:15 UTC) #9
mustaq
LGTM with a nit. Also: please file a bug for the missing id case. https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc ...
4 years, 6 months ago (2016-06-02 15:28:24 UTC) #10
lanwei
https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc File ui/events/win/events_win.cc (right): https://codereview.chromium.org/2020143003/diff/20001/ui/events/win/events_win.cc#newcode26 ui/events/win/events_win.cc:26: #define MOUSEEVENTF_FROMTOUCHPEN 0xFF515700 On 2016/06/02 15:28:24, mustaq wrote: > ...
4 years, 6 months ago (2016-06-02 16:07:06 UTC) #12
ananta
lgtm
4 years, 6 months ago (2016-06-02 21:43:37 UTC) #13
sadrul
rs lgtm
4 years, 6 months ago (2016-06-03 11:16:12 UTC) #14
dtapuska
On 2016/06/03 11:16:12, sadrul wrote: > rs lgtm lgtm
4 years, 6 months ago (2016-06-03 12:55:45 UTC) #15
tdresser
LGTM
4 years, 6 months ago (2016-06-06 13:36:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020143003/60001
4 years, 6 months ago (2016-06-06 13:41:45 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 6 months ago (2016-06-06 14:58:41 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 15:00:04 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/16ac979eddbdd5ccc045092c1260e42dd38191f6
Cr-Commit-Position: refs/heads/master@{#398025}

Powered by Google App Engine
This is Rietveld 408576698