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 "nsIDOMEvent.idl" michael@0: michael@0: interface nsIURI; michael@0: michael@0: /** michael@0: * The nsIDOMPopupBlockedEvent interface is the datatype for events michael@0: * posted when a popup window is blocked. michael@0: */ michael@0: michael@0: [scriptable, builtinclass, uuid(f6e77f79-d178-419d-8177-dfae4392d318)] michael@0: interface nsIDOMPopupBlockedEvent : nsIDOMEvent michael@0: { michael@0: /** michael@0: * The window object that attempted to open the blocked popup michael@0: * (i.e. the window object on which open() was called). michael@0: */ michael@0: readonly attribute nsIDOMWindow requestingWindow; michael@0: michael@0: michael@0: /** michael@0: * The URI of the window that was blocked. michael@0: */ michael@0: readonly attribute nsIURI popupWindowURI; michael@0: michael@0: /** michael@0: * The window name passed to the window.open() call michael@0: * (as the second argument) michael@0: */ michael@0: readonly attribute DOMString popupWindowName; michael@0: michael@0: /** michael@0: * The string of features passed to the window.open() call michael@0: * (as the third argument) michael@0: */ michael@0: readonly attribute DOMString popupWindowFeatures; michael@0: michael@0: void initPopupBlockedEvent(in DOMString typeArg, michael@0: in boolean canBubbleArg, michael@0: in boolean cancelableArg, michael@0: in nsIDOMWindow requestingWindow, michael@0: in nsIURI popupWindowURI, michael@0: in DOMString popupWindowName, michael@0: in DOMString popupWindowFeatures); michael@0: };