diff options
| author | mrmr1993 | 2015-05-28 22:12:08 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2015-06-10 17:21:22 +0100 | 
| commit | 85aa76ec68167ea0ac08cc627b3f12e1077b1b1f (patch) | |
| tree | ef3af1d54974f902be287d882bbbb1165082d196 /content_scripts/hud.coffee | |
| parent | f3e62301cf51fbeea77fb49eb90f1b7b9138d118 (diff) | |
| download | vimium-85aa76ec68167ea0ac08cc627b3f12e1077b1b1f.tar.bz2 | |
Decide find mode text in the HUD iframe, not in frontend
Diffstat (limited to 'content_scripts/hud.coffee')
| -rw-r--r-- | content_scripts/hud.coffee | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index 84b8abeb..3e749da5 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -26,6 +26,14 @@ HUD =      @hudUI.show {name: "show", text}      @tween.fade 1.0, 150 +  showFindMode: (text = "") -> +    return unless @enabled() +    @hudUI.show {name: "showFindMode", text} +    @tween.fade 1.0, 150 + +  updateMatchesCount: (matchCount, showMatchText = true) -> +    @hudUI.postMessage {name: "updateMatchesCount", matchCount, showMatchText} +    # Hide the HUD.    # If :immediate is falsy, then the HUD is faded out smoothly (otherwise it is hidden immediately).    # If :updateIndicator is truthy, then we also refresh the mode indicator.  The only time we don't update the  | 
