michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: interface nsIDOMClientRect; michael@0: michael@0: /** michael@0: * These objects are exposed by the MozDOMAfterPaint event. Each one represents michael@0: * a request to repaint a rectangle that was generated by the browser. michael@0: */ michael@0: [scriptable, uuid(9eb5268f-73a4-41da-9790-d21fcefd5ffa)] michael@0: interface nsIDOMPaintRequest : nsISupports michael@0: { michael@0: /** michael@0: * The client rect where invalidation was triggered. michael@0: */ michael@0: readonly attribute nsIDOMClientRect clientRect; michael@0: /** michael@0: * The reason for the request, as a string. If an empty string, then we don't know michael@0: * the reason (this is common). Reasons include "scroll repaint", meaning that we michael@0: * needed to repaint the rectangle due to scrolling, and "scroll copy", meaning michael@0: * that we updated the rectangle due to scrolling but instead of painting michael@0: * manually, we were able to do a copy from another area of the screen. michael@0: */ michael@0: [binaryname(XPCOMReason)] michael@0: readonly attribute DOMString reason; michael@0: };