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

Issue 806693008: Media queries: excluded non-pointing devices from pointer/hover (Closed)

Created:
6 years ago by mustaq
Modified:
6 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media queries: excluded non-pointing devices from pointer/hover The pointer/hover media query spec is ambiguous about the inclusion of non-pointing input device like keyboards: http://dev.w3.org/csswg/mediaqueries-4/#mf-interaction This CL removes the such devices from consideration in Chrome---this seems more logical since pointer/hover queries make sense only for pointing devices. BUG=442795 Committed: https://crrev.com/7a42795e4c7c3449129d4077df0bd8c269c7ed4b Cr-Commit-Position: refs/heads/master@{#309203}

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK fix #

Total comments: 8

Patch Set 3 : Ozone implementation #

Total comments: 6

Patch Set 4 : Tweaked aurax11 & ozone defaults #

Total comments: 2

Patch Set 5 : FIXME to TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -58 lines) Patch
M ui/android/java/src/org/chromium/ui/base/TouchDevice.java View 2 chunks +10 lines, -10 lines 0 comments Download
M ui/base/touch/touch_device.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/touch/touch_device.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/base/touch/touch_device_android.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/touch/touch_device_aurax11.cc View 1 2 3 4 4 chunks +14 lines, -25 lines 0 comments Download
M ui/base/touch/touch_device_ozone.cc View 1 2 3 4 2 chunks +34 lines, -9 lines 0 comments Download
M ui/base/touch/touch_device_win.cc View 1 4 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
jdduke (slow)
https://codereview.chromium.org/806693008/diff/1/ui/base/touch/touch_device_android.cc File ui/base/touch/touch_device_android.cc (right): https://codereview.chromium.org/806693008/diff/1/ui/base/touch/touch_device_android.cc#newcode37 ui/base/touch/touch_device_android.cc:37: DCHECK(available_pointer_types == POINTER_TYPE_NONE); DCHECK_EQ?
6 years ago (2014-12-16 19:44:51 UTC) #3
mustaq
https://codereview.chromium.org/806693008/diff/1/ui/base/touch/touch_device_android.cc File ui/base/touch/touch_device_android.cc (right): https://codereview.chromium.org/806693008/diff/1/ui/base/touch/touch_device_android.cc#newcode37 ui/base/touch/touch_device_android.cc:37: DCHECK(available_pointer_types == POINTER_TYPE_NONE); On 2014/12/16 19:44:51, jdduke wrote: > ...
6 years ago (2014-12-16 20:34:02 UTC) #4
Rick Byers
lgtm
6 years ago (2014-12-16 21:23:09 UTC) #5
Rick Byers
On 2014/12/16 21:23:09, Rick Byers wrote: > lgtm It's worth noting that we'll get this ...
6 years ago (2014-12-16 21:24:32 UTC) #6
mustaq
sadrul@chromium.org: Need approval for ui/base/touch/touch_device*
6 years ago (2014-12-16 21:28:03 UTC) #8
sadrul
https://codereview.chromium.org/806693008/diff/20001/ui/base/touch/touch_device_aurax11.cc File ui/base/touch/touch_device_aurax11.cc (right): https://codereview.chromium.org/806693008/diff/20001/ui/base/touch/touch_device_aurax11.cc#newcode28 ui/base/touch/touch_device_aurax11.cc:28: available_pointer_types |= POINTER_TYPE_FINE; We can change these to assignments ...
6 years ago (2014-12-16 22:23:37 UTC) #9
mustaq
ptal https://codereview.chromium.org/806693008/diff/20001/ui/base/touch/touch_device_aurax11.cc File ui/base/touch/touch_device_aurax11.cc (right): https://codereview.chromium.org/806693008/diff/20001/ui/base/touch/touch_device_aurax11.cc#newcode28 ui/base/touch/touch_device_aurax11.cc:28: available_pointer_types |= POINTER_TYPE_FINE; On 2014/12/16 22:23:37, sadrul wrote: ...
6 years ago (2014-12-17 15:16:05 UTC) #11
Rick Byers
Since we're talking about making Ozone match AuraX11 defaults, I figure it's also worth debating ...
6 years ago (2014-12-17 15:28:46 UTC) #12
mustaq
ptal https://codereview.chromium.org/806693008/diff/60001/ui/base/touch/touch_device_aurax11.cc File ui/base/touch/touch_device_aurax11.cc (right): https://codereview.chromium.org/806693008/diff/60001/ui/base/touch/touch_device_aurax11.cc#newcode23 ui/base/touch/touch_device_aurax11.cc:23: int available_pointer_types = 0; On 2014/12/17 15:28:46, Rick ...
6 years ago (2014-12-17 17:47:49 UTC) #13
sadrul
Should the code for ozone and aurax11 be moved into a single file (e.g. touch_device_linux.cc) ...
6 years ago (2014-12-17 20:08:42 UTC) #14
mustaq
PTAL We are rushing to push the MQ-related changes by this week because I will ...
6 years ago (2014-12-18 15:07:32 UTC) #15
Rick Byers
On 2014/12/18 15:07:32, mustaq wrote: > PTAL > > We are rushing to push the ...
6 years ago (2014-12-18 17:04:39 UTC) #16
mustaq
On 2014/12/18 17:04:39, Rick Byers wrote: > On 2014/12/18 15:07:32, mustaq wrote: > > PTAL ...
6 years ago (2014-12-18 18:45:42 UTC) #17
Rick Byers
Thanks, this still lgtm
6 years ago (2014-12-18 19:30:41 UTC) #18
sadrul
LGTM With ozone being shipped in some chromeos devices in 41, we should unify the ...
6 years ago (2014-12-18 22:10:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806693008/100001
6 years ago (2014-12-19 14:34:23 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:100001)
6 years ago (2014-12-19 15:35:55 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-19 15:36:47 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7a42795e4c7c3449129d4077df0bd8c269c7ed4b
Cr-Commit-Position: refs/heads/master@{#309203}

Powered by Google App Engine
This is Rietveld 408576698