Changeset 246137 in webkit
- Timestamp:
- Jun 5, 2019, 7:10:51 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 6 added
- 17 edited
-
ChangeLog (modified) (1 diff)
-
Shared/API/APIObject.h (modified) (1 diff)
-
Shared/API/Cocoa/WebKit.h (modified) (1 diff)
-
Shared/Cocoa/APIObject.mm (modified) (2 diffs)
-
Sources.txt (modified) (1 diff)
-
SourcesCocoa.txt (modified) (1 diff)
-
UIProcess/API/APIContextMenuElementInfo.cpp (added)
-
UIProcess/API/APIContextMenuElementInfo.h (added)
-
UIProcess/API/Cocoa/WKContextMenuElementInfo.h (added)
-
UIProcess/API/Cocoa/WKContextMenuElementInfo.mm (added)
-
UIProcess/API/Cocoa/WKContextMenuElementInfoInternal.h (added)
-
UIProcess/API/Cocoa/WKContextMenuElementInfoPrivate.h (added)
-
UIProcess/API/Cocoa/WKPreviewElementInfo.h (modified) (1 diff)
-
UIProcess/API/Cocoa/WKUIDelegatePrivate.h (modified) (3 diffs)
-
UIProcess/API/Cocoa/_WKActivatedElementInfo.h (modified) (1 diff)
-
UIProcess/API/Cocoa/_WKActivatedElementInfo.mm (modified) (3 diffs)
-
UIProcess/Cocoa/WebViewImpl.h (modified) (1 diff)
-
UIProcess/Cocoa/WebViewImpl.mm (modified) (2 diffs)
-
UIProcess/ios/WKActionSheetAssistant.h (modified) (2 diffs)
-
UIProcess/ios/WKActionSheetAssistant.mm (modified) (2 diffs)
-
UIProcess/ios/WKContentView.h (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (8 diffs)
-
WebKit.xcodeproj/project.pbxproj (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r246136 r246137 1 2019-06-05 Alex Christensen <achristensen@webkit.org> 2 3 Introduce new SPI for context menus on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=198590 5 6 Reviewed by Tim Horton. 7 8 Also introduce WKContextMenuElementInfo which is API. 9 This is part of <rdar://problem/51003503> 10 11 * Shared/API/APIObject.h: 12 * Shared/API/Cocoa/WebKit.h: 13 * Shared/Cocoa/APIObject.mm: 14 (API::Object::newObject): 15 * Sources.txt: 16 * SourcesCocoa.txt: 17 * UIProcess/API/APIContextMenuElementInfo.cpp: Added. 18 (API::ContextMenuElementInfo::ContextMenuElementInfo): 19 * UIProcess/API/APIContextMenuElementInfo.h: Added. 20 * UIProcess/API/Cocoa/WKContextMenuElementInfo.h: Added. 21 * UIProcess/API/Cocoa/WKContextMenuElementInfo.mm: Added. 22 (-[WKContextMenuElementInfo linkURL]): 23 (-[WKContextMenuElementInfo _apiObject]): 24 (-[WKContextMenuElementInfo _activatedElementInfo]): 25 * UIProcess/API/Cocoa/WKContextMenuElementInfoInternal.h: Added. 26 * UIProcess/API/Cocoa/WKContextMenuElementInfoPrivate.h: Added. 27 * UIProcess/API/Cocoa/WKPreviewElementInfo.h: 28 * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: 29 * UIProcess/API/Cocoa/_WKActivatedElementInfo.h: 30 * UIProcess/API/Cocoa/_WKActivatedElementInfo.mm: 31 (-[_WKActivatedElementInfo _initWithInteractionInformationAtPosition:]): 32 (-[_WKActivatedElementInfo isAnimatedImage]): 33 * UIProcess/ios/WKActionSheetAssistant.h: 34 * UIProcess/ios/WKActionSheetAssistant.mm: 35 (-[WKActionSheetAssistant defaultActionsForLinkSheet:]): 36 (-[WKActionSheetAssistant defaultActionsForImageSheet:]): 37 * UIProcess/ios/WKContentView.h: 38 * UIProcess/ios/WKContentViewInteraction.mm: 39 * WebKit.xcodeproj/project.pbxproj: 40 1 41 2019-06-05 Jer Noble <jer.noble@apple.com> 2 42 -
trunk/Source/WebKit/Shared/API/APIObject.h
r245481 r246137 110 110 ContentRuleListAction, 111 111 ContentRuleListStore, 112 #if PLATFORM(IOS_FAMILY) 113 ContextMenuElementInfo, 114 #endif 112 115 ContextMenuListener, 113 116 CookieManager, -
trunk/Source/WebKit/Shared/API/Cocoa/WebKit.h
r243787 r246137 28 28 #import <WebKit/WKContentRuleList.h> 29 29 #import <WebKit/WKContentRuleListStore.h> 30 #import <WebKit/WKContextMenuElementInfo.h> 30 31 #import <WebKit/WKError.h> 31 32 #import <WebKit/WKFoundation.h> -
trunk/Source/WebKit/Shared/Cocoa/APIObject.mm
r245481 r246137 34 34 #import "WKContentRuleListInternal.h" 35 35 #import "WKContentRuleListStoreInternal.h" 36 #import "WKContextMenuElementInfoInternal.h" 36 37 #import "WKFrameInfoInternal.h" 37 38 #import "WKHTTPCookieStoreInternal.h" … … 314 315 break; 315 316 317 #if PLATFORM(IOS_FAMILY) 318 case Type::ContextMenuElementInfo: 319 wrapper = [WKContextMenuElementInfo alloc]; 320 break; 321 #endif 322 316 323 case Type::CustomHeaderFields: 317 324 wrapper = [_WKCustomHeaderFields alloc]; -
trunk/Source/WebKit/Sources.txt
r245540 r246137 301 301 UIProcess/API/APIContentRuleListAction.cpp 302 302 UIProcess/API/APIContentRuleListStore.cpp 303 UIProcess/API/APIContextMenuElementInfo.cpp 303 304 UIProcess/API/APIExperimentalFeature.cpp 304 305 UIProcess/API/APIFrameInfo.cpp -
trunk/Source/WebKit/SourcesCocoa.txt
r246048 r246137 285 285 UIProcess/API/Cocoa/WKContentRuleList.mm 286 286 UIProcess/API/Cocoa/WKContentRuleListStore.mm 287 UIProcess/API/Cocoa/WKContextMenuElementInfo.mm 287 288 UIProcess/API/Cocoa/WKError.mm 288 289 UIProcess/API/Cocoa/WKFrameInfo.mm -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreviewElementInfo.h
r242339 r246137 32 32 NS_ASSUME_NONNULL_BEGIN 33 33 34 WK_CLASS_ AVAILABLE(ios(10.0))34 WK_CLASS_DEPRECATED_WITH_REPLACEMENT("WKContextMenuElementInfo", ios(10.0, WK_IOS_TBA)) 35 35 @interface WKPreviewElementInfo : NSObject <NSCopying> 36 36 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
r245294 r246137 41 41 42 42 #if TARGET_OS_IOS 43 @class UIContextMenuConfiguration; 43 44 @class UIDragItem; 44 45 @class UITargetedDragPreview; 46 @class WKContextMenuElementInfo; 47 @protocol UIContextMenuInteractionCommitAnimating; 45 48 @protocol UIDragSession; 46 49 @protocol UIDropSession; … … 136 139 - (BOOL)_webView:(WKWebView *)webView shouldRequestGeolocationAuthorizationForURL:(NSURL *)url isMainFrame:(BOOL)isMainFrame mainFrameURL:(NSURL *)mainFrameURL; 137 140 - (void)_webView:(WKWebView *)webView requestGeolocationAuthorizationForURL:(NSURL *)url frame:(WKFrameInfo *)frame decisionHandler:(void (^)(BOOL authorized))decisionHandler WK_API_AVAILABLE(ios(11.0)); 138 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForURL:(NSURL *)url WK_API_AVAILABLE(ios(9.0)); 139 - (void)_webView:(WKWebView *)webView commitPreviewedViewController:(UIViewController *)previewedViewController WK_API_AVAILABLE(ios(9.0)); 140 - (void)_webView:(WKWebView *)webView willPreviewImageWithURL:(NSURL *)imageURL WK_API_AVAILABLE(ios(9.0)); 141 - (void)_webView:(WKWebView *)webView commitPreviewedImageWithURL:(NSURL *)imageURL WK_API_AVAILABLE(ios(9.0)); 142 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController committing:(BOOL)committing WK_API_AVAILABLE(ios(9.0)); 143 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController WK_API_AVAILABLE(ios(9.0)); 141 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForURL:(NSURL *)url WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(9.0, WK_IOS_TBA)); 142 - (void)_webView:(WKWebView *)webView commitPreviewedViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView:commitContextMenu:", ios(9.0, WK_IOS_TBA)); 143 - (void)_webView:(WKWebView *)webView willPreviewImageWithURL:(NSURL *)imageURL WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(9.0, WK_IOS_TBA)); 144 - (void)_webView:(WKWebView *)webView commitPreviewedImageWithURL:(NSURL *)imageURL WK_API_DEPRECATED_WITH_REPLACEMENT("webView:commitContextMenu:", ios(9.0, WK_IOS_TBA)); 145 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController committing:(BOOL)committing WK_API_DEPRECATED_WITH_REPLACEMENT("webView:dismissContextMenu:", ios(9.0, WK_IOS_TBA)); 146 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView:dismissContextMenu:", ios(9.0, WK_IOS_TBA)); 147 148 // This needs to be kept once there is an API version to continue to do callbacks for image element context menus. 149 - (void)_webView:(WKWebView *)webView contextMenuConfigurationForElement:(WKContextMenuElementInfo *)elementInfo completionHandler:(void(^)(UIContextMenuConfiguration *))completionHandler WK_API_AVAILABLE(ios(WK_IOS_TBA)); 150 151 // These can be removed once there is an API version. 152 - (void)_webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator WK_API_AVAILABLE(ios(WK_IOS_TBA)); 153 - (void)_webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA)); 154 - (void)_webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA)); 155 144 156 - (BOOL)_webView:(WKWebView *)webView showCustomSheetForElement:(_WKActivatedElementInfo *)element WK_API_AVAILABLE(ios(10.0)); 145 157 - (void)_webView:(WKWebView *)webView alternateActionForURL:(NSURL *)url WK_API_AVAILABLE(ios(10.0)); … … 148 160 - (NSUInteger)_webView:(WKWebView *)webView indexIntoAttachmentListForElement:(_WKActivatedElementInfo *)element WK_API_AVAILABLE(ios(10.3)); 149 161 - (UIEdgeInsets)_webView:(WKWebView *)webView finalObscuredInsetsForScrollView:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset WK_API_AVAILABLE(ios(9.0)); 150 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo WK_API_ AVAILABLE(ios(9.0));151 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForAnimatedImageAtURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo imageSize:(CGSize)imageSize WK_API_ AVAILABLE(ios(9.0));162 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:", ios(9.0, WK_IOS_TBA)); 163 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForAnimatedImageAtURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo imageSize:(CGSize)imageSize WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:", ios(9.0, WK_IOS_TBA)); 152 164 - (UIViewController *)_presentingViewControllerForWebView:(WKWebView *)webView WK_API_AVAILABLE(ios(10.0)); 153 165 - (void)_webView:(WKWebView *)webView getAlternateURLFromImage:(UIImage *)image completionHandler:(void (^)(NSURL *alternateURL, NSDictionary *userInfo))completionHandler WK_API_AVAILABLE(ios(11.0)); 154 166 - (NSURL *)_webView:(WKWebView *)webView alternateURLFromImage:(UIImage *)image userInfo:(NSDictionary **)userInfo WK_API_AVAILABLE(ios(11.0)); 155 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForImage:(UIImage *)image alternateURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo WK_API_ AVAILABLE(ios(11.0));167 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForImage:(UIImage *)image alternateURL:(NSURL *)url defaultActions:(NSArray<_WKElementAction *> *)actions elementInfo:(_WKActivatedElementInfo *)elementInfo WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:", ios(11.0, WK_IOS_TBA)); 156 168 - (NSArray *)_webView:(WKWebView *)webView adjustedDataInteractionItemProviders:(NSArray *)originalItemProviders WK_API_AVAILABLE(ios(11.0)); 157 169 - (NSArray *)_webView:(WKWebView *)webView adjustedDataInteractionItemProvidersForItemProvider:(id)itemProvider representingObjects:(NSArray *)representingObjects additionalData:(NSDictionary *)additionalData WK_API_AVAILABLE(ios(11.0)); -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKActivatedElementInfo.h
r244368 r246137 48 48 @property (nonatomic, readonly) CGRect boundingRect; 49 49 @property (nonatomic, readonly) NSString *ID WK_API_AVAILABLE(macos(10.12), ios(10.0)); 50 @property (nonatomic, readonly) BOOL isAnimatedImage WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 50 51 #if TARGET_OS_IPHONE 51 52 @property (nonatomic, readonly) NSDictionary *userInfo WK_API_AVAILABLE(ios(11.0)); -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKActivatedElementInfo.mm
r244368 r246137 52 52 RetainPtr<NSImage> _nsImage; 53 53 #endif 54 BOOL _animatedImage; 54 55 } 55 56 … … 82 83 _image = information.image; 83 84 _ID = information.idAttribute; 85 _animatedImage = information.isAnimatedImage; 84 86 85 87 return self; … … 137 139 } 138 140 141 - (BOOL)isAnimatedImage 142 { 143 return _animatedImage; 144 } 145 139 146 #if PLATFORM(IOS_FAMILY) 140 147 - (NSDictionary *)userInfo -
trunk/Source/WebKit/UIProcess/Cocoa/WebViewImpl.h
r245072 r246137 141 141 class WebPageProxy; 142 142 class WebProcessPool; 143 class WebProcessProxy; 143 144 struct ColorSpaceData; 144 145 struct WebHitTestResultData; -
trunk/Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm
r245796 r246137 1570 1570 NSView *webView = m_view.getAutoreleased(); 1571 1571 1572 if (direction == FocusDirectionForward) {1572 if (direction == WebCore::FocusDirectionForward) { 1573 1573 // Since we're trying to move focus out of m_webView, and because 1574 1574 // m_webView may contain subviews within it, we ask it for the next key … … 3612 3612 if ([parameter isKindOfClass:[NSValue class]]) { 3613 3613 NSRect rect = [(NSValue *)parameter rectValue]; 3614 return [NSValue valueWithRect:m_pageClient->rootViewToScreen( IntRect(rect))];3614 return [NSValue valueWithRect:m_pageClient->rootViewToScreen(WebCore::IntRect(rect))]; 3615 3615 } 3616 3616 } -
trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.h
r242801 r246137 39 39 @class WKActionSheetAssistant; 40 40 @class _WKActivatedElementInfo; 41 @class _WKElementAction; 41 42 @protocol WKActionSheetDelegate; 42 43 … … 77 78 - (void)cleanupSheet; 78 79 - (void)updateSheetPosition; 79 - (RetainPtr<NSArray >)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo;80 - (RetainPtr<NSArray >)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo;80 - (RetainPtr<NSArray<_WKElementAction *>>)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo; 81 - (RetainPtr<NSArray<_WKElementAction *>>)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo; 81 82 - (BOOL)isShowingSheet; 82 83 - (void)interactionDidStartWithPositionInformation:(const WebKit::InteractionInformationAtPosition&)information; -
trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm
r246023 r246137 530 530 } 531 531 532 - (RetainPtr<NSArray >)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo532 - (RetainPtr<NSArray<_WKElementAction *>>)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo 533 533 { 534 534 NSURL *targetURL = [elementInfo URL]; … … 557 557 } 558 558 559 - (RetainPtr<NSArray >)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo559 - (RetainPtr<NSArray<_WKElementAction *>>)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo 560 560 { 561 561 NSURL *targetURL = [elementInfo URL]; -
trunk/Source/WebKit/UIProcess/ios/WKContentView.h
r245272 r246137 55 55 @package 56 56 RefPtr<WebKit::WebPageProxy> _page; 57 WKWebView *_webView; 57 WKWebView *_webView; // FIXME: This should be made a WeakObjCPtr once everything that refers to it is moved to OpenSource. 58 58 } 59 59 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r246116 r246137 43 43 #import "UIKitSPI.h" 44 44 #import "WKActionSheetAssistant.h" 45 #import "WKContextMenuElementInfoInternal.h" 45 46 #import "WKDatePickerViewController.h" 46 47 #import "WKDrawingCoordinator.h" … … 7516 7517 if ([uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForAnimatedImageAtURL:defaultActions:elementInfo:imageSize:)]) { 7517 7518 RetainPtr<NSArray> actions = [_actionSheetAssistant defaultActionsForImageSheet:animatedImageElementInfo.get()]; 7519 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7518 7520 return [uiDelegate _webView:_webView previewViewControllerForAnimatedImageAtURL:targetURL defaultActions:actions.get() elementInfo:animatedImageElementInfo.get() imageSize:_positionInformation.image->size()]; 7521 ALLOW_DEPRECATED_DECLARATIONS_END 7519 7522 } 7520 7523 } … … 7538 7541 } 7539 7542 7543 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7540 7544 if ([uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForURL:defaultActions:elementInfo:)]) 7541 7545 return [uiDelegate _webView:_webView previewViewControllerForURL:targetURL defaultActions:actions.get() elementInfo:elementInfo.get()]; … … 7543 7547 if ([uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForURL:)]) 7544 7548 return [uiDelegate _webView:_webView previewViewControllerForURL:targetURL]; 7549 ALLOW_DEPRECATED_DECLARATIONS_END 7550 7545 7551 return nil; 7546 7552 } … … 7563 7569 _page->startInteractionWithElementAtPosition(_positionInformation.request.point); 7564 7570 7571 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7565 7572 if ([uiDelegate respondsToSelector:@selector(_webView:willPreviewImageWithURL:)]) 7566 7573 [uiDelegate _webView:_webView willPreviewImageWithURL:targetURL]; 7574 ALLOW_DEPRECATED_DECLARATIONS_END 7567 7575 7568 7576 auto defaultActions = [_actionSheetAssistant defaultActionsForImageSheet:elementInfo.get()]; 7569 7577 if (imageInfo && [uiDelegate respondsToSelector:@selector(_webView:previewViewControllerForImage:alternateURL:defaultActions:elementInfo:)]) { 7578 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7570 7579 UIViewController *previewViewController = [uiDelegate _webView:_webView previewViewControllerForImage:uiImage.get() alternateURL:alternateURL.get() defaultActions:defaultActions.get() elementInfo:elementInfo.get()]; 7580 ALLOW_DEPRECATED_DECLARATIONS_END 7571 7581 if (previewViewController) 7572 7582 return previewViewController; … … 7587 7597 if (imageURL.isEmpty() || !(imageURL.protocolIsInHTTPFamily() || imageURL.protocolIs("data"))) 7588 7598 return; 7599 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7589 7600 [uiDelegate _webView:_webView commitPreviewedImageWithURL:(NSURL *)imageURL]; 7601 ALLOW_DEPRECATED_DECLARATIONS_END 7590 7602 return; 7591 7603 } … … 7601 7613 7602 7614 if ([uiDelegate respondsToSelector:@selector(_webView:commitPreviewedViewController:)]) { 7615 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7603 7616 [uiDelegate _webView:_webView commitPreviewedViewController:viewController]; 7617 ALLOW_DEPRECATED_DECLARATIONS_END 7604 7618 return; 7605 7619 } … … 7625 7639 { 7626 7640 id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([_webView UIDelegate]); 7641 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 7627 7642 if ([uiDelegate respondsToSelector:@selector(_webView:didDismissPreviewViewController:committing:)]) 7628 7643 [uiDelegate _webView:_webView didDismissPreviewViewController:viewController committing:committing]; 7629 7644 else if ([uiDelegate respondsToSelector:@selector(_webView:didDismissPreviewViewController:)]) 7630 7645 [uiDelegate _webView:_webView didDismissPreviewViewController:viewController]; 7631 7646 ALLOW_DEPRECATED_DECLARATIONS_END 7647 7632 7648 [_webView _didDismissForcePressPreview]; 7633 7649 } -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r246118 r246137 1075 1075 5C5D238C227A2CDA000B9BDA /* _WKCustomHeaderFields.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C5D2389227A1892000B9BDA /* _WKCustomHeaderFields.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1076 1076 5C62FDF91EFC271C00CE072E /* WKURLSchemeTaskPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C62FDF81EFC263C00CE072E /* WKURLSchemeTaskPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1077 5C795D70229F373F003FF1C4 /* WKContextMenuElementInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CE0C369229F2D4A003695F0 /* WKContextMenuElementInfo.h */; settings = {ATTRIBUTES = (Public, ); }; }; 1078 5C795D71229F3757003FF1C4 /* WKContextMenuElementInfoPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CE0C36A229F2D4A003695F0 /* WKContextMenuElementInfoPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1077 1079 5C7FB47021E97DC5009E3241 /* WebCookieJar.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C7FB46F21E97C0C009E3241 /* WebCookieJar.h */; }; 1078 1080 5C8BC797218CBB4800813886 /* SafeBrowsing.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5C8BC796218CB58A00813886 /* SafeBrowsing.xcassets */; }; … … 3577 3579 5CD2864F1E722F440094FDC8 /* WKContentRuleListStoreInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContentRuleListStoreInternal.h; sourceTree = "<group>"; }; 3578 3580 5CD286501E722F440094FDC8 /* WKContentRuleListStorePrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContentRuleListStorePrivate.h; sourceTree = "<group>"; }; 3581 5CE0C366229F2D3D003695F0 /* APIContextMenuElementInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = APIContextMenuElementInfo.cpp; sourceTree = "<group>"; }; 3582 5CE0C367229F2D3E003695F0 /* APIContextMenuElementInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIContextMenuElementInfo.h; sourceTree = "<group>"; }; 3583 5CE0C368229F2D4A003695F0 /* WKContextMenuElementInfo.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKContextMenuElementInfo.mm; sourceTree = "<group>"; }; 3584 5CE0C369229F2D4A003695F0 /* WKContextMenuElementInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContextMenuElementInfo.h; sourceTree = "<group>"; }; 3585 5CE0C36A229F2D4A003695F0 /* WKContextMenuElementInfoPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContextMenuElementInfoPrivate.h; sourceTree = "<group>"; }; 3586 5CE0C36B229F2D4B003695F0 /* WKContextMenuElementInfoInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContextMenuElementInfoInternal.h; sourceTree = "<group>"; }; 3579 3587 5CE85B1F1C88E6430070BFCE /* PingLoad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PingLoad.h; sourceTree = "<group>"; }; 3580 3588 5CE9120B2293C1E0005BEC78 /* WKMain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKMain.h; sourceTree = "<group>"; }; … … 6258 6266 5CD2864F1E722F440094FDC8 /* WKContentRuleListStoreInternal.h */, 6259 6267 5CD286501E722F440094FDC8 /* WKContentRuleListStorePrivate.h */, 6268 5CE0C369229F2D4A003695F0 /* WKContextMenuElementInfo.h */, 6269 5CE0C368229F2D4A003695F0 /* WKContextMenuElementInfo.mm */, 6270 5CE0C36B229F2D4B003695F0 /* WKContextMenuElementInfoInternal.h */, 6271 5CE0C36A229F2D4A003695F0 /* WKContextMenuElementInfoPrivate.h */, 6260 6272 1AF4592D19464B2000F9D4A2 /* WKError.h */, 6261 6273 1AF4592C19464B2000F9D4A2 /* WKError.mm */, … … 7724 7736 7C3A06A61AAB903E009D74BA /* APIContentRuleListStore.h */, 7725 7737 076E884D1A13CADF005E90FC /* APIContextMenuClient.h */, 7738 5CE0C366229F2D3D003695F0 /* APIContextMenuElementInfo.cpp */, 7739 5CE0C367229F2D3E003695F0 /* APIContextMenuElementInfo.h */, 7726 7740 5C5D238A227A1D9B000B9BDA /* APICustomHeaderFields.h */, 7727 7741 7A821F4F1E2F7A5C00604577 /* APICustomProtocolManagerClient.h */, … … 9900 9914 1A445BA1184D5FC1004B3414 /* WKContextHistoryClient.h in Headers */, 9901 9915 1A445B9F184D5FB5004B3414 /* WKContextInjectedBundleClient.h in Headers */, 9916 5C795D70229F373F003FF1C4 /* WKContextMenuElementInfo.h in Headers */, 9917 5C795D71229F3757003FF1C4 /* WKContextMenuElementInfoPrivate.h in Headers */, 9902 9918 51A555F6128C6C47009ABCEC /* WKContextMenuItem.h in Headers */, 9903 9919 51A55601128C6D92009ABCEC /* WKContextMenuItemTypes.h in Headers */,
Note:
See TracChangeset
for help on using the changeset viewer.