[Extra zoom mode] Add an SPI hook for clients to opt in to focus overlay UI
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2018 15:50:47 +0000 (15:50 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2018 15:50:47 +0000 (15:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184370
<rdar://problem/39250494>

Reviewed by Timothy Hatcher and Andy Estes.

Add a new SPI hook for internal clients to opt in to showing the focused form control overlay. By default, the
overlay is not shown.

* UIProcess/API/Cocoa/_WKInputDelegate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230439 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/Cocoa/_WKInputDelegate.h

index d0ee5de..d88c8de 100644 (file)
@@ -1,3 +1,16 @@
+2018-04-06  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        [Extra zoom mode] Add an SPI hook for clients to opt in to focus overlay UI
+        https://bugs.webkit.org/show_bug.cgi?id=184370
+        <rdar://problem/39250494>
+
+        Reviewed by Timothy Hatcher and Andy Estes.
+
+        Add a new SPI hook for internal clients to opt in to showing the focused form control overlay. By default, the
+        overlay is not shown.
+
+        * UIProcess/API/Cocoa/_WKInputDelegate.h:
+
 2018-04-09  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         [WPE] Use GNU install directories
index 9117a83..91eb065 100644 (file)
@@ -47,6 +47,7 @@
 - (void)_webView:(WKWebView *)webView insertTextSuggestion:(UITextSuggestion *)suggestion inInputSession:(id <_WKFormInputSession>)inputSession WK_API_AVAILABLE(ios(10.0));
 - (BOOL)_webView:(WKWebView *)webView focusRequiresStrongPasswordAssistance:(id <_WKFocusedElementInfo>)info WK_API_AVAILABLE(ios(WK_IOS_TBA));
 
+- (BOOL)_webView:(WKWebView *)webView shouldRevealFocusOverlayForInputSession:(id <_WKFormInputSession>)inputSession WK_API_AVAILABLE(ios(WK_IOS_TBA));
 - (CGFloat)_webView:(WKWebView *)webView focusedElementContextViewHeightForFittingSize:(CGSize)fittingSize inputSession:(id <_WKFormInputSession>)inputSession WK_API_AVAILABLE(ios(WK_IOS_TBA));
 - (UIView *)_webView:(WKWebView *)webView focusedElementContextViewForInputSession:(id <_WKFormInputSession>)inputSession WK_API_AVAILABLE(ios(WK_IOS_TBA));
 #endif