diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-11-21 15:54:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 15:54:58 -0500 |
commit | 005f9658d98143ea1189482ae627405c8bf5a566 (patch) | |
tree | 712732685dd3300ad9403f17d2937486e3835661 /ext/js/app/popup.js | |
parent | 06e70c1cd8a6e23b54ba9081caf82902820ceccd (diff) |
Action handler name disambiguation (#2018)
* Disambiguate PopupFactory action handlers
* Update HotkeyHandler action names
* Disambiguate Frontend action handlers
* Disambiguate Display action handlers
* Disambiguate PopupPreviewFrame action handlers
* Disambiguate Yomichan action handlers
* Disambiguate Frontend action handlers
* Disambiguate Display action handlers
* Disambiguate SearchDisplayController action handlers
Diffstat (limited to 'ext/js/app/popup.js')
-rw-r--r-- | ext/js/app/popup.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js index 8454dcb1..acaf6e15 100644 --- a/ext/js/app/popup.js +++ b/ext/js/app/popup.js @@ -161,7 +161,7 @@ class Popup extends EventDispatcher { */ async setOptionsContext(optionsContext) { await this._setOptionsContext(optionsContext); - await this._invokeSafe('setOptionsContext', {optionsContext}); + await this._invokeSafe('Display.setOptionsContext', {optionsContext}); } /** @@ -245,7 +245,7 @@ class Popup extends EventDispatcher { } if (displayDetails !== null) { - this._invokeSafe('setContent', {details: displayDetails}); + this._invokeSafe('Display.setContent', {details: displayDetails}); } } @@ -254,14 +254,14 @@ class Popup extends EventDispatcher { * @param {string} css The CSS rules. */ setCustomCss(css) { - this._invokeSafe('setCustomCss', {css}); + this._invokeSafe('Display.setCustomCss', {css}); } /** * Stops the audio auto-play timer, if one has started. */ clearAutoPlayTimer() { - this._invokeSafe('clearAutoPlayTimer'); + this._invokeSafe('Display.clearAutoPlayTimer'); } /** @@ -271,7 +271,7 @@ class Popup extends EventDispatcher { setContentScale(scale) { this._contentScale = scale; this._frame.style.fontSize = `${scale}px`; - this._invokeSafe('setContentScale', {scale}); + this._invokeSafe('Display.setContentScale', {scale}); } /** @@ -411,7 +411,7 @@ class Popup extends EventDispatcher { await frameClient.connect(this._frame, this._targetOrigin, this._frameId, setupFrame); // Configure - await this._invokeSafe('configure', { + await this._invokeSafe('Display.configure', { depth: this._depth, parentPopupId: this._id, parentFrameId: this._frameId, @@ -569,7 +569,7 @@ class Popup extends EventDispatcher { if (this._visibleValue === value) { return; } this._visibleValue = value; this._frame.style.setProperty('visibility', value ? 'visible' : 'hidden', 'important'); - this._invokeSafe('visibilityChanged', {value}); + this._invokeSafe('Display.visibilityChanged', {value}); } _focusParent() { @@ -627,7 +627,7 @@ class Popup extends EventDispatcher { } _onExtensionUnloaded() { - this._invokeWindow('extensionUnloaded'); + this._invokeWindow('Display.extensionUnloaded'); } _getFrameParentElement() { |