From 41d7be473851a0caf43cddb228df225069d051bc Mon Sep 17 00:00:00 2001 From: Alex Kovar Date: Sun, 26 Sep 2010 22:15:54 -0500 Subject: added initial code for "bookmark find mode" --- background_page.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'background_page.html') diff --git a/background_page.html b/background_page.html index 94595b2b..991992b8 100644 --- a/background_page.html +++ b/background_page.html @@ -60,7 +60,8 @@ getCurrentTabUrl: getCurrentTabUrl, getZoomLevel: getZoomLevel, saveZoomLevel: saveZoomLevel, - getSetting: getSetting + getSetting: getSetting, + getBookmarks: getBookmarks }; var sendRequestHandlers = { @@ -245,6 +246,12 @@ returnPort.postMessage({ key: args.key, value: value }); } + function getBookmarks(args, port) { + chrome.bookmarks.search(args.query, function(bookmarks) { + port.postMessage({bookmarks:bookmarks}) + }) + } + /* * Persists the current zoom level for a given domain */ -- cgit v1.2.3