@@ -3285,6 +3285,45 @@ class Coordinates extends Interceptor {
3285
3285
// for details. All rights reserved. Use of this source code is governed by a
3286
3286
// BSD-style license that can be found in the LICENSE file.
3287
3287
3288
+ // WARNING: Do not edit - generated code.
3289
+
3290
+ typedef void CreateHtmlCallback(String input,
3291
+ [Object? arg1,
3292
+ Object? arg2,
3293
+ Object? arg3,
3294
+ Object? arg4,
3295
+ Object? arg5,
3296
+ Object? arg6]);
3297
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3298
+ // for details. All rights reserved. Use of this source code is governed by a
3299
+ // BSD-style license that can be found in the LICENSE file.
3300
+
3301
+ // WARNING: Do not edit - generated code.
3302
+
3303
+ typedef void CreateScriptCallback(String input,
3304
+ [Object? arg1,
3305
+ Object? arg2,
3306
+ Object? arg3,
3307
+ Object? arg4,
3308
+ Object? arg5,
3309
+ Object? arg6]);
3310
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3311
+ // for details. All rights reserved. Use of this source code is governed by a
3312
+ // BSD-style license that can be found in the LICENSE file.
3313
+
3314
+ // WARNING: Do not edit - generated code.
3315
+
3316
+ typedef void CreateScriptUrlCallback(String input,
3317
+ [Object? arg1,
3318
+ Object? arg2,
3319
+ Object? arg3,
3320
+ Object? arg4,
3321
+ Object? arg5,
3322
+ Object? arg6]);
3323
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3324
+ // for details. All rights reserved. Use of this source code is governed by a
3325
+ // BSD-style license that can be found in the LICENSE file.
3326
+
3288
3327
@Native("Credential")
3289
3328
class Credential extends Interceptor {
3290
3329
// To suppress missing implicit constructor warnings.
@@ -30691,9 +30730,26 @@ class TrustedHtml extends Interceptor {
30691
30730
throw new UnsupportedError("Not supported");
30692
30731
}
30693
30732
30694
- static TrustedHtml escape(String html) native;
30733
+ @JSName('toJSON')
30734
+ String toJson() native;
30735
+
30736
+ String toString() native;
30737
+ }
30738
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30739
+ // for details. All rights reserved. Use of this source code is governed by a
30740
+ // BSD-style license that can be found in the LICENSE file.
30741
+
30742
+ @Native("TrustedScript")
30743
+ class TrustedScript extends Interceptor {
30744
+ // To suppress missing implicit constructor warnings.
30745
+ factory TrustedScript._() {
30746
+ throw new UnsupportedError("Not supported");
30747
+ }
30748
+
30749
+ @JSName('toJSON')
30750
+ String toJson() native;
30695
30751
30696
- static TrustedHtml unsafelyCreate( String html ) native;
30752
+ String toString( ) native;
30697
30753
}
30698
30754
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30699
30755
// for details. All rights reserved. Use of this source code is governed by a
@@ -30706,7 +30762,94 @@ class TrustedScriptUrl extends Interceptor {
30706
30762
throw new UnsupportedError("Not supported");
30707
30763
}
30708
30764
30709
- static TrustedScriptUrl unsafelyCreate(String url) native;
30765
+ @JSName('toJSON')
30766
+ String toJson() native;
30767
+
30768
+ String toString() native;
30769
+ }
30770
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30771
+ // for details. All rights reserved. Use of this source code is governed by a
30772
+ // BSD-style license that can be found in the LICENSE file.
30773
+
30774
+ @Native("TrustedTypePolicy")
30775
+ class TrustedTypePolicy extends Interceptor {
30776
+ // To suppress missing implicit constructor warnings.
30777
+ factory TrustedTypePolicy._() {
30778
+ throw new UnsupportedError("Not supported");
30779
+ }
30780
+
30781
+ String? get name native;
30782
+
30783
+ @JSName('createHTML')
30784
+ TrustedHtml createHtml(String input,
30785
+ [Object? arg1,
30786
+ Object? arg2,
30787
+ Object? arg3,
30788
+ Object? arg4,
30789
+ Object? arg5,
30790
+ Object? arg6]) native;
30791
+
30792
+ TrustedScript createScript(String input,
30793
+ [Object? arg1,
30794
+ Object? arg2,
30795
+ Object? arg3,
30796
+ Object? arg4,
30797
+ Object? arg5,
30798
+ Object? arg6]) native;
30799
+
30800
+ @JSName('createScriptURL')
30801
+ TrustedScriptUrl createScriptUrl(String input,
30802
+ [Object? arg1,
30803
+ Object? arg2,
30804
+ Object? arg3,
30805
+ Object? arg4,
30806
+ Object? arg5,
30807
+ Object? arg6]) native;
30808
+ }
30809
+ // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30810
+ // for details. All rights reserved. Use of this source code is governed by a
30811
+ // BSD-style license that can be found in the LICENSE file.
30812
+
30813
+ @Native("TrustedTypePolicyFactory")
30814
+ class TrustedTypePolicyFactory extends Interceptor {
30815
+ // To suppress missing implicit constructor warnings.
30816
+ factory TrustedTypePolicyFactory._() {
30817
+ throw new UnsupportedError("Not supported");
30818
+ }
30819
+
30820
+ TrustedTypePolicy? get defaultPolicy native;
30821
+
30822
+ @JSName('emptyHTML')
30823
+ TrustedHtml? get emptyHtml native;
30824
+
30825
+ TrustedScript? get emptyScript native;
30826
+
30827
+ TrustedTypePolicy createPolicy(String policyName, [Map? policyOptions]) {
30828
+ if (policyOptions != null) {
30829
+ var policyOptions_1 = convertDartToNative_Dictionary(policyOptions);
30830
+ return _createPolicy_1(policyName, policyOptions_1);
30831
+ }
30832
+ return _createPolicy_2(policyName);
30833
+ }
30834
+
30835
+ @JSName('createPolicy')
30836
+ TrustedTypePolicy _createPolicy_1(policyName, policyOptions) native;
30837
+ @JSName('createPolicy')
30838
+ TrustedTypePolicy _createPolicy_2(policyName) native;
30839
+
30840
+ String? getAttributeType(String tagName, String attribute,
30841
+ [String? elementNs, String? attrNs]) native;
30842
+
30843
+ String? getPropertyType(String tagName, String property, [String? elementNs])
30844
+ native;
30845
+
30846
+ @JSName('isHTML')
30847
+ bool isHtml(Object value) native;
30848
+
30849
+ bool isScript(Object value) native;
30850
+
30851
+ @JSName('isScriptURL')
30852
+ bool isScriptUrl(Object value) native;
30710
30853
}
30711
30854
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30712
30855
// for details. All rights reserved. Use of this source code is governed by a
@@ -32839,6 +32982,8 @@ class Window extends EventTarget
32839
32982
@Returns('Window|=Object')
32840
32983
dynamic get _get_top native;
32841
32984
32985
+ TrustedTypePolicyFactory? get trustedTypes native;
32986
+
32842
32987
VisualViewport? get visualViewport native;
32843
32988
32844
32989
/**
0 commit comments