[webkit-changes] [WebKit/WebKit] 9684dc: Re-land [SwiftUI] Introduce WebView

Richard Robinson noreply at github.com
Tue Dec 3 18:22:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9684dcb5583f78c85f103f8c5b445d9feffebb24
      https://github.com/WebKit/WebKit/commit/9684dcb5583f78c85f103f8c5b445d9feffebb24
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M Source/WebKit/Configurations/Base.xcconfig
    M Source/WebKit/UIProcess/API/Swift/WebPage.swift
    A Source/WebKit/UIProcess/API/Swift/WebView.swift
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Tools/MiniBrowser/AppDelegate.swift
    M Tools/MiniBrowser/Configurations/Base.xcconfig
    M Tools/MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj
    A Tools/MiniBrowser/SwiftUI/BrowserViewModel.swift
    A Tools/MiniBrowser/SwiftUI/ContentView.swift
    A Tools/MiniBrowser/SwiftUI/MiniBrowserView.swift
    M Tools/TestWebKitAPI/Configurations/TestWebKitAPIBundle.xcconfig

  Log Message:
  -----------
  Re-land [SwiftUI] Introduce WebView
https://bugs.webkit.org/show_bug.cgi?id=284009
rdar://140880947

Reviewed by Wenson Hsieh.

Re-lands the original commit, but with the code now temporarily compiled out so that it doesn't break the internal build.

* Source/WebKit/Configurations/Base.xcconfig:
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(WebPage_v0.title):
(WebPage_v0.backingWebView):
* Source/WebKit/UIProcess/API/Swift/WebView.swift: Added.
(WebView_v0.body):
(WebViewWrapper.frame):
(WebViewWrapper.bounds):
(WebViewWrapper.webView):
(WebViewWrapper.updateWebViewFrame):
(WebViewRepresentable.makePlatformView(_:)):
(WebViewRepresentable.updatePlatformView(_:context:)):
(WebViewRepresentable.makeUIView(_:)):
(WebViewRepresentable.updateUIView(_:context:)):
(WebViewRepresentable.makeNSView(_:)):
(WebViewRepresentable.updateNSView(_:context:)):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/MiniBrowser/AppDelegate.swift:
(BrowserAppDelegate.createSwiftUIWindow(_:)):
* Tools/MiniBrowser/Configurations/Base.xcconfig:
* Tools/MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
* Tools/MiniBrowser/SwiftUI/BrowserViewModel.swift: Copied from Tools/MiniBrowser/AppDelegate.swift.
(BrowserViewModel.displayedURL):
(BrowserViewModel.didReceiveNavigationEvent(_:)):
(BrowserViewModel.navigateToSubmittedURL):
* Tools/MiniBrowser/SwiftUI/ContentView.swift: Added.
(ContentView.urlFieldIsFocused):
(ContentView.body):
* Tools/MiniBrowser/SwiftUI/MiniBrowserView.swift: Copied from Tools/MiniBrowser/AppDelegate.swift.
(MiniBrowserView.body):

Canonical link: https://commits.webkit.org/287321@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