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

Function show

content_scripts/hud.js:76–87  ·  view source on GitHub ↗
(text, duration)

Source from the content-addressed store, hash-verified

74
75 // duration - if omitted, the message will show until dismissed.
76 async show(text, duration) {
77 await DomUtils.documentComplete();
78 clearTimeout(this._showForDurationTimerId);
79 // @hudUI.activate will take charge of making it visible
80 await this.init(false);
81 this.hudUI.show({ name: "show", text });
82 this.tween.fade(1.0, 150);
83
84 if (duration != null) {
85 this._showForDurationTimerId = setTimeout(() => this.hide(), duration);
86 }
87 },
88
89 async showFindMode(findMode = null) {
90 this.findMode = findMode;

Callers

nothing calls this directly

Calls 5

setTimeoutFunction · 0.85
fadeMethod · 0.80
initMethod · 0.45
showMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected