2000-03-24 06:09:39 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-03-24 06:09:39 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2010-10-29 02:00:31 +04:00
|
|
|
#include "nsIURI.idl"
|
2000-03-24 06:09:39 +03:00
|
|
|
|
2016-12-13 11:32:54 +03:00
|
|
|
interface nsIBrowser;
|
2006-02-04 00:28:11 +03:00
|
|
|
interface nsIRequest;
|
2014-09-25 22:35:45 +04:00
|
|
|
interface nsIInputStream;
|
|
|
|
interface nsIDocShell;
|
2019-04-09 23:59:37 +03:00
|
|
|
interface nsIRemoteTab;
|
2017-01-18 10:24:55 +03:00
|
|
|
interface nsIPrincipal;
|
2016-10-07 21:59:59 +03:00
|
|
|
interface mozIDOMWindowProxy;
|
2019-02-21 18:00:32 +03:00
|
|
|
interface nsIContentSecurityPolicy;
|
2019-07-29 13:13:45 +03:00
|
|
|
interface nsIReferrerInfo;
|
|
|
|
|
2018-04-27 06:37:29 +03:00
|
|
|
webidl Element;
|
2018-05-30 05:58:48 +03:00
|
|
|
webidl Node;
|
2018-04-27 06:37:29 +03:00
|
|
|
|
2000-03-24 06:09:39 +03:00
|
|
|
/**
|
|
|
|
* The nsIXULBrowserWindow supplies the methods that may be called from the
|
|
|
|
* internals of the browser area to tell the containing xul window to update
|
2008-10-02 10:49:45 +04:00
|
|
|
* its ui.
|
2000-03-24 06:09:39 +03:00
|
|
|
*/
|
2015-07-02 21:04:06 +03:00
|
|
|
[scriptable, uuid(a8675fa9-c8b4-4350-9803-c38f344a9e38)]
|
2000-03-24 06:09:39 +03:00
|
|
|
interface nsIXULBrowserWindow : nsISupports
|
|
|
|
{
|
2006-02-04 00:28:11 +03:00
|
|
|
/**
|
|
|
|
* Tells the object implementing this function what link we are currently
|
|
|
|
* over.
|
|
|
|
*/
|
2019-12-05 17:23:01 +03:00
|
|
|
void setOverLink(in AString link);
|
2010-10-29 02:00:31 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Determines the appropriate target for a link.
|
|
|
|
*/
|
|
|
|
AString onBeforeLinkTraversal(in AString originalTarget,
|
|
|
|
in nsIURI linkURI,
|
2018-05-30 05:58:48 +03:00
|
|
|
in Node linkNode,
|
2011-08-07 09:03:32 +04:00
|
|
|
in boolean isAppTab);
|
2014-01-23 00:27:23 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Show/hide a tooltip (when the user mouses over a link, say).
|
|
|
|
*/
|
2017-08-02 01:01:06 +03:00
|
|
|
void showTooltip(in long x, in long y, in AString tooltip, in AString direction,
|
2019-02-16 01:20:53 +03:00
|
|
|
in Element browser);
|
2014-01-23 00:27:23 +04:00
|
|
|
void hideTooltip();
|
2016-04-14 21:03:00 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the number of tabs in this window.
|
|
|
|
*/
|
|
|
|
uint32_t getTabCount();
|
2000-03-24 06:09:39 +03:00
|
|
|
};
|
|
|
|
|