|
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsISupports.idl" |
|
8 #include "nsIURI.idl" |
|
9 #include "nsIDOMNode.idl" |
|
10 |
|
11 interface nsIRequest; |
|
12 interface nsIDOMElement; |
|
13 |
|
14 /** |
|
15 * The nsIXULBrowserWindow supplies the methods that may be called from the |
|
16 * internals of the browser area to tell the containing xul window to update |
|
17 * its ui. |
|
18 */ |
|
19 [scriptable, uuid(e4ee85a0-645d-11e3-949a-0800200c9a66)] |
|
20 interface nsIXULBrowserWindow : nsISupports |
|
21 { |
|
22 /** |
|
23 * Sets the status according to JS' version of status. |
|
24 */ |
|
25 void setJSStatus(in AString status); |
|
26 |
|
27 /** |
|
28 * Tells the object implementing this function what link we are currently |
|
29 * over. |
|
30 */ |
|
31 void setOverLink(in AString link, in nsIDOMElement element); |
|
32 |
|
33 /** |
|
34 * Determines the appropriate target for a link. |
|
35 */ |
|
36 AString onBeforeLinkTraversal(in AString originalTarget, |
|
37 in nsIURI linkURI, |
|
38 in nsIDOMNode linkNode, |
|
39 in boolean isAppTab); |
|
40 |
|
41 /** |
|
42 * Show/hide a tooltip (when the user mouses over a link, say). |
|
43 */ |
|
44 void showTooltip(in long x, in long y, in AString tooltip); |
|
45 void hideTooltip(); |
|
46 }; |
|
47 |