[iOS] WKWebView doesn’t have implementations of UIResponderStandardEditActions that...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2017 21:34:40 +0000 (21:34 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2017 21:34:40 +0000 (21:34 +0000)
commit66879c10ff9e9bc1f0bcf6f1d96360b65afaf55c
tree00b312f04885f2783d032a9aa7b4454da6db255b
parentac22dbbe88a5838f82dfb7d724befa58907f34da
[iOS] WKWebView doesn’t have implementations of UIResponderStandardEditActions that can be overridden
https://bugs.webkit.org/show_bug.cgi?id=167974

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWebView.mm:
  Gave each of the actions in FOR_EACH_WKCONTENTVIEW_ACTION an implementation that sends it
  to the WKContentView if we’re using one.
(-[WKWebView canPerformAction:withSender:]): Override and for each of the actions in
  FOR_EACH_WKCONTENTVIEW_ACTION, forward to
  -[WKContentView canPerformActionForWebView:withSender:] if we’re using a WKContentView,
  otherwise returning NO.

* UIProcess/ios/WKContentViewInteraction.h: Declared -canPerformActionForWebView:withSender:
  and several internal methods we override.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView canPerformAction:withSender:]): Now returns NO so that the target for any
  action is the WKWebView.
(-[WKContentView canPerformActionForWebView:withSender:]): Moved the logic previously in
  -canPerformAction:withSender: to here.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
Source/WebKit2/UIProcess/ios/WKContentViewInteraction.h
Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm