Bug 1859954 - Use XP_DARWIN rather than XP_MACOS in PHC r=glandium
[gecko.git] / xpfe / appshell / nsIXULBrowserWindow.idl
blob9adb4dd5a1dd6ef40ac74135dfb993691eedd029
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 #include "nsISupports.idl"
8 #include "nsIURI.idl"
10 interface nsIBrowser;
11 interface nsIRequest;
12 interface nsIInputStream;
13 interface nsIDocShell;
14 interface nsIRemoteTab;
15 interface nsIPrincipal;
16 interface mozIDOMWindowProxy;
17 interface nsIContentSecurityPolicy;
18 interface nsIReferrerInfo;
20 webidl Element;
21 webidl Node;
23 /**
24 * The nsIXULBrowserWindow supplies the methods that may be called from the
25 * internals of the browser area to tell the containing xul window to update
26 * its ui.
28 [scriptable, uuid(a8675fa9-c8b4-4350-9803-c38f344a9e38)]
29 interface nsIXULBrowserWindow : nsISupports
31 /**
32 * Tells the object implementing this function what link we are currently
33 * over.
35 void setOverLink(in AString link);
37 /**
38 * Determines the appropriate target for a link.
40 AString onBeforeLinkTraversal(in AString originalTarget,
41 in nsIURI linkURI,
42 in Node linkNode,
43 in boolean isAppTab);
45 /**
46 * Show/hide a tooltip (when the user mouses over a link, say).
48 * x and y coordinates are in device pixels.
50 void showTooltip(in long x, in long y, in AString tooltip, in AString direction,
51 in Element browser);
52 void hideTooltip();
54 /**
55 * Return the number of tabs in this window.
57 uint32_t getTabCount();