From 01f74510f011e54d452e8fce2b9221b0af942911 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 6 Mar 2021 14:31:23 -0500 Subject: Separate display resizer (#1494) * Make invokeContentOrigin public * Move display resizer functionality into a new class: DisplayResizer * Simplify field names * Use parent frame instead of content origin * Remove unused --- ext/js/app/frontend.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'ext/js/app') diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index 692bfa80..31e93a68 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -128,9 +128,7 @@ class Frontend { ['copySelection', {async: false, handler: this._onApiCopySelection.bind(this)}], ['getSelectionText', {async: false, handler: this._onApiGetSelectionText.bind(this)}], ['getPopupInfo', {async: false, handler: this._onApiGetPopupInfo.bind(this)}], - ['getPageInfo', {async: false, handler: this._onApiGetPageInfo.bind(this)}], - ['getFrameSize', {async: true, handler: this._onApiGetFrameSize.bind(this)}], - ['setFrameSize', {async: true, handler: this._onApiSetFrameSize.bind(this)}] + ['getPageInfo', {async: false, handler: this._onApiGetPageInfo.bind(this)}] ]); this._updateContentScale(); @@ -221,14 +219,6 @@ class Frontend { return await this._popupFactory.clearAllVisibleOverride(token); } - async _onApiGetFrameSize() { - return await this._popup.getFrameSize(); - } - - async _onApiSetFrameSize({width, height}) { - return await this._popup.setFrameSize(width, height); - } - // Private _onResize() { -- cgit v1.2.3