nsIAccessibleTextChangeEvent.idl 898 B

12345678910111213141516171819202122232425262728293031323334
  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 "nsIAccessibleEvent.idl"
  6. /**
  7. * Fired when an accessible's text changes.
  8. */
  9. [scriptable, builtinclass, uuid(1fcc0dfa-93e6-48f4-bbd4-f80eb1d9f2e6)]
  10. interface nsIAccessibleTextChangeEvent : nsIAccessibleEvent
  11. {
  12. /**
  13. * Returns offset of changed text in accessible.
  14. */
  15. readonly attribute long start;
  16. /**
  17. * Returns length of changed text.
  18. */
  19. readonly attribute unsigned long length;
  20. /**
  21. * Returns true if text was inserted, otherwise false.
  22. */
  23. readonly attribute boolean isInserted;
  24. /**
  25. * The inserted or removed text
  26. */
  27. readonly attribute DOMString modifiedText;
  28. };