blob: 13116bb30b5cf4813446e8f54ae0107d806fc9c6 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:webview_flutter_platform_interface/v4/webview_flutter_platform_interface.dart';
import 'webkit_webview_controller.dart';
import 'webkit_webview_cookie_manager.dart';
/// Implementation of [WebViewPlatform] using the WebKit API.
class WebKitWebViewPlatform extends WebViewPlatform {
@override
WebKitWebViewController createPlatformWebViewController(
PlatformWebViewControllerCreationParams params,
) {
return WebKitWebViewController(params);
}
@override
WebKitNavigationDelegate createPlatformNavigationDelegate(
PlatformNavigationDelegateCreationParams params,
) {
return WebKitNavigationDelegate(params);
}
@override
WebKitWebViewWidget createPlatformWebViewWidget(
PlatformWebViewWidgetCreationParams params,
) {
return WebKitWebViewWidget(params);
}
@override
WebKitWebViewCookieManager createPlatformCookieManager(
PlatformWebViewCookieManagerCreationParams params,
) {
return WebKitWebViewCookieManager(params);
}
}