⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185748 in webkit


Ignore:
Timestamp:
Jun 19, 2015, 9:05:54 AM (11 years ago)
Author:
mitz@apple.com
Message:

Fixed the build for platforms that don’t have SafariServices.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView previewViewControllerForPosition:inSourceView:]):
(-[WKContentView commitPreviewViewController:]):
(-[WKContentView willPresentPreviewViewController:forPosition:inSourceView:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r185744 r185748  
     12015-06-19  Dan Bernstein  <mitz@apple.com>
     2
     3        Fixed the build for platforms that don’t have SafariServices.
     4
     5        * UIProcess/ios/WKContentViewInteraction.mm:
     6        (-[WKContentView previewViewControllerForPosition:inSourceView:]):
     7        (-[WKContentView commitPreviewViewController:]):
     8        (-[WKContentView willPresentPreviewViewController:forPosition:inSourceView:]):
     9
    1102015-06-19  Csaba Osztrogonác  <ossy@webkit.org>
    211
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r185706 r185748  
    31263126        return nil;
    31273127
    3128     _highlightLongPressCanClick = NO;
    3129 
    31303128    NSURL *targetURL = [NSURL URLWithString:_positionInformation.url];
    31313129    id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([_webView UIDelegate]);
    3132     if ([uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForURL:)])
     3130    if ([uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForURL:)]) {
     3131        _highlightLongPressCanClick = NO;
    31333132        return [uiDelegate _webView:_webView previewViewControllerForURL:targetURL];
    3134 
     3133    }
     3134
     3135#if HAVE(SAFARI_SERVICES_FRAMEWORK)
    31353136    SFSafariViewController *previewViewController = [allocSFSafariViewControllerInstance() initWithURL:targetURL];
    31363137    previewViewController._showingLinkPreview = YES;
     3138    _highlightLongPressCanClick = NO;
    31373139    return previewViewController;
     3140#else
     3141    return nil;
     3142#endif
    31383143}
    31393144
     
    31463151    }
    31473152
     3153#if HAVE(SAFARI_SERVICES_FRAMEWORK)
    31483154    if (![viewController isKindOfClass:getSFSafariViewControllerClass()])
    31493155        return;
     
    31573163    UIViewController *presentingViewController = viewController.presentingViewController ?: self.window.rootViewController;
    31583164    [presentingViewController presentViewController:viewController animated:NO completion:nil];
     3165#endif
    31593166}
    31603167
Note: See TracChangeset for help on using the changeset viewer.