nsIDOMDataContainerEvent.idl 913 B

12345678910111213141516171819202122232425262728293031
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  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. #include "nsIVariant.idl"
  7. [builtinclass, uuid(a9f1f528-d106-4fea-8663-2d7f64b627a9)]
  8. interface nsIDOMDataContainerEvent : nsISupports
  9. {
  10. /**
  11. * Return the data associated with the given key.
  12. *
  13. * @param key the key
  14. * @return the data associated with the key
  15. */
  16. nsIVariant getData(in DOMString key);
  17. /**
  18. * Set the data for the given key.
  19. *
  20. * @param key the data key
  21. * @param data the data
  22. * @throws NS_ERROR_UNEXPECTED if the method is called during event
  23. * dispatch
  24. */
  25. void setData(in DOMString key, in nsIVariant data);
  26. };