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 file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
6
7/**
8 * The NotifyPaintEvent interface is used for the MozDOMAfterPaint
9 * event, which fires at a window when painting has happened in
10 * that window.
11 */
12[ChromeOnly]
13interface NotifyPaintEvent : Event
14{
15  /**
16   * Get a list of rectangles which are affected. The rectangles are
17   * in CSS pixels relative to the viewport origin.
18   */
19  [ChromeOnly, NeedsCallerType]
20  readonly attribute DOMRectList clientRects;
21
22  /**
23   * Get the bounding box of the rectangles which are affected. The rectangle
24   * is in CSS pixels relative to the viewport origin.
25   */
26  [ChromeOnly, NeedsCallerType]
27  readonly attribute DOMRect boundingClientRect;
28
29  [ChromeOnly, NeedsCallerType]
30  readonly attribute PaintRequestList paintRequests;
31
32  [ChromeOnly, NeedsCallerType]
33  readonly attribute unsigned long long transactionId;
34
35  [ChromeOnly, NeedsCallerType]
36  readonly attribute DOMHighResTimeStamp paintTimeStamp;
37};
38