Changeset 250755 in webkit


Ignore:
Timestamp:
Oct 4, 2019 4:18:18 PM (5 years ago)
Author:
dino@apple.com
Message:

Use a better name than allowFastClicksEverywhere
https://bugs.webkit.org/show_bug.cgi?id=202607
<rdar://problem/55997133>

Reviewed by Tim Horton.

This preference name is quite confusing. Change it to
PreferFasterClickOverDoubleTap.

  • Shared/WebPreferences.yaml:
  • Shared/WebPreferencesDefaultValues.h:
  • UIProcess/WebPageProxy.h:

(WebKit::WebPageProxy::preferFasterClickOverDoubleTap const):
(WebKit::WebPageProxy::allowsFastClicksEverywhere const): Deleted.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]):

  • UIProcess/ios/WebPageProxyIOS.mm:

(WebKit::WebPageProxy::effectiveContentModeAfterAdjustingPolicies):

Location:
trunk/Source/WebKit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r250752 r250755  
     12019-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
    1222019-10-04  Ross Kirsling  <ross.kirsling@sony.com>
    223
  • trunk/Source/WebKit/Shared/WebPreferences.yaml

    r250584 r250755  
    15641564  defaultValue: true
    15651565  condition: PLATFORM(IOS_FAMILY)
    1566   humanReadableName: "Faster clicks"
     1566  humanReadableName: "Fast clicks"
    15671567  humanReadableDescription: "Support faster clicks on zoomable pages"
    15681568  webcoreBinding: none
    15691569  category: internal
    15701570
    1571 FastClicksEverywhere:
    1572   type: bool
    1573   defaultValue: DEFAULT_FAST_CLICKS_EVERYWHERE
     1571PreferFasterClickOverDoubleTap:
     1572  type: bool
     1573  defaultValue: DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP
    15741574  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"
    15771577  webcoreBinding: none
    15781578  category: internal
  • trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h

    r250651 r250755  
    263263#endif
    264264
    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
    271269#endif
    272270
  • trunk/Source/WebKit/UIProcess/WebPageProxy.h

    r250256 r250755  
    527527    bool hasCommittedAnyProvisionalLoads() const { return m_hasCommittedAnyProvisionalLoads; }
    528528
    529     bool allowsFastClicksEverywhere() const { return m_allowsFastClicksEverywhere; }
     529    bool preferFasterClickOverDoubleTap() const { return m_preferFasterClickOverDoubleTap; }
    530530
    531531    void setIsUsingHighPerformanceWebGL(bool value) { m_isUsingHighPerformanceWebGL = value; }
     
    25212521    bool m_openedByDOM { false };
    25222522    bool m_hasCommittedAnyProvisionalLoads { false };
    2523     bool m_allowsFastClicksEverywhere { false };
     2523    bool m_preferFasterClickOverDoubleTap { false };
    25242524
    25252525    HashMap<String, Ref<WebURLSchemeHandler>> m_urlSchemeHandlersByScheme;
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r250401 r250755  
    17291729        return;
    17301730
    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);
    17331733        [self _setDoubleTapGesturesEnabled:NO];
    17341734        return;
  • trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

    r250256 r250755  
    14441444    }
    14451445
    1446     m_allowsFastClicksEverywhere = false;
     1446    m_preferFasterClickOverDoubleTap = false;
    14471447
    14481448    if (!useDesktopBrowsingMode) {
     
    14691469        policies.setSimulatedMouseEventsDispatchPolicy(WebsiteSimulatedMouseEventsDispatchPolicy::Allow);
    14701470        policies.setLegacyOverflowScrollingTouchPolicy(WebsiteLegacyOverflowScrollingTouchPolicy::Disable);
    1471         m_allowsFastClicksEverywhere = true;
     1471        m_preferFasterClickOverDoubleTap = true;
    14721472    }
    14731473
Note: See TracChangeset for help on using the changeset viewer.