Changeset 250755 in webkit
- Timestamp:
- Oct 4, 2019 4:18:18 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r250752 r250755 1 2019-10-04 Dean Jackson <dino@apple.com> 2 3 Use a better name than allowFastClicksEverywhere 4 https://bugs.webkit.org/show_bug.cgi?id=202607 5 <rdar://problem/55997133> 6 7 Reviewed by Tim Horton. 8 9 This preference name is quite confusing. Change it to 10 PreferFasterClickOverDoubleTap. 11 12 * Shared/WebPreferences.yaml: 13 * Shared/WebPreferencesDefaultValues.h: 14 * UIProcess/WebPageProxy.h: 15 (WebKit::WebPageProxy::preferFasterClickOverDoubleTap const): 16 (WebKit::WebPageProxy::allowsFastClicksEverywhere const): Deleted. 17 * UIProcess/ios/WKContentViewInteraction.mm: 18 (-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]): 19 * UIProcess/ios/WebPageProxyIOS.mm: 20 (WebKit::WebPageProxy::effectiveContentModeAfterAdjustingPolicies): 21 1 22 2019-10-04 Ross Kirsling <ross.kirsling@sony.com> 2 23 -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r250584 r250755 1564 1564 defaultValue: true 1565 1565 condition: PLATFORM(IOS_FAMILY) 1566 humanReadableName: "Fast erclicks"1566 humanReadableName: "Fast clicks" 1567 1567 humanReadableDescription: "Support faster clicks on zoomable pages" 1568 1568 webcoreBinding: none 1569 1569 category: internal 1570 1570 1571 FastClicksEverywhere:1572 type: bool 1573 defaultValue: DEFAULT_ FAST_CLICKS_EVERYWHERE1571 PreferFasterClickOverDoubleTap: 1572 type: bool 1573 defaultValue: DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP 1574 1574 condition: PLATFORM(IOS_FAMILY) 1575 humanReadableName: " Fast clicks everywhere"1576 humanReadableDescription: " Force fast clicks on all pages"1575 humanReadableName: "Use fast clicks before double tap" 1576 humanReadableDescription: "Prefer a faster click over a double tap" 1577 1577 webcoreBinding: none 1578 1578 category: internal -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h
r250651 r250755 263 263 #endif 264 264 265 #if PLATFORM(IOS_FAMILY) 266 #if PLATFORM(WATCHOS) 267 #define DEFAULT_FAST_CLICKS_EVERYWHERE false 268 #else 269 #define DEFAULT_FAST_CLICKS_EVERYWHERE true 270 #endif 265 #if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) 266 #define DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP true 267 #else 268 #define DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP false 271 269 #endif 272 270 -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r250256 r250755 527 527 bool hasCommittedAnyProvisionalLoads() const { return m_hasCommittedAnyProvisionalLoads; } 528 528 529 bool allowsFastClicksEverywhere() const { return m_allowsFastClicksEverywhere; }529 bool preferFasterClickOverDoubleTap() const { return m_preferFasterClickOverDoubleTap; } 530 530 531 531 void setIsUsingHighPerformanceWebGL(bool value) { m_isUsingHighPerformanceWebGL = value; } … … 2521 2521 bool m_openedByDOM { false }; 2522 2522 bool m_hasCommittedAnyProvisionalLoads { false }; 2523 bool m_ allowsFastClicksEverywhere{ false };2523 bool m_preferFasterClickOverDoubleTap { false }; 2524 2524 2525 2525 HashMap<String, Ref<WebURLSchemeHandler>> m_urlSchemeHandlersByScheme; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r250401 r250755 1729 1729 return; 1730 1730 1731 if (_page->preferences(). fastClicksEverywhere() && _page->allowsFastClicksEverywhere()) {1732 RELEASE_LOG(ViewGestures, "Potential tap found an element and fast taps are forced on. Trigger click. (%p)", self);1731 if (_page->preferences().preferFasterClickOverDoubleTap() && _page->preferFasterClickOverDoubleTap()) { 1732 RELEASE_LOG(ViewGestures, "Potential tap found an element and fast taps are preferred. Trigger click. (%p)", self); 1733 1733 [self _setDoubleTapGesturesEnabled:NO]; 1734 1734 return; -
trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm
r250256 r250755 1444 1444 } 1445 1445 1446 m_ allowsFastClicksEverywhere= false;1446 m_preferFasterClickOverDoubleTap = false; 1447 1447 1448 1448 if (!useDesktopBrowsingMode) { … … 1469 1469 policies.setSimulatedMouseEventsDispatchPolicy(WebsiteSimulatedMouseEventsDispatchPolicy::Allow); 1470 1470 policies.setLegacyOverflowScrollingTouchPolicy(WebsiteLegacyOverflowScrollingTouchPolicy::Disable); 1471 m_ allowsFastClicksEverywhere= true;1471 m_preferFasterClickOverDoubleTap = true; 1472 1472 } 1473 1473
Note: See TracChangeset
for help on using the changeset viewer.