aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-03-28 05:51:46 +0100
committerStephen Blott2016-03-28 05:51:46 +0100
commit2a62e4811fc2360257dd99066b4caa3e95025cbf (patch)
tree1a9a59629600a849aa096d19e7db3681828dcd1d /content_scripts/vimium_frontend.coffee
parent3539ad89382c02bf2f89d890b86e49409059391f (diff)
parent00c9e9e1a0c26fc8ece99318bf5eec85a090ecc2 (diff)
downloadvimium-2a62e4811fc2360257dd99066b4caa3e95025cbf.tar.bz2
Merge pull request #2048 from smblott-github/global-link-hints
Global link hints
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 564966bf..93ab440a 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -154,6 +154,7 @@ initializePreDomReady = ->
checkEnabledAfterURLChange: checkEnabledAfterURLChange
runInTopFrame: ({sourceFrameId, registryEntry}) ->
Utils.invokeCommandString registryEntry.command, sourceFrameId, registryEntry if DomUtils.isTopFrame()
+ linkHintsMessage: (request) -> HintCoordinator[request.messageType] request
chrome.runtime.onMessage.addListener (request, sender, sendResponse) ->
# These requests are intended for the background page, but they're delivered to the options page too.
@@ -637,8 +638,8 @@ root.frameId = frameId
root.Frame = Frame
root.windowIsFocused = windowIsFocused
root.bgLog = bgLog
-# These are exported for find mode.
+# These are exported for find mode and link-hints mode.
extend root, {handleEscapeForFindMode, handleEnterForFindMode, performFind, performBackwardsFind,
- enterFindMode}
+ enterFindMode, focusThisFrame}
# These are exported only for the tests.
extend root, {installModes, installListeners}