aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-05 14:47:02 +0100
committerStephen Blott2015-05-05 14:47:06 +0100
commit7c855af38cfdf32a05b90b2da4711720ebac8865 (patch)
tree1ce262948ac2aa6992ac8f48b7bad82bb1748ea1 /background_scripts/completion.coffee
parente21896e2af7f28eb17b5b98a32cfce32fe171d3a (diff)
downloadvimium-7c855af38cfdf32a05b90b2da4711720ebac8865.tar.bz2
Search completion; user is typing.
Add plumbing to allow the front end to directly inform completers when the user is typing.
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 33d8a563..92936098 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -331,6 +331,9 @@ class TabCompleter
class SearchEngineCompleter
searchEngines: {}
+ userIsTyping: ->
+ SearchEngines.userIsTyping()
+
filter: (queryTerms, onComplete) ->
{ keyword: keyword, url: url, description: description } = @getSearchEngineMatches queryTerms
custom = url?
@@ -443,6 +446,9 @@ class MultiCompleter
refresh: ->
completer.refresh?() for completer in @completers
+ userIsTyping: ->
+ completer.userIsTyping?() for completer in @completers
+
filter: (queryTerms, onComplete) ->
# Allow only one query to run at a time.
if @filterInProgress