Changeset 166605 in webkit


Ignore:
Timestamp:
Apr 1, 2014 1:33:13 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

[iOS][WK2] Remove the two finger pan gesture recognizer until it is actually implemented
https://bugs.webkit.org/show_bug.cgi?id=131009

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-04-01
Reviewed by Sam Weinig.

The two finger pan should not block the pinch gesture recognizer.

  • UIProcess/ios/WKContentViewInteraction.h:
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView setupInteraction]):
(-[WKContentView cleanupInteraction]):
(-[WKContentView gestureRecognizerShouldBegin:]):
(-[WKContentView _twoFingerPanRecognized:]): Deleted.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166602 r166605  
     12014-04-01  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [iOS][WK2] Remove the two finger pan gesture recognizer until it is actually implemented
     4        https://bugs.webkit.org/show_bug.cgi?id=131009
     5
     6        Reviewed by Sam Weinig.
     7
     8        The two finger pan should not block the pinch gesture recognizer.
     9
     10        * UIProcess/ios/WKContentViewInteraction.h:
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView setupInteraction]):
     13        (-[WKContentView cleanupInteraction]):
     14        (-[WKContentView gestureRecognizerShouldBegin:]):
     15        (-[WKContentView _twoFingerPanRecognized:]): Deleted.
     16
    1172014-04-01  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.h

    r166384 r166605  
    8787    RetainPtr<UITapGestureRecognizer> _doubleTapGestureRecognizer;
    8888    RetainPtr<UITapGestureRecognizer> _twoFingerDoubleTapGestureRecognizer;
    89     RetainPtr<UIPanGestureRecognizer> _twoFingerPanGestureRecognizer;
    9089
    9190    RetainPtr<UIWKTextInteractionAssistant> _textSelectionAssistant;
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r166384 r166605  
    165165    [self addGestureRecognizer:_longPressGestureRecognizer.get()];
    166166
    167     _twoFingerPanGestureRecognizer = adoptNS([[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_twoFingerPanRecognized:)]);
    168     [_twoFingerPanGestureRecognizer setMinimumNumberOfTouches:2];
    169     [_twoFingerPanGestureRecognizer setMaximumNumberOfTouches:2];
    170     [_twoFingerPanGestureRecognizer setDelegate:self];
    171     [self addGestureRecognizer:_twoFingerPanGestureRecognizer.get()];
    172 
    173167    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_resetShowingTextStyle:) name:UIMenuControllerDidHideMenuNotification object:nil];
    174168    _showingTextStyleOptions = NO;
     
    191185    [_highlightLongPressGestureRecognizer setDelegate:nil];
    192186    [_longPressGestureRecognizer setDelegate:nil];
    193     [_twoFingerPanGestureRecognizer setDelegate:nil];
    194187}
    195188
     
    560553    }
    561554
    562     if (gestureRecognizer == _twoFingerPanGestureRecognizer) {
    563         notImplemented();
    564     }
    565 
    566555    return YES;
    567556}
     
    662651{
    663652    _smartMagnificationController->handleResetMagnificationGesture(gestureRecognizer.location);
    664 }
    665 
    666 - (void)_twoFingerPanRecognized:(UIPanGestureRecognizer *)gestureRecognizer
    667 {
    668     // FIXME: Add implementation.
    669653}
    670654
Note: See TracChangeset for help on using the changeset viewer.