diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 21:49:20 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-16 19:54:41 -0500 |
commit | 0fb2357ec7388198134aed021a7014c0c0dda5c9 (patch) | |
tree | c5da450582f5b9b3d73775a9a22045fff5db758f /ext/fg | |
parent | 29734ea6e95ad0c3a7e159a424dd587dc4966fa5 (diff) |
isVisibleAsync => isVisible
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/frontend.js | 2 | ||||
-rw-r--r-- | ext/fg/js/popup-proxy-host.js | 4 | ||||
-rw-r--r-- | ext/fg/js/popup-proxy.js | 4 | ||||
-rw-r--r-- | ext/fg/js/popup.js | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 2fa69c9d..d29e4e4c 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -67,7 +67,7 @@ class Frontend extends TextScanner { async onResize() { const textSource = this.textSourceCurrent; - if (textSource !== null && await this.popup.isVisibleAsync()) { + if (textSource !== null && await this.popup.isVisible()) { this._lastShowPromise = this.popup.showContent( textSource.getRect(), textSource.getWritingMode() diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index 2f06bb67..9ff8a8c8 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -42,7 +42,7 @@ class PopupProxyHost { ['createNestedPopup', ({parentId}) => this._onApiCreateNestedPopup(parentId)], ['setOptions', ({id, options}) => this._onApiSetOptions(id, options)], ['hide', ({id, changeFocus}) => this._onApiHide(id, changeFocus)], - ['isVisibleAsync', ({id}) => this._onApiIsVisibleAsync(id)], + ['isVisible', ({id}) => this._onApiIsVisibleAsync(id)], ['setVisibleOverride', ({id, visible}) => this._onApiSetVisibleOverride(id, visible)], ['containsPoint', ({id, x, y}) => this._onApiContainsPoint(id, x, y)], ['showContent', ({id, elementRect, writingMode, type, details}) => this._onApiShowContent(id, elementRect, writingMode, type, details)], @@ -73,7 +73,7 @@ class PopupProxyHost { async _onApiIsVisibleAsync(id) { const popup = this._getPopup(id); - return await popup.isVisibleAsync(); + return await popup.isVisible(); } async _onApiSetVisibleOverride(id, visible) { diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index d52cc26d..e4081e90 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -60,9 +60,9 @@ class PopupProxy { return await this._invokeHostApi('hide', {id: this._id, changeFocus}); } - async isVisibleAsync() { + async isVisible() { const id = await this._getPopupId(); - return await this._invokeHostApi('isVisibleAsync', {id}); + return await this._invokeHostApi('isVisible', {id}); } async setVisibleOverride(visible) { diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 4b8da979..2026b7a5 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -83,7 +83,7 @@ class Popup { } } - async isVisibleAsync() { + async isVisible() { return this.isVisibleSync(); } |