isearch-backspace, isearch-done: docstrings
[conkeror.git] / modules / services.js
blobf891f6c96f99a518b0c097aaab8ca2c894a83ea4
1 /**
2  * (C) Copyright 2010 John J. Foerch
3  *
4  * Use, modification, and distribution are subject to the terms specified in the
5  * COPYING file.
6 **/
8 /**
9  * Be sparing about adding service variables to this file.  Only add
10  * services for which it makes sense to keep a global reference because
11  * they are used in numerous separate places in Conkeror.  In most cases,
12  * a simple `let' form around the function or two that use a service is
13  * best, because it keeps all the code in one place.
14  */
16 const file_locator_service = Cc["@mozilla.org/file/directory_service;1"]
17     .getService(Ci.nsIProperties);
19 const nav_bookmarks_service = Cc["@mozilla.org/browser/nav-bookmarks-service;1"]
20     .getService(Ci.nsINavBookmarksService);
22 const nav_history_service = Cc["@mozilla.org/browser/nav-history-service;1"]
23     .getService(Ci.nsINavHistoryService);
25 const observer_service = Cc["@mozilla.org/observer-service;1"]
26     .getService(Ci.nsIObserverService);
28 provide("services");