nsIDeprecationWarner.idl 910 B

123456789101112131415161718192021222324
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. /**
  7. * Interface for warning about deprecated operations. Consumers should
  8. * attach this interface to the channel's notification callbacks/loadgroup.
  9. */
  10. [uuid(665c5124-2c52-41ba-ae72-2393f8e76c25)]
  11. interface nsIDeprecationWarner : nsISupports
  12. {
  13. /**
  14. * Issue a deprecation warning.
  15. *
  16. * @param aWarning a warning code as declared in nsDeprecatedOperationList.h.
  17. * @param aAsError optional boolean flag indicating whether the warning
  18. * should be treated as an error.
  19. */
  20. void issueWarning(in uint32_t aWarning, [optional] in bool aAsError);
  21. };