nsIEditorUtils.idl 990 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 4; 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. #include "domstubs.idl"
  8. interface nsIDOMBlob;
  9. interface mozIDOMWindowProxy;
  10. [scriptable, uuid(eb8b8ad9-5d8f-43bd-8ce5-5b943c180d56)]
  11. interface nsIEditorBlobListener : nsISupports
  12. {
  13. void onResult(in ACString aResult);
  14. void onError(in AString aErrorName);
  15. };
  16. /**
  17. * A collection of utility functions that editors can use that are more easily
  18. * done in JavaScript.
  19. */
  20. [scriptable, uuid(4bf94928-575e-4bd1-8321-a2c4b3d0119e)]
  21. interface nsIEditorUtils : nsISupports
  22. {
  23. /**
  24. * Given a blob, returns the data from that blob, asynchronously.
  25. */
  26. void slurpBlob(in nsIDOMBlob aBlob, in mozIDOMWindowProxy aScope,
  27. in nsIEditorBlobListener aListener);
  28. };