dom/interfaces/events/nsIDOMNotifyPaintEvent.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/events/nsIDOMNotifyPaintEvent.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIDOMEvent.idl"
    1.10 +
    1.11 +interface nsIDOMPaintRequestList;
    1.12 +
    1.13 +/**
    1.14 + * The nsIDOMNotifyPaintEvent interface is used for the MozDOMAfterPaint
    1.15 + * event, which fires at a window when painting has happened in
    1.16 + * that window.
    1.17 + */
    1.18 +[scriptable, builtinclass, uuid(ef68f0d5-5b55-4198-9e59-a5e2c57d3adc)]
    1.19 +interface nsIDOMNotifyPaintEvent : nsIDOMEvent
    1.20 +{
    1.21 +  /**
    1.22 +   * Get a list of rectangles which are affected. The rectangles are in CSS pixels
    1.23 +   * relative to the viewport origin.
    1.24 +   * If the caller is not trusted (e.g., regular Web content) then only painting
    1.25 +   * caused by the current document is reported; in particular, painting in subdocuments
    1.26 +   * is not reported.
    1.27 +   */
    1.28 +  readonly attribute nsIDOMClientRectList clientRects;
    1.29 +  /**
    1.30 +   * Get the bounding box of the rectangles which are affected. The rectangle
    1.31 +   * is in CSS pixels relative to the viewport origin.
    1.32 +   * If the caller is not trusted (e.g., regular Web content) then only painting
    1.33 +   * caused by the current document is reported; in particular, painting in subdocuments
    1.34 +   * is not reported.
    1.35 +   */
    1.36 +  readonly attribute nsIDOMClientRect boundingClientRect;
    1.37 +
    1.38 +  readonly attribute nsISupports /* PaintRequestList */ paintRequests;
    1.39 +};
    1.40 +

mercurial