michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: ft=cpp tw=78 sw=2 et ts=2 sts=2 cin 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 "nsISupports.idl" michael@0: michael@0: interface nsIDOMWindow; michael@0: interface nsIDOMElement; michael@0: michael@0: /** michael@0: * An nsILoadContext represents the context of a load. This interface michael@0: * can be queried for various information about where the load is michael@0: * happening. michael@0: */ michael@0: [scriptable, uuid(852ed1f0-8ec0-11e3-baa8-0800200c9a66)] michael@0: interface nsILoadContext : nsISupports michael@0: { michael@0: /** michael@0: * associatedWindow is the window with which the load is associated, if any. michael@0: * Note that the load may be triggered by a document which is different from michael@0: * the document in associatedWindow, and in fact the source of the load need michael@0: * not be same-origin with the document in associatedWindow. This attribute michael@0: * may be null if there is no associated window. michael@0: */ michael@0: readonly attribute nsIDOMWindow associatedWindow; michael@0: michael@0: /** michael@0: * topWindow is the top window which is of same type as associatedWindow. michael@0: * This is equivalent to associatedWindow.top, but is provided here as a michael@0: * convenience. All the same caveats as associatedWindow of apply, of michael@0: * course. This attribute may be null if there is no associated window. michael@0: */ michael@0: readonly attribute nsIDOMWindow topWindow; michael@0: michael@0: /** michael@0: * topFrameElement is the