diff options
| author | ilya | 2009-12-30 14:30:28 -0800 |
|---|---|---|
| committer | ilya | 2009-12-30 14:30:28 -0800 |
| commit | b00f9901ac257f1baaef5ffb447d5a9737dd080c (patch) | |
| tree | be0b4612c5c04390248b4535462bb2e634fe9896 | |
| parent | a4ef4933a112f45fedabbc1d8dfb24cc653e7c32 (diff) | |
| download | vimium-b00f9901ac257f1baaef5ffb447d5a9737dd080c.tar.bz2 | |
Expose completion keys via sendRequest interface in background page.
| -rw-r--r-- | background_page.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html index 132b9c4a..9640ab50 100644 --- a/background_page.html +++ b/background_page.html @@ -19,7 +19,9 @@ getSetting: getSetting }; - var sendRequestHandlers = {}; + var sendRequestHandlers = { + getCompletionKeys: getCompletionKeys + }; // Event handlers var selectionChangedHandlers = []; @@ -98,6 +100,13 @@ returnPort.postMessage({ zoomLevel: zoomLevel }); } + /** + * Returns the keys that can complete a valid command given the current key queue. + */ + function getCompletionKeys(request) { + return {completionKeys: generateCompletionKeys()}; + } + /* * Used by the content scripts to get settings from the local storage. */ |
