Add WKUIDelegatePrivate callbacks corresponding to WKPageUIClient's takeFocus, focus, and unfocus
Created attachment 318893 [details] Patch
Comment on attachment 318893 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=318893&action=review > Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:130 > -- (void)_webViewShow:(WKWebView *)webView WK_API_AVAILABLE(macosx(WK_MAC_TBA)); > +- (void)_showWebView:(WKWebView *)webView WK_API_AVAILABLE(macosx(WK_MAC_TBA)); > +- (void)_focusWebView:(WKWebView *)webView WK_API_AVAILABLE(macosx(WK_MAC_TBA)); > +- (void)_unfocusWebView:(WKWebView *)webView WK_API_AVAILABLE(macosx(WK_MAC_TBA)); > +- (void)_webView:(WKWebView *)webView takeFocus:(_WKFocusDirection)direction WK_API_AVAILABLE(macosx(WK_MAC_TBA)); I have another question. Why are all these things Mac only? They don't seem to be, underneath. Platform-specific things should be the exception, not the rule.
Created attachment 318901 [details] Patch
(In reply to Tim Horton from comment #2) > I have another question. Why are all these things Mac only? They don't seem > to be, underneath. Platform-specific things should be the exception, not the > rule. Focus and keyboard events are quite different on iOS. _webViewShow didn't work on iOS and it's not needed. We could fix it and add it later if needed.
Created attachment 318906 [details] Patch
http://trac.webkit.org/r221099
<rdar://problem/34042618>
rdar://problem/29270035