nsIDOMNotifyPaintEvent.idl 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -*- Mode: IDL; 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 "nsIDOMClientRectList.idl"
  7. #include "nsIDOMClientRect.idl"
  8. interface nsIDOMPaintRequestList;
  9. /**
  10. * The nsIDOMNotifyPaintEvent interface is used for the MozDOMAfterPaint
  11. * event, which fires at a window when painting has happened in
  12. * that window.
  13. */
  14. [builtinclass, uuid(63f573a0-3e4e-474b-a0c2-bb4ca93febaa)]
  15. interface nsIDOMNotifyPaintEvent : nsISupports
  16. {
  17. /**
  18. * Get a list of rectangles which are affected. The rectangles are in CSS pixels
  19. * relative to the viewport origin.
  20. * If the caller is not trusted (e.g., regular Web content) then only painting
  21. * caused by the current document is reported; in particular, painting in subdocuments
  22. * is not reported.
  23. */
  24. readonly attribute nsIDOMClientRectList clientRects;
  25. /**
  26. * Get the bounding box of the rectangles which are affected. The rectangle
  27. * is in CSS pixels relative to the viewport origin.
  28. * If the caller is not trusted (e.g., regular Web content) then only painting
  29. * caused by the current document is reported; in particular, painting in subdocuments
  30. * is not reported.
  31. */
  32. readonly attribute nsIDOMClientRect boundingClientRect;
  33. readonly attribute nsISupports /* PaintRequestList */ paintRequests;
  34. readonly attribute unsigned long long transactionId;
  35. };