diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-11 21:29:08 -0400 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-11 21:29:08 -0400 | 
| commit | 76aa30cebad504c3d6811029384713044d4d0428 (patch) | |
| tree | 32f6f015bfa92bc8fa15de7e9328580b8ef50359 /ext/fg/js | |
| parent | cc53510883b5c5f75069655df6a6733ff1bd002a (diff) | |
Add writingMode to PopupProxy* termsShow and kanjiShow
Diffstat (limited to 'ext/fg/js')
| -rw-r--r-- | ext/fg/js/popup-proxy-host.js | 12 | ||||
| -rw-r--r-- | ext/fg/js/popup-proxy.js | 8 | 
2 files changed, 10 insertions, 10 deletions
| diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index fa61aeb4..041900ed 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -43,8 +43,8 @@ class PopupProxyHost {              hide: ({id}) => this.hide(id),              setVisible: ({id, visible}) => this.setVisible(id, visible),              containsPoint: ({id, point}) => this.containsPoint(id, point), -            termsShow: ({id, elementRect, definitions, options, context}) => this.termsShow(id, elementRect, definitions, options, context), -            kanjiShow: ({id, elementRect, definitions, options, context}) => this.kanjiShow(id, elementRect, definitions, options, context), +            termsShow: ({id, elementRect, writingMode, definitions, options, context}) => this.termsShow(id, elementRect, writingMode, definitions, options, context), +            kanjiShow: ({id, elementRect, writingMode, definitions, options, context}) => this.kanjiShow(id, elementRect, writingMode, definitions, options, context),              clearAutoPlayTimer: ({id}) => this.clearAutoPlayTimer(id)          });      } @@ -113,16 +113,16 @@ class PopupProxyHost {          return await popup.containsPoint(point);      } -    async termsShow(id, elementRect, definitions, options, context) { +    async termsShow(id, elementRect, writingMode, definitions, options, context) {          const popup = this.getPopup(id);          elementRect = this.jsonRectToDOMRect(popup, elementRect); -        return await popup.termsShow(elementRect, definitions, options, context); +        return await popup.termsShow(elementRect, writingMode, definitions, options, context);      } -    async kanjiShow(id, elementRect, definitions, options, context) { +    async kanjiShow(id, elementRect, writingMode, definitions, options, context) {          const popup = this.getPopup(id);          elementRect = this.jsonRectToDOMRect(popup, elementRect); -        return await popup.kanjiShow(elementRect, definitions, options, context); +        return await popup.kanjiShow(elementRect, writingMode, definitions, options, context);      }      async clearAutoPlayTimer(id) { diff --git a/ext/fg/js/popup-proxy.js b/ext/fg/js/popup-proxy.js index f6295079..32094102 100644 --- a/ext/fg/js/popup-proxy.js +++ b/ext/fg/js/popup-proxy.js @@ -76,16 +76,16 @@ class PopupProxy {          return await this.invokeHostApi('containsPoint', {id: this.id, point});      } -    async termsShow(elementRect, definitions, options, context) { +    async termsShow(elementRect, writingMode, definitions, options, context) {          const id = await this.getPopupId();          elementRect = PopupProxy.DOMRectToJson(elementRect); -        return await this.invokeHostApi('termsShow', {id, elementRect, definitions, options, context}); +        return await this.invokeHostApi('termsShow', {id, elementRect, writingMode, definitions, options, context});      } -    async kanjiShow(elementRect, definitions, options, context) { +    async kanjiShow(elementRect, writingMode, definitions, options, context) {          const id = await this.getPopupId();          elementRect = PopupProxy.DOMRectToJson(elementRect); -        return await this.invokeHostApi('kanjiShow', {id, elementRect, definitions, options, context}); +        return await this.invokeHostApi('kanjiShow', {id, elementRect, writingMode, definitions, options, context});      }      async clearAutoPlayTimer() { |