[webkit-changes] [WebKit/WebKit] dbf897: [Unified Text Replacement] Add SPI to WKWebView to...

Richard Robinson noreply at github.com
Mon May 13 09:40:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dbf897e806d94a297b1590f22cbe1d90b77377fc
      https://github.com/WebKit/WebKit/commit/dbf897e806d94a297b1590f22cbe1d90b77377fc
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-05-13 (Mon, 13 May 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
    M Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.h
    M Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm
    M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
    M Source/WebKit/UIProcess/PageClient.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h

  Log Message:
  -----------
  [Unified Text Replacement] Add SPI to WKWebView to determine if unified text replacement is enabled
https://bugs.webkit.org/show_bug.cgi?id=274055
rdar://127967089

Reviewed by Wenson Hsieh.

Also shuffle around some related functions to be closer to each other.

* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _isUnifiedTextReplacementActive]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.h:
* Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm:
(WebKit::PageClientImplCocoa::isUnifiedTextReplacementActiveWillChange):
(WebKit::PageClientImplCocoa::isUnifiedTextReplacementActiveDidChange):
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::setIsUnifiedTextReplacementActive):
(WebKit::WebPageProxy::enableTextIndicatorStyleAfterElementWithID):
(WebKit::WebPageProxy::enableTextIndicatorStyleForElementWithID):
(WebKit::WebPageProxy::getTextIndicatorForID):
(WebKit::WebPageProxy::updateTextIndicatorStyleVisibilityForID):
(WebKit::WebPageProxy::textReplacementSessionShowInformationForReplacementWithUUIDRelativeToRect):
(WebKit::WebPageProxy::textReplacementSessionUpdateStateForReplacementWithUUID):
(WebKit::WebPageProxy::removeTextIndicatorStyleForID):
* Source/WebKit/UIProcess/PageClient.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::removeTextIndicatorStyleForID): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.h:

Canonical link: https://commits.webkit.org/278692@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list