imgIOnloadBlocker.idl 934 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  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 "nsISupports.idl"
  7. interface imgIRequest;
  8. [uuid(dc126d90-0ee0-4683-b942-2fa66e443abc)]
  9. interface imgIOnloadBlocker : nsISupports
  10. {
  11. /**
  12. * blockOnload
  13. * Called when it is appropriate to block onload for the given imgIRequest.
  14. *
  15. * @param aRequest
  16. * The request that should block onload.
  17. */
  18. void blockOnload(in imgIRequest aRequest);
  19. /**
  20. * unblockOnload
  21. * Called when it is appropriate to unblock onload for the given
  22. * imgIRequest.
  23. *
  24. * @param aRequest
  25. * The request that should unblock onload.
  26. */
  27. void unblockOnload(in imgIRequest aRequest);
  28. };