-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: Implemented shouldInterceptRequest, onLoadResourceWithCustom…
…Scheme WebView events, platform interface: Added WebViewEnvironment.customSchemeRegistrations parameter for Windows, Added CustomSchemeRegistration type
- Loading branch information
1 parent
1834bed
commit 43a7980
Showing
32 changed files
with
607 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_settings.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
flutter_inappwebview_platform_interface/lib/src/types/custom_scheme_registration.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_internal_annotations.dart'; | ||
|
||
import '../webview_environment/webview_environment_settings.dart'; | ||
|
||
part 'custom_scheme_registration.g.dart'; | ||
|
||
///Class that represents the registration of a custom scheme for [WebViewEnvironmentSettings] method. | ||
@SupportedPlatforms(platforms: [WindowsPlatform()]) | ||
@ExchangeableObject() | ||
class CustomSchemeRegistration_ { | ||
///The name of the custom scheme to register. | ||
String scheme; | ||
|
||
///List of origins that are allowed to issue requests with the custom scheme, such as XHRs and subresource requests that have an Origin header. | ||
List<String>? allowedOrigins; | ||
|
||
///Whether the sites with this scheme will be treated as a Secure Context like an HTTPS site. | ||
///This flag is only effective when [hasAuthorityComponent] is also set to `true`. `false` by default. | ||
bool? treatAsSecure; | ||
|
||
///Set this property to `true` if the URIs with this custom scheme will have an authority component (a host for custom schemes). | ||
///Specifically, if you have a URI of the following form you should set the HasAuthorityComponent value as listed. | ||
bool? hasAuthorityComponent; | ||
|
||
CustomSchemeRegistration_({required this.scheme, this.allowedOrigins, this.treatAsSecure, this.hasAuthorityComponent}); | ||
} |
72 changes: 72 additions & 0 deletions
72
flutter_inappwebview_platform_interface/lib/src/types/custom_scheme_registration.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...ebview_platform_interface/lib/src/webview_environment/webview_environment_settings.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.