michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: #include "nsIURI.idl" michael@0: #include "nsIDOMNode.idl" michael@0: michael@0: interface nsIRequest; michael@0: interface nsIDOMElement; michael@0: michael@0: /** michael@0: * The nsIXULBrowserWindow supplies the methods that may be called from the michael@0: * internals of the browser area to tell the containing xul window to update michael@0: * its ui. michael@0: */ michael@0: [scriptable, uuid(e4ee85a0-645d-11e3-949a-0800200c9a66)] michael@0: interface nsIXULBrowserWindow : nsISupports michael@0: { michael@0: /** michael@0: * Sets the status according to JS' version of status. michael@0: */ michael@0: void setJSStatus(in AString status); michael@0: michael@0: /** michael@0: * Tells the object implementing this function what link we are currently michael@0: * over. michael@0: */ michael@0: void setOverLink(in AString link, in nsIDOMElement element); michael@0: michael@0: /** michael@0: * Determines the appropriate target for a link. michael@0: */ michael@0: AString onBeforeLinkTraversal(in AString originalTarget, michael@0: in nsIURI linkURI, michael@0: in nsIDOMNode linkNode, michael@0: in boolean isAppTab); michael@0: michael@0: /** michael@0: * Show/hide a tooltip (when the user mouses over a link, say). michael@0: */ michael@0: void showTooltip(in long x, in long y, in AString tooltip); michael@0: void hideTooltip(); michael@0: }; michael@0: