embedding/browser/webBrowser/nsIWebBrowserChrome2.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/browser/webBrowser/nsIWebBrowserChrome2.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */
     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 "nsIWebBrowserChrome.idl"
    1.11 +
    1.12 +/**
    1.13 + * nsIWebBrowserChrome2 is an extension to nsIWebBrowserChrome.
    1.14 + */
    1.15 +[scriptable, uuid(2585a7b1-7b47-43c4-bf17-c6bf84e09b7b)]
    1.16 +interface nsIWebBrowserChrome2 : nsIWebBrowserChrome
    1.17 +{
    1.18 +  /**
    1.19 +   * Called when the status text in the chrome needs to be updated.  This
    1.20 +   * method may be called instead of nsIWebBrowserChrome::SetStatus.  An
    1.21 +   * implementor of this method, should still implement SetStatus.
    1.22 +   *
    1.23 +   * @param statusType
    1.24 +   *        Indicates what is setting the text.
    1.25 +   * @param status
    1.26 +   *        Status string.  Null is an acceptable value meaning no status.
    1.27 +   * @param contextNode 
    1.28 +   *        An object that provides context pertaining to the status type.
    1.29 +   *        If statusType is STATUS_LINK, then statusContext may be a DOM
    1.30 +   *        node corresponding to the source of the link.  This value can
    1.31 +   *        be null if there is no context.
    1.32 +   */
    1.33 +  void setStatusWithContext(in unsigned long statusType,
    1.34 +                            in AString statusText,
    1.35 +                            in nsISupports statusContext);
    1.36 +};

mercurial