xpfe/appshell/public/nsIXULBrowserWindow.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpfe/appshell/public/nsIXULBrowserWindow.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +#include "nsIURI.idl"
    1.12 +#include "nsIDOMNode.idl"
    1.13 +
    1.14 +interface nsIRequest;
    1.15 +interface nsIDOMElement;
    1.16 +
    1.17 +/**
    1.18 + * The nsIXULBrowserWindow supplies the methods that may be called from the
    1.19 + * internals of the browser area to tell the containing xul window to update
    1.20 + * its ui. 
    1.21 + */
    1.22 +[scriptable, uuid(e4ee85a0-645d-11e3-949a-0800200c9a66)]
    1.23 +interface nsIXULBrowserWindow : nsISupports
    1.24 +{
    1.25 +  /**
    1.26 +   * Sets the status according to JS' version of status.
    1.27 +   */
    1.28 +  void setJSStatus(in AString status);
    1.29 +
    1.30 +  /**
    1.31 +   * Tells the object implementing this function what link we are currently
    1.32 +   * over.
    1.33 +   */
    1.34 +  void setOverLink(in AString link, in nsIDOMElement element);
    1.35 +
    1.36 +  /**
    1.37 +   * Determines the appropriate target for a link.
    1.38 +   */
    1.39 +  AString onBeforeLinkTraversal(in AString originalTarget,
    1.40 +                                in nsIURI linkURI,
    1.41 +                                in nsIDOMNode linkNode,
    1.42 +                                in boolean isAppTab);
    1.43 +
    1.44 +  /**
    1.45 +   * Show/hide a tooltip (when the user mouses over a link, say).
    1.46 +   */
    1.47 +  void showTooltip(in long x, in long y, in AString tooltip);
    1.48 +  void hideTooltip();
    1.49 +};
    1.50 +

mercurial