Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsPopupWindowManager Class Reference

#include <nsPopupWindowManager.h>

Inheritance diagram for nsPopupWindowManager:
Inheritance graph
[legend]
Collaboration diagram for nsPopupWindowManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPOPUPWINDOWMANAGER
NS_DECL_NSIOBSERVER 
nsPopupWindowManager ()
virtual ~nsPopupWindowManager ()
nsresult Init ()
PRUint32 testPermission (in nsIURI uri)
 Test whether a website has permission to show a popup window.
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Public Attributes

const PRUint32 ALLOW_POPUP = 1
 These values are returned by the testPermission method.
const PRUint32 DENY_POPUP = 2
const PRUint32 ALLOW_POPUP_WITH_PREJUDICE = 3

Private Attributes

PRUint32 mPolicy
nsCOMPtr< nsIPermissionManagermPermissionManager

Detailed Description

Definition at line 50 of file nsPopupWindowManager.h.


Constructor & Destructor Documentation

Definition at line 56 of file nsPopupWindowManager.cpp.

Definition at line 61 of file nsPopupWindowManager.cpp.

{
}

Member Function Documentation

void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

Parameters:
aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.

Test whether a website has permission to show a popup window.

Parameters:
uriis the URI to be tested
Returns:
one of the enumerated permission actions defined above

Member Data Documentation

These values are returned by the testPermission method.

Definition at line 53 of file nsIPopupWindowManager.idl.

Definition at line 55 of file nsIPopupWindowManager.idl.

Definition at line 54 of file nsIPopupWindowManager.idl.

Definition at line 65 of file nsPopupWindowManager.h.

Definition at line 64 of file nsPopupWindowManager.h.


The documentation for this class was generated from the following files: