@@ -13989,6 +13989,40 @@ class Element extends Node
1398913989
1399013990 int get scrollWidth => JS<num>('num', '#.scrollWidth', this).round();
1399113991
13992+ /**
13993+ * Displays this element fullscreen.
13994+ *
13995+ * ## Other resources
13996+ *
13997+ * * [Fullscreen
13998+ * API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API)
13999+ * from MDN.
14000+ * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C.
14001+ */
14002+ @SupportedBrowser(SupportedBrowser.CHROME)
14003+ @SupportedBrowser(SupportedBrowser.SAFARI)
14004+ Future<void> requestFullscreen([Map? options]) {
14005+ var retValue;
14006+ if (options != null) {
14007+ retValue = JS(
14008+ '',
14009+ '(#.requestFullscreen||#.webkitRequestFullscreen).call(#, #)',
14010+ this,
14011+ this,
14012+ this,
14013+ convertDartToNative_Dictionary(options));
14014+ } else {
14015+ retValue = JS(
14016+ '',
14017+ '(#.requestFullscreen||#.webkitRequestFullscreen).call(#)',
14018+ this,
14019+ this,
14020+ this);
14021+ }
14022+ if (retValue != null) return promiseToFuture(retValue);
14023+ return Future<void>.value();
14024+ }
14025+
1399214026 // To suppress missing implicit constructor warnings.
1399314027 factory Element._() {
1399414028 throw new UnsupportedError("Not supported");
@@ -14896,21 +14930,6 @@ class Element extends Node
1489614930
1489714931 void setPointerCapture(int pointerId) native;
1489814932
14899- @JSName('webkitRequestFullscreen')
14900- /**
14901- * Displays this element fullscreen.
14902- *
14903- * ## Other resources
14904- *
14905- * * [Fullscreen
14906- * API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API)
14907- * from MDN.
14908- * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C.
14909- */
14910- @SupportedBrowser(SupportedBrowser.CHROME)
14911- @SupportedBrowser(SupportedBrowser.SAFARI)
14912- void requestFullscreen() native;
14913-
1491414933 // From ChildNode
1491514934
1491614935 void after(Object nodes) native;
0 commit comments