nsIWebBrowserChrome2.idl 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim:set ts=2 sw=2 sts=2 et cindent: */
  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/. */
  6. #include "nsIWebBrowserChrome.idl"
  7. /**
  8. * nsIWebBrowserChrome2 is an extension to nsIWebBrowserChrome.
  9. */
  10. [scriptable, uuid(2585a7b1-7b47-43c4-bf17-c6bf84e09b7b)]
  11. interface nsIWebBrowserChrome2 : nsIWebBrowserChrome
  12. {
  13. /**
  14. * Called when the status text in the chrome needs to be updated. This
  15. * method may be called instead of nsIWebBrowserChrome::SetStatus. An
  16. * implementor of this method, should still implement SetStatus.
  17. *
  18. * @param statusType
  19. * Indicates what is setting the text.
  20. * @param status
  21. * Status string. Null is an acceptable value meaning no status.
  22. * @param contextNode
  23. * An object that provides context pertaining to the status type.
  24. * If statusType is STATUS_LINK, then statusContext may be a DOM
  25. * node corresponding to the source of the link. This value can
  26. * be null if there is no context.
  27. */
  28. void setStatusWithContext(in unsigned long statusType,
  29. in AString statusText,
  30. in nsISupports statusContext);
  31. };