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

Issue 2673963002: Drop hover:on-demand support & let touch-screens report "none" instead. (Closed)

Created:
3 years, 10 months ago by mustaq
Modified:
3 years, 9 months ago
CC:
chromium-reviews, kenneth.christiansen, Yoav Weiss, blink-reviews-css, devtools-reviews_chromium.org, jam, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, darin-cc_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org, agrieve+watch_chromium.org, blink-reviews-api_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop hover:on-demand support & let touch-screens report "none" instead. The "hover" and "any-hover" media query features was originally speced to have three possible values {"none", "on-demand", "hover"}. The "on-demand" value has been removed from the spec recently: https://drafts.csswg.org/mediaqueries-4/#hover so we are considering removing support for this value. Through this CL, chromium drops the support for the "on-demand" value. Touch-screens will now report "none" instead to match mobile Safari. Blink intent thread: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/-sTmxMpl6iI BUG=654861 Review-Url: https://codereview.chromium.org/2673963002 Cr-Commit-Position: refs/heads/master@{#459223} Committed: https://chromium.googlesource.com/chromium/src/+/344035e6942d313099c3ceb741f2eb8231de1a2c

Patch Set 1 #

Patch Set 2 : Fixed Android build. #

Patch Set 3 : Rebased #

Total comments: 2

Patch Set 4 : bokan's comments. #

Total comments: 4

Patch Set 5 : rbyer's comments. #

Patch Set 6 : Removed blink::HoverTypeOnDemand. #

Patch Set 7 : Fixed tests. #

Total comments: 7

Patch Set 8 : Fixed Android default. #

Patch Set 9 : Fixed a "yikes!" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -140 lines) Patch
M content/public/common/web_preferences.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/media/mq-hover.html View 1 2 3 4 5 6 3 chunks +2 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/media/mq-hover-expected.txt View 1 2 3 4 5 6 5 chunks +2 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp View 1 2 3 4 5 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryExp.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.cpp View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/device_emulation.html View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/PointerProperties.h View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/TouchDevice.java View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M ui/base/touch/touch_device.h View 1 2 3 4 5 2 chunks +5 lines, -6 lines 0 comments Download
M ui/base/touch/touch_device_android.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -6 lines 0 comments Download
M ui/base/touch/touch_device_linux.cc View 1 2 3 4 2 chunks +1 line, -6 lines 0 comments Download
M ui/base/touch/touch_device_win.cc View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 47 (30 generated)
mustaq
ptal
3 years, 10 months ago (2017-02-03 20:26:37 UTC) #3
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/2673963002/1
3 years, 10 months ago (2017-02-03 20:38:58 UTC) #8
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 10 months ago (2017-02-03 20:38:59 UTC) #10
bokan
lgtm % nit https://codereview.chromium.org/2673963002/diff/40001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/2673963002/diff/40001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode54 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:54: * the hover-types supported by the ...
3 years, 10 months ago (2017-02-06 15:53:50 UTC) #21
mustaq
ptal, need owner's review: rbyers: third_party/WebKit/* avi: content/public/* and ui/* https://codereview.chromium.org/2673963002/diff/40001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/2673963002/diff/40001/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode54 ...
3 years, 10 months ago (2017-02-06 16:10:34 UTC) #23
Rick Byers
This change is effectively equivalent to completely removing hover:on-demand support, right? Even though we still ...
3 years, 10 months ago (2017-02-06 16:35:22 UTC) #24
mustaq
Done with the touch+mouse case, ptal if this is what you meant. Note one subtle ...
3 years, 10 months ago (2017-02-06 17:13:02 UTC) #25
mustaq
We decided to commit the counter-only change now, crrev.com/2678933002. I will leave this CL around ...
3 years, 10 months ago (2017-02-06 20:13:06 UTC) #26
mustaq
rbyers@ & bokan@: ptal, removed "on-demand" following the approved intent.
3 years, 9 months ago (2017-03-20 16:29:06 UTC) #28
Avi (use Gerrit)
On 2017/03/20 16:29:06, mustaq wrote: > rbyers@ & bokan@: ptal, removed "on-demand" following the approved ...
3 years, 9 months ago (2017-03-20 16:55:10 UTC) #32
Rick Byers
https://codereview.chromium.org/2673963002/diff/130001/third_party/WebKit/public/platform/PointerProperties.h File third_party/WebKit/public/platform/PointerProperties.h (right): https://codereview.chromium.org/2673963002/diff/130001/third_party/WebKit/public/platform/PointerProperties.h#newcode18 third_party/WebKit/public/platform/PointerProperties.h:18: enum HoverType { HoverTypeNone = 1 << 0, HoverTypeHover ...
3 years, 9 months ago (2017-03-21 20:47:17 UTC) #35
mustaq
https://codereview.chromium.org/2673963002/diff/130001/third_party/WebKit/public/platform/PointerProperties.h File third_party/WebKit/public/platform/PointerProperties.h (right): https://codereview.chromium.org/2673963002/diff/130001/third_party/WebKit/public/platform/PointerProperties.h#newcode18 third_party/WebKit/public/platform/PointerProperties.h:18: enum HoverType { HoverTypeNone = 1 << 0, HoverTypeHover ...
3 years, 9 months ago (2017-03-22 14:31:30 UTC) #36
Rick Byers
LGTM https://codereview.chromium.org/2673963002/diff/130001/ui/base/touch/touch_device_android.cc File ui/base/touch/touch_device_android.cc (left): https://codereview.chromium.org/2673963002/diff/130001/ui/base/touch/touch_device_android.cc#oldcode52 ui/base/touch/touch_device_android.cc:52: DCHECK_EQ(available_hover_types, HOVER_TYPE_NONE); On 2017/03/22 14:31:29, mustaq wrote: > ...
3 years, 9 months ago (2017-03-23 19:27:33 UTC) #37
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/2673963002/170001
3 years, 9 months ago (2017-03-23 19:35:55 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/178763)
3 years, 9 months ago (2017-03-23 20:17:05 UTC) #42
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/2673963002/170001
3 years, 9 months ago (2017-03-23 20:19:46 UTC) #44
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 21:21:08 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/344035e6942d313099c3ceb741f2...

Powered by Google App Engine
This is Rietveld 408576698