dom/interfaces/events/nsIDOMPopupBlockedEvent.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/events/nsIDOMPopupBlockedEvent.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     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 nsIURI;
    1.12 +
    1.13 +/**
    1.14 + * The nsIDOMPopupBlockedEvent interface is the datatype for events
    1.15 + * posted when a popup window is blocked.
    1.16 + */
    1.17 +
    1.18 +[scriptable, builtinclass, uuid(f6e77f79-d178-419d-8177-dfae4392d318)]
    1.19 +interface nsIDOMPopupBlockedEvent : nsIDOMEvent
    1.20 +{
    1.21 +  /**
    1.22 +   * The window object that attempted to open the blocked popup
    1.23 +   * (i.e. the window object on which open() was called).
    1.24 +   */
    1.25 +  readonly attribute nsIDOMWindow requestingWindow;
    1.26 +
    1.27 +
    1.28 +  /**
    1.29 +   * The URI of the window that was blocked.
    1.30 +   */
    1.31 +  readonly attribute nsIURI popupWindowURI;
    1.32 +
    1.33 +  /**
    1.34 +   * The window name passed to the window.open() call
    1.35 +   * (as the second argument)
    1.36 +   */
    1.37 +  readonly attribute DOMString popupWindowName;
    1.38 +
    1.39 +  /**
    1.40 +   * The string of features passed to the window.open() call
    1.41 +   * (as the third argument)
    1.42 +   */
    1.43 +  readonly attribute DOMString popupWindowFeatures;
    1.44 +
    1.45 +  void initPopupBlockedEvent(in DOMString typeArg,
    1.46 +                             in boolean canBubbleArg,
    1.47 +                             in boolean cancelableArg,
    1.48 +                             in nsIDOMWindow requestingWindow,
    1.49 +                             in nsIURI popupWindowURI,
    1.50 +                             in DOMString popupWindowName,
    1.51 +                             in DOMString popupWindowFeatures);
    1.52 +};

mercurial