isVisibleAsync => isVisible
This commit is contained in:
parent
29734ea6e9
commit
0fb2357ec7
@ -67,7 +67,7 @@ class Frontend extends TextScanner {
|
|||||||
|
|
||||||
async onResize() {
|
async onResize() {
|
||||||
const textSource = this.textSourceCurrent;
|
const textSource = this.textSourceCurrent;
|
||||||
if (textSource !== null && await this.popup.isVisibleAsync()) {
|
if (textSource !== null && await this.popup.isVisible()) {
|
||||||
this._lastShowPromise = this.popup.showContent(
|
this._lastShowPromise = this.popup.showContent(
|
||||||
textSource.getRect(),
|
textSource.getRect(),
|
||||||
textSource.getWritingMode()
|
textSource.getWritingMode()
|
||||||
|
@ -42,7 +42,7 @@ class PopupProxyHost {
|
|||||||
['createNestedPopup', ({parentId}) => this._onApiCreateNestedPopup(parentId)],
|
['createNestedPopup', ({parentId}) => this._onApiCreateNestedPopup(parentId)],
|
||||||
['setOptions', ({id, options}) => this._onApiSetOptions(id, options)],
|
['setOptions', ({id, options}) => this._onApiSetOptions(id, options)],
|
||||||
['hide', ({id, changeFocus}) => this._onApiHide(id, changeFocus)],
|
['hide', ({id, changeFocus}) => this._onApiHide(id, changeFocus)],
|
||||||
['isVisibleAsync', ({id}) => this._onApiIsVisibleAsync(id)],
|
['isVisible', ({id}) => this._onApiIsVisibleAsync(id)],
|
||||||
['setVisibleOverride', ({id, visible}) => this._onApiSetVisibleOverride(id, visible)],
|
['setVisibleOverride', ({id, visible}) => this._onApiSetVisibleOverride(id, visible)],
|
||||||
['containsPoint', ({id, x, y}) => this._onApiContainsPoint(id, x, y)],
|
['containsPoint', ({id, x, y}) => this._onApiContainsPoint(id, x, y)],
|
||||||
['showContent', ({id, elementRect, writingMode, type, details}) => this._onApiShowContent(id, elementRect, writingMode, type, details)],
|
['showContent', ({id, elementRect, writingMode, type, details}) => this._onApiShowContent(id, elementRect, writingMode, type, details)],
|
||||||
@ -73,7 +73,7 @@ class PopupProxyHost {
|
|||||||
|
|
||||||
async _onApiIsVisibleAsync(id) {
|
async _onApiIsVisibleAsync(id) {
|
||||||
const popup = this._getPopup(id);
|
const popup = this._getPopup(id);
|
||||||
return await popup.isVisibleAsync();
|
return await popup.isVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
async _onApiSetVisibleOverride(id, visible) {
|
async _onApiSetVisibleOverride(id, visible) {
|
||||||
|
@ -60,9 +60,9 @@ class PopupProxy {
|
|||||||
return await this._invokeHostApi('hide', {id: this._id, changeFocus});
|
return await this._invokeHostApi('hide', {id: this._id, changeFocus});
|
||||||
}
|
}
|
||||||
|
|
||||||
async isVisibleAsync() {
|
async isVisible() {
|
||||||
const id = await this._getPopupId();
|
const id = await this._getPopupId();
|
||||||
return await this._invokeHostApi('isVisibleAsync', {id});
|
return await this._invokeHostApi('isVisible', {id});
|
||||||
}
|
}
|
||||||
|
|
||||||
async setVisibleOverride(visible) {
|
async setVisibleOverride(visible) {
|
||||||
|
@ -83,7 +83,7 @@ class Popup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async isVisibleAsync() {
|
async isVisible() {
|
||||||
return this.isVisibleSync();
|
return this.isVisibleSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user