browser/components/nsIBrowserGlue.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIDOMWindow;
michael@0 8
michael@0 9 /**
michael@0 10 * nsIBrowserGlue is a dirty and rather fluid interface to host shared utility
michael@0 11 * methods used by browser UI code, but which are not local to a browser window.
michael@0 12 * The component implementing this interface is meant to be a singleton
michael@0 13 * (service) and should progressively replace some of the shared "glue" code
michael@0 14 * scattered in browser/base/content (e.g. bits of utilOverlay.js,
michael@0 15 * contentAreaUtils.js, globalOverlay.js, browser.js), avoiding dynamic
michael@0 16 * inclusion and initialization of a ton of JS code for *each* window.
michael@0 17 * Dued to its nature and origin, this interface won't probably be the most
michael@0 18 * elegant or stable in the mozilla codebase, but its aim is rather pragmatic:
michael@0 19 * 1) reducing the performance overhead which affects browser window load;
michael@0 20 * 2) allow global hooks (e.g. startup and shutdown observers) which survive
michael@0 21 * browser windows to accomplish browser-related activities, such as shutdown
michael@0 22 * sanitization (see bug #284086)
michael@0 23 *
michael@0 24 */
michael@0 25
michael@0 26 [scriptable, uuid(781df699-17dc-4237-b3d7-876ddb7085e3)]
michael@0 27 interface nsIBrowserGlue : nsISupports
michael@0 28 {
michael@0 29 /**
michael@0 30 * Deletes privacy sensitive data according to user preferences
michael@0 31 *
michael@0 32 * @param aParentWindow an optionally null window which is the parent of the
michael@0 33 * sanitization dialog
michael@0 34 *
michael@0 35 */
michael@0 36 void sanitize(in nsIDOMWindow aParentWindow);
michael@0 37
michael@0 38 /**
michael@0 39 * Add Smart Bookmarks special queries to bookmarks menu and toolbar folder.
michael@0 40 */
michael@0 41 void ensurePlacesDefaultQueriesInitialized();
michael@0 42
michael@0 43 /**
michael@0 44 * Gets the most recent window that's a browser (but not a popup)
michael@0 45 */
michael@0 46 nsIDOMWindow getMostRecentBrowserWindow();
michael@0 47 };

mercurial