Changeset 238498 in webkit
- Timestamp:
- Nov 26, 2018 9:42:12 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238497 r238498 1 2018-11-26 Daniel Bates <dabates@apple.com> 2 3 Wire up ChromeClient::takeFocus() on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=191763 5 <rdar://problem/18584508> 6 7 Reviewed by Dan Bernstein. 8 9 Expose existing Mac SPI for use on iOS. This will allow Safari to be notified when 10 the engine has cycled through all the tab focusable elements on the page. 11 12 * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: 13 * UIProcess/Cocoa/UIDelegate.h: 14 * UIProcess/Cocoa/UIDelegate.mm: 15 (WebKit::UIDelegate::setDelegate): 16 1 17 2018-11-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
r236865 r238498 48 48 @protocol UIDropSession; 49 49 #else 50 typedef NS_ENUM(NSInteger, _WKFocusDirection) {51 _WKFocusDirectionBackward,52 _WKFocusDirectionForward,53 } WK_API_AVAILABLE(macosx(10.13.4));54 55 50 typedef NS_ENUM(NSInteger, _WKAutoplayEvent) { 56 51 _WKAutoplayEventDidPreventFromAutoplaying, … … 76 71 } WK_API_AVAILABLE(macosx(10.13.4)); 77 72 #endif 73 74 typedef NS_ENUM(NSInteger, _WKFocusDirection) { 75 _WKFocusDirectionBackward, 76 _WKFocusDirectionForward, 77 } WK_API_AVAILABLE(macosx(10.13.4), ios(WK_IOS_TBA)); 78 78 79 79 @protocol WKUIDelegatePrivate <WKUIDelegate> … … 123 123 124 124 - (void)_webView:(WKWebView *)webView didChangeFontAttributes:(NSDictionary<NSString *, id> *)fontAttributes WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 125 126 - (void)_webView:(WKWebView *)webView takeFocus:(_WKFocusDirection)direction WK_API_AVAILABLE(macosx(10.13.4), ios(WK_IOS_TBA)); 125 127 126 128 #if TARGET_OS_IPHONE … … 174 176 - (void)_webViewDidScroll:(WKWebView *)webView WK_API_AVAILABLE(macosx(10.13.4)); 175 177 - (void)_webViewRunModal:(WKWebView *)webView WK_API_AVAILABLE(macosx(10.13.4)); 176 - (void)_webView:(WKWebView *)webView takeFocus:(_WKFocusDirection)direction WK_API_AVAILABLE(macosx(10.13.4));177 178 - (void)_webView:(WKWebView *)webView didNotHandleWheelEvent:(NSEvent *)event WK_API_AVAILABLE(macosx(10.13.4)); 178 179 - (void)_webView:(WKWebView *)webView handleAutoplayEvent:(_WKAutoplayEvent)event withFlags:(_WKAutoplayEventFlags)flags WK_API_AVAILABLE(macosx(10.13.4)); -
trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.h
r237266 r238498 96 96 void reachedApplicationCacheOriginQuota(WebPageProxy*, const WebCore::SecurityOrigin&, uint64_t currentQuota, uint64_t totalBytesNeeded, Function<void(unsigned long long)>&& completionHandler) final; 97 97 void didResignInputElementStrongPasswordAppearance(WebPageProxy&, API::Object*) final; 98 void takeFocus(WebPageProxy*, WKFocusDirection) final; 98 99 #if PLATFORM(MAC) 99 100 void showPage(WebPageProxy*) final; 100 void takeFocus(WebPageProxy*, WKFocusDirection) final;101 101 void focus(WebPageProxy*) final; 102 102 void unfocus(WebPageProxy*) final; … … 164 164 bool webViewRequestGeolocationPermissionForFrameDecisionHandler : 1; 165 165 bool webViewDidResignInputElementStrongPasswordAppearanceWithUserInfo : 1; 166 bool webViewTakeFocus : 1; 166 167 #if PLATFORM(MAC) 167 168 bool showWebView : 1; … … 169 170 bool unfocusWebView : 1; 170 171 bool webViewRunModal : 1; 171 bool webViewTakeFocus : 1;172 172 bool webViewDidScroll : 1; 173 173 bool webViewHeaderHeight : 1; -
trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
r237988 r238498 108 108 m_delegateMethods.webViewRequestGeolocationPermissionForFrameDecisionHandler = [delegate respondsToSelector:@selector(_webView:requestGeolocationPermissionForFrame:decisionHandler:)]; 109 109 m_delegateMethods.webViewDidResignInputElementStrongPasswordAppearanceWithUserInfo = [delegate respondsToSelector:@selector(_webView:didResignInputElementStrongPasswordAppearanceWithUserInfo:)]; 110 m_delegateMethods.webViewTakeFocus = [delegate respondsToSelector:@selector(_webView:takeFocus:)]; 110 111 111 112 #if PLATFORM(MAC) … … 113 114 m_delegateMethods.focusWebView = [delegate respondsToSelector:@selector(_focusWebView:)]; 114 115 m_delegateMethods.unfocusWebView = [delegate respondsToSelector:@selector(_unfocusWebView:)]; 115 m_delegateMethods.webViewTakeFocus = [delegate respondsToSelector:@selector(_webView:takeFocus:)];116 116 m_delegateMethods.webViewRunModal = [delegate respondsToSelector:@selector(_webViewRunModal:)]; 117 117 m_delegateMethods.webViewDidScroll = [delegate respondsToSelector:@selector(_webViewDidScroll:)]; … … 454 454 } 455 455 456 #if PLATFORM(MAC)457 456 static inline _WKFocusDirection toWKFocusDirection(WKFocusDirection direction) 458 457 { … … 479 478 } 480 479 480 #if PLATFORM(MAC) 481 481 bool UIDelegate::UIClient::canRunModal() const 482 482 {
Note: See TracChangeset
for help on using the changeset viewer.