Changeset 291978 in webkit
- Timestamp:
- Mar 28, 2022, 10:58:11 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 24 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/ios/KeyEventCodesIOS.h (modified) (3 diffs)
-
WebCore/platform/ios/wak/WAKAppKitStubs.h (modified) (13 diffs)
-
WebCore/platform/ios/wak/WAKView.h (modified) (2 diffs)
-
WebCore/platform/ios/wak/WAKWindow.h (modified) (1 diff)
-
WebKitLegacy/ios/ChangeLog (modified) (1 diff)
-
WebKitLegacy/ios/WebView/WebUIKitDelegate.h (modified) (1 diff)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/Misc/WebDownload.h (modified) (2 diffs)
-
WebKitLegacy/mac/Misc/WebNSViewExtras.h (modified) (2 diffs)
-
WebKitLegacy/mac/Plugins/WebPluginDatabase.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebDocument.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebDocumentPrivate.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebFramePrivate.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebFrameView.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebFrameViewPrivate.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebHTMLRepresentation.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebHTMLRepresentationPrivate.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebHTMLView.h (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebHTMLViewPrivate.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebUIDelegate.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebUIDelegatePrivate.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebView.h (modified) (2 diffs)
-
WebKitLegacy/mac/WebView/WebViewPrivate.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r291972 r291978 1 2022-03-28 Ian Anderson <iana@apple.com> 2 3 Some Apple internal clients fail to build due to redeclared AppKit types in WebKitLegacy 4 https://bugs.webkit.org/show_bug.cgi?id=238368 5 6 Reviewed by Jonathan Bedard. 7 8 Some Apple internal Mac Catalyst clients need to use both AppKit and 9 WebKitLegacy. WebKitLegacy's redeclaration of AppKit types causes errors 10 for those clients. Copy AppKit's Apple internal logic for identifying 11 the special Mac Catalyst clients that are allowed to use the AppKit 12 types, and when such clients use WebKitLegacy, don't redeclare the 13 AppKit types. 14 15 * platform/ios/KeyEventCodesIOS.h: 16 * platform/ios/wak/WAKAppKitStubs.h: 17 * platform/ios/wak/WAKView.h: 18 * platform/ios/wak/WAKWindow.h: 19 1 20 2022-03-28 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/platform/ios/KeyEventCodesIOS.h
r228534 r291978 27 27 28 28 #if TARGET_OS_IPHONE 29 30 #import <WebCore/WAKAppKitStubs.h> 31 32 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 33 #import <AppKit/NSEvent.h> 34 #else 29 35 30 36 // Unicodes we reserve for function keys on the keyboard, … … 106 112 NSModeSwitchFunctionKey = 0xF747 107 113 }; 114 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 108 115 116 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 117 #import <AppKit/NSText.h> 118 #else 109 119 enum { 110 120 NSParagraphSeparatorCharacter = 0x2029, … … 119 129 NSDeleteCharacter = 0x007f 120 130 }; 131 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 121 132 122 133 #endif // TARGET_OS_IPHONE -
trunk/Source/WebCore/platform/ios/wak/WAKAppKitStubs.h
r284736 r291978 33 33 #import <CoreGraphics/CoreGraphics.h> 34 34 35 // WebKitLegacy was built around AppKit, which isn't present on iOS, 36 // so WebKitLegacy redeclares many AppKit types on iOS. This is a problem 37 // for Mac Catalyst where AppKit is present and usable, because the 38 // redeclared types now conflict with the original types. Normally the AppKit 39 // types are marked unavailable, so WebKitLegacy still needs to redeclare 40 // them to make them available. As long as Mac Catalyst clients stick to UIKit 41 // and WebKitLegacy, and don't directly import AppKit, things are fine. 42 // However, there are a few special Apple internal Mac Catalyst clients that 43 // are able to use all of the normally unavailable AppKit types, and so 44 // those clients need WebKitLegacy to use the AppKit types directly rather 45 // than redeclare them. Duplicate the Apple internal APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST 46 // logic to identify when this is the case. 47 #if TARGET_OS_MACCATALYST && ((defined(__UIKIT_BUILDING_UIKIT__) && __UIKIT_BUILDING_UIKIT__) || (defined(__SWIFTUI_BUILDING_SWIFTUI__) && __SWIFTUI_BUILDING_SWIFTUI__) || (defined(__UIKIT_AX_BUILDING_UIKIT_AX__) && __UIKIT_AX_BUILDING_UIKIT_AX__)) 48 #define WAK_APPKIT_API_AVAILABLE_MACCATALYST 1 49 #else 50 #define WAK_APPKIT_API_AVAILABLE_MACCATALYST 0 51 #endif 52 53 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 54 #import <AppKit/NSClipView.h> 55 #import <AppKit/NSScrollView.h> 56 #import <AppKit/NSView.h> 57 #else 35 58 #ifndef NSClipView 36 59 #define NSClipView WAKClipView … … 42 65 #define NSScrollView WAKScrollView 43 66 #endif 67 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 68 // There is no <WebKit/WebDynamicScrollBarsView.h> in Mac Catalyst. 44 69 #ifndef WebDynamicScrollBarsView 45 70 #define WebDynamicScrollBarsView WAKScrollView 46 71 #endif 72 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 73 #import <AppKit/NSResponder.h> 74 #import <AppKit/NSWindow.h> 75 #else 47 76 #ifndef NSWindow 48 77 #define NSWindow WAKWindow … … 51 80 #define NSResponder WAKResponder 52 81 #endif 82 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 53 83 54 84 // FIXME: <rdar://problem/6669434> Switch from using NSGeometry methods to CGGeometry methods … … 164 194 }; 165 195 196 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 197 #import <AppKit/NSEvent.h> 198 #else 166 199 #ifndef NSEventModifierFlagCapsLock 167 200 #define NSEventModifierFlagCapsLock WKNSEventModifierFlagCapsLock … … 175 208 #define NSEventModifierFlagDeviceIndependentFlagsMask WKNSEventModifierFlagDeviceIndependentFlagsMask 176 209 #endif 210 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 177 211 178 212 typedef enum _WKWritingDirection { … … 187 221 }; 188 222 223 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 224 #import <AppKit/NSTextView.h> 225 #else 189 226 #ifndef NSSelectionAffinityUpstream 190 227 #define NSSelectionAffinity WKNSSelectionAffinity … … 192 229 #define NSSelectionAffinityDownstream WKNSSelectionAffinityDownstream 193 230 #endif 231 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 194 232 195 233 typedef NS_ENUM(NSInteger, WKNSControlStateValue) { … … 199 237 }; 200 238 239 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 240 #import <AppKit/NSCell.h> 241 #else 201 242 #ifndef NSControlStateValueMixed 202 243 #define NSControlStateValue WKNSControlStateValue … … 205 246 #define NSControlStateValueOn WKNSControlStateValueOn 206 247 #endif 248 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 207 249 208 250 typedef NS_ENUM(NSUInteger, WKNSCompositingOperation) { … … 223 265 }; 224 266 267 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 268 #import <AppKit/NSGraphics.h> 269 #else 225 270 #ifndef NSCompositeClear 226 271 #define NSCompositingOperation WKNSCompositingOperation … … 240 285 #define NSCompositePlusLighter WKNSCompositePlusLighter 241 286 #endif 287 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 242 288 243 289 typedef NS_ENUM(NSUInteger, WKNSSelectionDirection) { … … 247 293 }; 248 294 295 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 296 // Included earlier, but the following constants are 297 // in NSWindow.h. 298 // #import <AppKit/NSWindow.h> 299 #else 249 300 #ifndef NSDirectSelection 250 301 #define NSSelectionDirection WKNSSelectionDirection … … 253 304 #define NSSelectingPrevious WKNSSelectingPrevious 254 305 #endif 306 #endif // WAK_APPKIT_API_AVAILABLE_MACCATALYST 255 307 256 308 #endif // TARGET_OS_IPHONE -
trunk/Source/WebCore/platform/ios/wak/WAKView.h
r284736 r291978 38 38 extern NSString *WAKViewDidScrollNotification; 39 39 40 #if WAK_APPKIT_API_AVAILABLE_MACCATALYST 41 #import <AppKit/NSView.h> 42 #else 40 43 enum { 41 44 NSViewNotSizable = 0, … … 47 50 NSViewMaxYMargin = 32 48 51 }; 52 #endif 49 53 50 54 @class WAKWindow; -
trunk/Source/WebCore/platform/ios/wak/WAKWindow.h
r284736 r291978 115 115 - (void)setVisible:(BOOL)visible; 116 116 - (NSSelectionDirection)keyViewSelectionDirection; 117 - (BOOL)makeFirstResponder:( NSResponder *)responder;117 - (BOOL)makeFirstResponder:(WAKResponder *)responder; 118 118 - (WAKView *)_newFirstResponderAfterResigning NS_RETURNS_NOT_RETAINED; 119 119 - (void)setFrame:(NSRect)frameRect display:(BOOL)flag; -
trunk/Source/WebKitLegacy/ios/ChangeLog
r291341 r291978 1 2022-03-28 Ian Anderson <iana@apple.com> 2 3 Some Apple internal clients fail to build due to redeclared AppKit types in WebKitLegacy 4 https://bugs.webkit.org/show_bug.cgi?id=238368 5 6 Reviewed by Jonathan Bedard. 7 8 WebKitLegacy can't always define NSView to WAKView in Mac Catalyst, but 9 views are always WAKView in Mac Catalyst. Switch on TARGET_OS_IPHONE to 10 declare WAKView explicitly. 11 12 * WebView/WebUIKitDelegate.h: 13 1 14 2022-03-16 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebKitLegacy/ios/WebView/WebUIKitDelegate.h
r271607 r291978 86 86 - (void)webViewDidRestoreFromPageCache:(WebView *)webView; 87 87 88 #if TARGET_OS_IPHONE 89 - (WAKView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments fromPlugInPackage:(WebPluginPackage *)package; 90 #else 88 91 - (NSView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments fromPlugInPackage:(WebPluginPackage *)package; 92 #endif 89 93 - (void)webView:(WebView *)webView willShowFullScreenForPlugInView:(id)plugInView; 90 94 - (void)webView:(WebView *)webView didHideFullScreenForPlugInView:(id)plugInView; -
trunk/Source/WebKitLegacy/mac/ChangeLog
r291946 r291978 1 2022-03-28 Ian Anderson <iana@apple.com> 2 3 Some Apple internal clients fail to build due to redeclared AppKit types in WebKitLegacy 4 https://bugs.webkit.org/show_bug.cgi?id=238368 5 6 Reviewed by Jonathan Bedard. 7 8 WebKitLegacy can't always define NSClipView/NSView/NSScrollView/ 9 NSWindow/NSResponder to their WAK counterparts in Mac Catalyst, but 10 those types are always the WAK ones in Mac Catalyst. Switch on 11 TARGET_OS_IPHONE to declare the WAK types explicitly. 12 13 * Misc/WebDownload.h: 14 * Misc/WebNSViewExtras.h: 15 * Plugins/WebPluginDatabase.h: 16 * WebView/WebDocument.h: 17 * WebView/WebDocumentPrivate.h: 18 * WebView/WebFramePrivate.h: 19 * WebView/WebFrameView.h: 20 (WEBKIT_CLASS_DEPRECATED_MAC): 21 * WebView/WebFrameViewPrivate.h: 22 * WebView/WebHTMLRepresentation.h: 23 * WebView/WebHTMLRepresentationPrivate.h: 24 * WebView/WebHTMLView.h: 25 * WebView/WebHTMLViewPrivate.h: 26 * WebView/WebUIDelegate.h: 27 * WebView/WebUIDelegatePrivate.h: 28 * WebView/WebView.h: 29 (WEBKIT_CLASS_DEPRECATED_MAC): 30 * WebView/WebViewPrivate.h: 31 1 32 2022-03-26 Yusuke Suzuki <ysuzuki@apple.com> 2 33 -
trunk/Source/WebKitLegacy/mac/Misc/WebDownload.h
r284736 r291978 45 45 #endif 46 46 47 #if !TARGET_OS_IPHONE 47 48 @class NSWindow; 49 #endif 48 50 @class WebDownloadInternal; 49 51 … … 79 81 @method downloadWindowForAuthenticationSheet: 80 82 */ 83 #if TARGET_OS_IPHONE 84 - (WAKWindow *)downloadWindowForAuthenticationSheet:(WebDownload *)download; 85 #else 81 86 - (NSWindow *)downloadWindowForAuthenticationSheet:(WebDownload *)download; 87 #endif 82 88 83 89 @end -
trunk/Source/WebKitLegacy/mac/Misc/WebNSViewExtras.h
r185328 r291978 42 42 @class WebView; 43 43 44 #if TARGET_OS_IPHONE 45 @interface WAKView (WebExtras) 46 #else 44 47 @interface NSView (WebExtras) 48 #endif 45 49 46 50 // Returns the nearest enclosing view of the given class, or nil if none. 51 #if TARGET_OS_IPHONE 52 - (WAKView *)_web_superviewOfClass:(Class)viewClass; 53 #else 47 54 - (NSView *)_web_superviewOfClass:(Class)viewClass; 55 #endif 48 56 - (WebFrameView *)_web_parentWebFrameView; 49 57 #if !TARGET_OS_IPHONE … … 79 87 @class WebView; 80 88 81 @interface NSView (WebDocumentViewExtras)89 @interface WAKView (WebDocumentViewExtras) 82 90 - (WebFrame *)_frame; 83 91 - (WebView *)_webView; -
trunk/Source/WebKitLegacy/mac/Plugins/WebPluginDatabase.h
r215685 r291978 65 65 - (void)close; 66 66 67 #if TARGET_OS_IPHONE 68 - (void)addPluginInstanceView:(WAKView *)view; 69 - (void)removePluginInstanceView:(WAKView *)view; 70 #else 67 71 - (void)addPluginInstanceView:(NSView *)view; 68 72 - (void)removePluginInstanceView:(NSView *)view; 73 #endif 69 74 - (void)removePluginInstanceViewsFor:(WebFrame *)webFrame; 70 75 - (void)destroyAllPluginInstanceViews; -
trunk/Source/WebKitLegacy/mac/WebView/WebDocument.h
r231383 r291978 81 81 @abstract Called before the host window is set on the parent web view. 82 82 */ 83 #if TARGET_OS_IPHONE 84 - (void)viewWillMoveToHostWindow:(WAKWindow *)hostWindow; 85 #else 83 86 - (void)viewWillMoveToHostWindow:(NSWindow *)hostWindow; 87 #endif 84 88 85 89 /*! -
trunk/Source/WebKitLegacy/mac/WebView/WebDocumentPrivate.h
r236846 r291978 30 30 #import <WebKitLegacy/WebFrame.h> 31 31 #import <WebKitLegacy/WebHTMLView.h> 32 #if TARGET_OS_IPHONE 33 #import <WebKitLegacy/WAKView.h> 34 #endif 32 35 33 36 @class DOMDocument; … … 72 75 // View that draws the selection and can be made first responder. Often this is self but it could be 73 76 // a nested view, as for example in the case of WebPDFView. 77 #if TARGET_OS_IPHONE 78 - (WAKView *)selectionView; 79 #else 74 80 - (NSView *)selectionView; 81 #endif 75 82 @end 76 83 -
trunk/Source/WebKitLegacy/mac/WebView/WebFramePrivate.h
r285047 r291978 135 135 - (NSRect)rectForScrollToVisible; // return caretRect if selection is caret, selectionRect otherwise 136 136 @property (nonatomic, readwrite) CGColorRef caretColor; 137 #if TARGET_OS_IPHONE 138 - (WAKView *)documentView; 139 #else 137 140 - (NSView *)documentView; 141 #endif 138 142 - (int)layoutCount; 139 143 - (BOOL)isTelephoneNumberParsingAllowed; -
trunk/Source/WebKitLegacy/mac/WebView/WebFrameView.h
r231383 r291978 47 47 */ 48 48 WEBKIT_CLASS_DEPRECATED_MAC(10_3, 10_14) 49 #if TARGET_OS_IPHONE 50 @interface WebFrameView : WAKView 51 #else 49 52 @interface WebFrameView : NSView 53 #endif 50 54 { 51 55 @package … … 64 68 @discussion The subview that renders the WebFrameView's contents 65 69 */ 70 #if TARGET_OS_IPHONE 71 @property (nonatomic, readonly, strong) WAKView<WebDocumentView> *documentView; 72 #else 66 73 @property (nonatomic, readonly, strong) NSView<WebDocumentView> *documentView; 74 #endif 67 75 68 76 /*! -
trunk/Source/WebKitLegacy/mac/WebView/WebFrameViewPrivate.h
r207934 r291978 28 28 29 29 #import <WebKitLegacy/WebFrameView.h> 30 #if TARGET_OS_IPHONE 31 #import <WebKitLegacy/WAKAppKitStubs.h> 32 #endif 30 33 31 34 @interface WebFrameView (WebPrivate) … … 69 72 @result The content view (NSClipView) of the WebFrameView's scroll view. 70 73 */ 74 #if TARGET_OS_IPHONE 75 - (WAKClipView *)_contentView; 76 #else 71 77 - (NSClipView *)_contentView; 78 #endif 72 79 73 80 /*! -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLRepresentation.h
r215685 r291978 32 32 33 33 @class WebHTMLRepresentationPrivate; 34 #if !TARGET_OS_IPHONE 34 35 @class NSView; 36 #endif 35 37 36 38 @class DOMNode; -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLRepresentationPrivate.h
r168047 r291978 28 28 29 29 #import <WebKitLegacy/WebHTMLRepresentation.h> 30 #if TARGET_OS_IPHONE 31 #import <WebKitLegacy/WAKView.h> 32 #endif 30 33 31 34 @protocol WebPluginManualLoader; 32 35 33 36 @interface WebHTMLRepresentation (WebPrivate) 37 #if TARGET_OS_IPHONE 38 - (void)_redirectDataToManualLoader:(id<WebPluginManualLoader>)manualLoader forPluginView:(WAKView *)pluginView; 39 #else 34 40 - (void)_redirectDataToManualLoader:(id<WebPluginManualLoader>)manualLoader forPluginView:(NSView *)pluginView; 41 #endif 35 42 - (void)printDOMTree; 36 43 @end -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLView.h
r168047 r291978 46 46 @interface WebHTMLView : NSControl <WebDocumentView, WebDocumentSearching> 47 47 #else 48 @interface WebHTMLView : NSView <WebDocumentView, WebDocumentSearching>48 @interface WebHTMLView : WAKView <WebDocumentView, WebDocumentSearching> 49 49 #endif 50 50 { -
trunk/Source/WebKitLegacy/mac/WebView/WebHTMLViewPrivate.h
r285047 r291978 28 28 29 29 #import <WebKitLegacy/WebHTMLView.h> 30 #if TARGET_OS_IPHONE 31 #import <WebKitLegacy/WAKView.h> 32 #endif 30 33 31 34 @class DOMDocumentFragment; … … 109 112 110 113 - (BOOL)_isUsingAcceleratedCompositing; 114 #if TARGET_OS_IPHONE 115 - (WAKView *)_compositingLayersHostingView; 116 #else 111 117 - (NSView *)_compositingLayersHostingView; 118 #endif 112 119 113 120 #if !TARGET_OS_IPHONE -
trunk/Source/WebKitLegacy/mac/WebView/WebUIDelegate.h
r231383 r291978 248 248 real first responder if some control not in the window has focus. 249 249 */ 250 #if TARGET_OS_IPHONE 251 - (WAKResponder *)webViewFirstResponder:(WebView *)sender; 252 #else 250 253 - (NSResponder *)webViewFirstResponder:(WebView *)sender; 254 #endif 251 255 252 256 /*! … … 261 265 elsewhere, or possibly ignore this call. 262 266 */ 267 #if TARGET_OS_IPHONE 268 - (void)webView:(WebView *)sender makeFirstResponder:(WAKResponder *)responder; 269 #else 263 270 - (void)webView:(WebView *)sender makeFirstResponder:(NSResponder *)responder; 271 #endif 264 272 265 273 /*! -
trunk/Source/WebKitLegacy/mac/WebView/WebUIDelegatePrivate.h
r278767 r291978 29 29 #import <WebKitLegacy/WebAllowDenyPolicyListener.h> 30 30 #import <WebKitLegacy/WebUIDelegate.h> 31 #if TARGET_OS_IPHONE 32 #import <WebKitLegacy/WAKView.h> 33 #endif 31 34 32 35 #if !defined(ENABLE_DASHBOARD_SUPPORT) … … 205 208 - (void)webView:(WebView *)webView addMessageToConsole:(NSDictionary *)message withSource:(NSString *)source; 206 209 210 #if TARGET_OS_IPHONE 211 - (WAKView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments; 212 #else 207 213 - (NSView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments; 214 #endif 208 215 209 216 #if ENABLE_DASHBOARD_SUPPORT -
trunk/Source/WebKitLegacy/mac/WebView/WebView.h
r235119 r291978 127 127 */ 128 128 WEBKIT_CLASS_DEPRECATED_MAC(10_3, 10_14, "No longer supported; please adopt WKWebView.") 129 #if TARGET_OS_IPHONE 130 @interface WebView : WAKView 131 #else 129 132 @interface WebView : NSView 133 #endif 130 134 { 131 135 @private … … 408 412 not in an actual window. 409 413 */ 414 #if TARGET_OS_IPHONE 415 @property (nonatomic, strong) WAKWindow *hostWindow; 416 #else 410 417 @property (nonatomic, strong) NSWindow *hostWindow; 418 #endif 411 419 412 420 /*! -
trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h
r281273 r291978 33 33 #if TARGET_OS_IPHONE 34 34 #import <CoreGraphics/CGColor.h> 35 #import <WebKitLegacy/WAKView.h> 35 36 #endif 36 37 … … 684 685 remove was successful. 685 686 */ 687 #if TARGET_OS_IPHONE 688 - (BOOL)_setMediaLayer:(CALayer*)layer forPluginView:(WAKView*)pluginView; 689 #else 686 690 - (BOOL)_setMediaLayer:(CALayer*)layer forPluginView:(NSView*)pluginView; 691 #endif 687 692 688 693 /*! … … 896 901 - (void)_setFontFallbackPrefersPictographs:(BOOL)flag; 897 902 903 #if TARGET_OS_IPHONE 904 - (void)showCandidates:(NSArray *)candidates forString:(NSString *)string inRect:(NSRect)rectOfTypedString forSelectedRange:(NSRange)range view:(WAKView *)view completionHandler:(void (^)(NSTextCheckingResult *acceptedCandidate))completionBlock; 905 #else 898 906 - (void)showCandidates:(NSArray *)candidates forString:(NSString *)string inRect:(NSRect)rectOfTypedString forSelectedRange:(NSRange)range view:(NSView *)view completionHandler:(void (^)(NSTextCheckingResult *acceptedCandidate))completionBlock; 907 #endif 899 908 - (void)forceRequestCandidatesForTesting; 900 909 - (BOOL)shouldRequestCandidates;
Note:
See TracChangeset
for help on using the changeset viewer.