1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/browser/webBrowser/nsIWebBrowserChrome3.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsIWebBrowserChrome2.idl" 1.9 +#include "nsIURI.idl" 1.10 +#include "nsIDOMNode.idl" 1.11 + 1.12 +/** 1.13 + * nsIWebBrowserChrome3 is an extension to nsIWebBrowserChrome2. 1.14 + */ 1.15 +[scriptable, uuid(7f2aa813-b250-4e46-afeb-97b1e91bc9a5)] 1.16 +interface nsIWebBrowserChrome3 : nsIWebBrowserChrome2 1.17 +{ 1.18 + /** 1.19 + * Determines the appropriate target for a link. 1.20 + * 1.21 + * @param originalTarget 1.22 + * The original link target. 1.23 + * @param linkURI 1.24 + * Link destination URI. 1.25 + * @param aDOMNode 1.26 + * Link DOM node. 1.27 + * @param isAppTab 1.28 + * Whether or not the link is in an app tab. 1.29 + * @returns A new link target, if appropriate. 1.30 + * Otherwise returns originalTarget. 1.31 + */ 1.32 + AString onBeforeLinkTraversal(in AString originalTarget, 1.33 + in nsIURI linkURI, 1.34 + in nsIDOMNode linkNode, 1.35 + in boolean isAppTab); 1.36 +};