xpctest_attributes.idl 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  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. /*
  8. * This defines the interface for a test object.
  9. *
  10. */
  11. [scriptable, uuid(42fbd9f6-b12d-47ef-b7a1-02d73c11fe53)]
  12. interface nsIXPCTestObjectReadOnly : nsISupports {
  13. readonly attribute string strReadOnly;
  14. readonly attribute boolean boolReadOnly;
  15. readonly attribute short shortReadOnly;
  16. readonly attribute long longReadOnly;
  17. readonly attribute float floatReadOnly;
  18. readonly attribute char charReadOnly;
  19. readonly attribute PRTime timeReadOnly;
  20. };
  21. [scriptable, uuid(f07529b0-a479-4954-aba5-ab3142c6b1cb)]
  22. interface nsIXPCTestObjectReadWrite : nsISupports {
  23. attribute string stringProperty;
  24. attribute boolean booleanProperty;
  25. attribute short shortProperty;
  26. attribute long longProperty;
  27. attribute float floatProperty;
  28. attribute char charProperty;
  29. attribute PRTime timeProperty;
  30. };