Changeset 241900 in webkit


Ignore:
Timestamp:
Feb 21, 2019 1:43:43 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Move UIWebTouchEventsGestureRecognizer.activeTouchesByIdentifier to SPI
https://bugs.webkit.org/show_bug.cgi?id=194531
<rdar://problem/47714562>

Patch by Antoine Quint <Antoine Quint> on 2019-02-21
Reviewed by Tim Horton.

Follow-up commit to ensure this SPI is only called on newer versions of iOS.

Source/WebKit:

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView cancelPointersForGestureRecognizer:]):

Source/WTF:

  • wtf/Platform.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r241873 r241900  
     12019-02-21  Antoine Quint  <graouts@apple.com>
     2
     3        Move UIWebTouchEventsGestureRecognizer.activeTouchesByIdentifier to SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=194531
     5        <rdar://problem/47714562>
     6
     7        Reviewed by Tim Horton.
     8
     9        Follow-up commit to ensure this SPI is only called on newer versions of iOS.
     10
     11        * wtf/Platform.h:
     12
    1132019-02-21  Dean Jackson  <dino@apple.com>
    214
  • trunk/Source/WTF/wtf/Platform.h

    r241873 r241900  
    15131513#define ENABLE_MONOSPACE_FONT_EXCEPTION (__IPHONE_OS_VERSION_MIN_REQUIRED < 130000)
    15141514#endif
     1515
     1516#if PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000
     1517#define HAVE_UI_WEB_TOUCH_EVENTS_GESTURE_RECOGNIZER_WITH_ACTIVE_TOUCHES_BY_ID 1
     1518#endif
  • trunk/Source/WebKit/ChangeLog

    r241899 r241900  
     12019-02-21  Antoine Quint  <graouts@apple.com>
     2
     3        Move UIWebTouchEventsGestureRecognizer.activeTouchesByIdentifier to SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=194531
     5        <rdar://problem/47714562>
     6
     7        Reviewed by Tim Horton.
     8
     9        Follow-up commit to ensure this SPI is only called on newer versions of iOS.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView cancelPointersForGestureRecognizer:]):
     13
    1142019-02-21  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r241865 r241900  
    11891189- (void)cancelPointersForGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
    11901190{
     1191#if HAVE(UI_WEB_TOUCH_EVENTS_GESTURE_RECOGNIZER_WITH_ACTIVE_TOUCHES_BY_ID)
    11911192    // FIXME: <rdar://problem/48035706>
    1192     if (![_touchEventGestureRecognizer respondsToSelector:@selector(activeTouchesByIdentifier)])
    1193         return;
    1194 
    11951193    NSMapTable<NSNumber *, UITouch *> *activeTouches = [_touchEventGestureRecognizer activeTouchesByIdentifier];
    11961194    for (NSNumber *touchIdentifier in activeTouches) {
     
    11991197            _page->cancelPointer([touchIdentifier unsignedIntValue], WebCore::roundedIntPoint([touch locationInView:self]));
    12001198    }
     1199#endif
    12011200}
    12021201#endif
Note: See TracChangeset for help on using the changeset viewer.