1/* 2 * Copyright (c) 2023-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16class ExtensionWindow { 17 constructor(obj) { 18 this.__extension_window__ = obj; 19 } 20 21 get properties() { 22 return this.__extension_window__.properties; 23 } 24 25 set properties(value) { 26 } 27 28 getWindowAvoidArea(type) { 29 return this.__extension_window__.getWindowAvoidArea(type); 30 } 31 32 on(type, callback) { 33 return this.__extension_window__.on(type, callback); 34 } 35 36 on(type, reasons, callback) { 37 return this.__extension_window__.on(type, reasons, callback); 38 } 39 40 off(type, callback) { 41 return this.__extension_window__.off(type, callback); 42 } 43 44 hideNonSecureWindows(type, callback) { 45 return this.__extension_window__.hideNonSecureWindows(type, callback); 46 } 47 48 createSubWindowWithOptions(type, callback) { 49 return this.__extension_window__.createSubWindowWithOptions(type, callback); 50 } 51 52 setWaterMarkFlag(type, callback) { 53 return this.__extension_window__.setWaterMarkFlag(type, callback); 54 } 55 56 hidePrivacyContentForHost(type, callback) { 57 return this.__extension_window__.hidePrivacyContentForHost(type, callback); 58 } 59} 60 61export default ExtensionWindow; 62