Skip to content

Commit

Permalink
Manual roll Flutter from f2f80059ff87 to 5a279edc239f (44 revisions) …
Browse files Browse the repository at this point in the history
…+ fixes (#3420)

Manual roll Flutter from f2f80059ff87 to 5a279edc239f (44 revisions) + fixes
  • Loading branch information
Chris Yang committed Mar 9, 2023
1 parent 3814ec4 commit 8a7dead
Show file tree
Hide file tree
Showing 17 changed files with 107 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .ci/flutter_master.version
@@ -1 +1 @@
f2f80059ff87be34f773de33400af52a00c81a1a
5a279edc239f4efd91223ddc609c2b5129325feb
Expand Up @@ -94,8 +94,8 @@ class ScrollingMapBody extends StatelessWidget {
),
),
},
gestureRecognizers: <
Factory<OneSequenceGestureRecognizer>>{
gestureRecognizers: <Factory<
OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => ScaleGestureRecognizer(),
),
Expand Down
Expand Up @@ -95,8 +95,8 @@ class ScrollingMapBody extends StatelessWidget {
),
),
},
gestureRecognizers: <
Factory<OneSequenceGestureRecognizer>>{
gestureRecognizers: <Factory<
OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => ScaleGestureRecognizer(),
),
Expand Down
Expand Up @@ -95,8 +95,8 @@ class ScrollingMapBody extends StatelessWidget {
),
),
},
gestureRecognizers: <
Factory<OneSequenceGestureRecognizer>>{
gestureRecognizers: <Factory<
OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => ScaleGestureRecognizer(),
),
Expand Down
4 changes: 2 additions & 2 deletions packages/url_launcher/url_launcher_web/lib/src/link.dart
Expand Up @@ -85,8 +85,8 @@ class WebLinkDelegateState extends State<WebLinkDelegate> {
(BuildContext context, PlatformViewController controller) {
return PlatformViewSurface(
controller: controller,
gestureRecognizers: const <
Factory<OneSequenceGestureRecognizer>>{},
gestureRecognizers: const <Factory<
OneSequenceGestureRecognizer>>{},
hitTestBehavior: PlatformViewHitTestBehavior.transparent,
);
},
Expand Down
Expand Up @@ -40,8 +40,7 @@ class AndroidWebViewProxy {
Future<List<String>> Function(
android_webview.WebView webView,
android_webview.FileChooserParams params,
)?
onShowFileChooser,
)? onShowFileChooser,
}) createAndroidWebChromeClient;

/// Constructs a [android_webview.WebViewClient].
Expand All @@ -52,21 +51,18 @@ class AndroidWebViewProxy {
android_webview.WebView webView,
android_webview.WebResourceRequest request,
android_webview.WebResourceError error,
)?
onReceivedRequestError,
)? onReceivedRequestError,
@Deprecated('Only called on Android version < 23.')
void Function(
android_webview.WebView webView,
int errorCode,
String description,
String failingUrl,
)?
onReceivedError,
)? onReceivedError,
void Function(
android_webview.WebView webView,
android_webview.WebResourceRequest request,
)?
requestLoading,
)? requestLoading,
void Function(android_webview.WebView webView, String url)? urlLoading,
}) createAndroidWebViewClient;

Expand All @@ -88,8 +84,7 @@ class AndroidWebViewProxy {
String contentDisposition,
String mimetype,
int contentLength,
)
onDownloadStart,
) onDownloadStart,
}) createDownloadListener;

/// Enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of this application.
Expand Down
Expand Up @@ -44,7 +44,8 @@ class AndroidWebViewControllerCreationParams
PlatformWebViewControllerCreationParams params, {
@visibleForTesting
AndroidWebViewProxy androidWebViewProxy = const AndroidWebViewProxy(),
@visibleForTesting android_webview.WebStorage? androidWebStorage,
@visibleForTesting
android_webview.WebStorage? androidWebStorage,
}) {
return AndroidWebViewControllerCreationParams(
androidWebViewProxy: androidWebViewProxy,
Expand Down Expand Up @@ -495,7 +496,8 @@ class AndroidWebViewWidgetCreationParams
super.layoutDirection,
super.gestureRecognizers,
this.displayWithHybridComposition = false,
@visibleForTesting InstanceManager? instanceManager,
@visibleForTesting
InstanceManager? instanceManager,
@visibleForTesting
this.platformViewsServiceProxy = const PlatformViewsServiceProxy(),
}) : instanceManager =
Expand Down
Expand Up @@ -23,10 +23,12 @@ class WebViewAndroidWidget extends StatefulWidget {
required this.callbacksHandler,
required this.javascriptChannelRegistry,
required this.onBuildWidget,
@visibleForTesting this.webViewProxy = const WebViewProxy(),
@visibleForTesting
this.webViewProxy = const WebViewProxy(),
@visibleForTesting
this.flutterAssetManager = const android_webview.FlutterAssetManager(),
@visibleForTesting this.webStorage,
@visibleForTesting
this.webStorage,
});

/// Initial parameters used to setup the WebView.
Expand Down Expand Up @@ -101,10 +103,12 @@ class WebViewAndroidPlatformController extends WebViewPlatformController {
required CreationParams creationParams,
required this.callbacksHandler,
required this.javascriptChannelRegistry,
@visibleForTesting this.webViewProxy = const WebViewProxy(),
@visibleForTesting
this.webViewProxy = const WebViewProxy(),
@visibleForTesting
this.flutterAssetManager = const android_webview.FlutterAssetManager(),
@visibleForTesting android_webview.WebStorage? webStorage,
@visibleForTesting
android_webview.WebStorage? webStorage,
}) : webStorage = webStorage ?? android_webview.WebStorage.instance,
assert(creationParams.webSettings?.hasNavigationDelegate != null),
super(callbacksHandler) {
Expand Down Expand Up @@ -618,15 +622,13 @@ class WebViewProxy {
android_webview.WebView webView,
android_webview.WebResourceRequest request,
android_webview.WebResourceError error,
)?
onReceivedRequestError,
)? onReceivedRequestError,
void Function(
android_webview.WebView webView,
int errorCode,
String description,
String failingUrl,
)?
onReceivedError,
)? onReceivedError,
void Function(android_webview.WebView webView,
android_webview.WebResourceRequest request)?
requestLoading,
Expand Down
Expand Up @@ -52,10 +52,8 @@ void main() {
Future<List<String>> Function(
android_webview.WebView webView,
android_webview.FileChooserParams params,
)?
onShowFileChooser,
})?
createWebChromeClient,
)? onShowFileChooser,
})? createWebChromeClient,
android_webview.WebView? mockWebView,
android_webview.WebViewClient? mockWebViewClient,
android_webview.WebStorage? mockWebStorage,
Expand All @@ -75,8 +73,7 @@ void main() {
Future<List<String>> Function(
android_webview.WebView webView,
android_webview.FileChooserParams params,
)?
onShowFileChooser,
)? onShowFileChooser,
}) =>
MockWebChromeClient(),
createAndroidWebView: ({required bool useHybridComposition}) =>
Expand All @@ -92,19 +89,16 @@ void main() {
int errorCode,
String description,
String failingUrl,
)?
onReceivedError,
)? onReceivedError,
void Function(
android_webview.WebView webView,
android_webview.WebResourceRequest request,
android_webview.WebResourceError error,
)?
onReceivedRequestError,
)? onReceivedRequestError,
void Function(
android_webview.WebView webView,
android_webview.WebResourceRequest request,
)?
requestLoading,
)? requestLoading,
void Function(android_webview.WebView webView, String url)?
urlLoading,
}) =>
Expand Down Expand Up @@ -565,8 +559,7 @@ void main() {
Future<List<String>> Function(
android_webview.WebView webView,
android_webview.FileChooserParams params,
)?
onShowFileChooser,
)? onShowFileChooser,
}) {
onShowFileChooserCallback = onShowFileChooser!;
return mockWebChromeClient;
Expand Down

0 comments on commit 8a7dead

Please sign in to comment.