MCPcopy
hub / github.com/philc/vimium / show

Method show

content_scripts/ui_component.js:167–178  ·  view source on GitHub ↗
(messageData = {}, focusOptions = {})

Source from the content-addressed store, hash-verified

165 // sourceFrameId: which frame should the focus when this component is dismissed.
166 // }
167 async show(messageData = {}, focusOptions = {}) {
168 if (focusOptions) {
169 Utils.assertType({ focus: "boolean", sourceFrameId: "number" }, focusOptions);
170 }
171 this.focusOptions = focusOptions;
172 await this.postMessage(messageData);
173 this.setIframeVisible(true);
174 if (this.focusOptions.focus) {
175 this.iframeElement.focus();
176 }
177 this.showing = true;
178 }
179
180 async hide(shouldRefocusOriginalFrame) {
181 if (shouldRefocusOriginalFrame == null) shouldRefocusOriginalFrame = true;

Callers 15

openFunction · 0.45
initMethod · 0.45
initMethod · 0.45
findMethod · 0.45
yankMethod · 0.45
initMethod · 0.45
linkActivatorFunction · 0.45
constructorMethod · 0.45
copyCurrentUrlFunction · 0.45
focusInputFunction · 0.45
showMessageFunction · 0.45
toggleFunction · 0.45

Calls 2

postMessageMethod · 0.95
setIframeVisibleMethod · 0.95

Tested by

no test coverage detected