boda_jsEnv/env_xbb_lastest_bo/env/PictureInPictureWindow.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

49 lines
1.8 KiB
JavaScript

// PictureInPictureWindow对象
PictureInPictureWindow = function PictureInPictureWindow() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof PictureInPictureWindow)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('PictureInPictureWindow 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(PictureInPictureWindow, "PictureInPictureWindow");
PictureInPictureWindow.prototype.__proto__ = EventTarget.prototype;
PictureInPictureWindow.__proto__ = EventTarget;
bodavm.toolsFunc.defineProperty(PictureInPictureWindow.prototype, "width", {
configurable: true,
enumerable: true,
get: function width() {
return bodavm.toolsFunc.dispatch(this, PictureInPictureWindow.prototype, "PictureInPictureWindow", "width_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(PictureInPictureWindow.prototype, "height", {
configurable: true,
enumerable: true,
get: function height() {
return bodavm.toolsFunc.dispatch(this, PictureInPictureWindow.prototype, "PictureInPictureWindow", "height_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(PictureInPictureWindow.prototype, "onresize", {
configurable: true,
enumerable: true,
get: function onresize() {
return bodavm.toolsFunc.dispatch(this, PictureInPictureWindow.prototype, "PictureInPictureWindow", "onresize_get", arguments);
},
set: function onresize() {
return bodavm.toolsFunc.dispatch(this, PictureInPictureWindow.prototype, "PictureInPictureWindow", "onresize_set", arguments);
}
});