embedding/browser/webBrowser/nsIWebBrowserChrome3.idl

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:54707a6936b5
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "nsIWebBrowserChrome2.idl"
6 #include "nsIURI.idl"
7 #include "nsIDOMNode.idl"
8
9 /**
10 * nsIWebBrowserChrome3 is an extension to nsIWebBrowserChrome2.
11 */
12 [scriptable, uuid(7f2aa813-b250-4e46-afeb-97b1e91bc9a5)]
13 interface nsIWebBrowserChrome3 : nsIWebBrowserChrome2
14 {
15 /**
16 * Determines the appropriate target for a link.
17 *
18 * @param originalTarget
19 * The original link target.
20 * @param linkURI
21 * Link destination URI.
22 * @param aDOMNode
23 * Link DOM node.
24 * @param isAppTab
25 * Whether or not the link is in an app tab.
26 * @returns A new link target, if appropriate.
27 * Otherwise returns originalTarget.
28 */
29 AString onBeforeLinkTraversal(in AString originalTarget,
30 in nsIURI linkURI,
31 in nsIDOMNode linkNode,
32 in boolean isAppTab);
33 };

mercurial