|
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 |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #include "nsIDOMEvent.idl" |
|
7 |
|
8 interface nsIURI; |
|
9 |
|
10 /** |
|
11 * The nsIDOMPopupBlockedEvent interface is the datatype for events |
|
12 * posted when a popup window is blocked. |
|
13 */ |
|
14 |
|
15 [scriptable, builtinclass, uuid(f6e77f79-d178-419d-8177-dfae4392d318)] |
|
16 interface nsIDOMPopupBlockedEvent : nsIDOMEvent |
|
17 { |
|
18 /** |
|
19 * The window object that attempted to open the blocked popup |
|
20 * (i.e. the window object on which open() was called). |
|
21 */ |
|
22 readonly attribute nsIDOMWindow requestingWindow; |
|
23 |
|
24 |
|
25 /** |
|
26 * The URI of the window that was blocked. |
|
27 */ |
|
28 readonly attribute nsIURI popupWindowURI; |
|
29 |
|
30 /** |
|
31 * The window name passed to the window.open() call |
|
32 * (as the second argument) |
|
33 */ |
|
34 readonly attribute DOMString popupWindowName; |
|
35 |
|
36 /** |
|
37 * The string of features passed to the window.open() call |
|
38 * (as the third argument) |
|
39 */ |
|
40 readonly attribute DOMString popupWindowFeatures; |
|
41 |
|
42 void initPopupBlockedEvent(in DOMString typeArg, |
|
43 in boolean canBubbleArg, |
|
44 in boolean cancelableArg, |
|
45 in nsIDOMWindow requestingWindow, |
|
46 in nsIURI popupWindowURI, |
|
47 in DOMString popupWindowName, |
|
48 in DOMString popupWindowFeatures); |
|
49 }; |