nsSystemTrayService Class Reference

#include <nsSystemTrayService.h>

Inheritance diagram for nsSystemTrayService:
[legend]
Collaboration diagram for nsSystemTrayService:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSISYSTEMTRAYSERVICE 
nsSystemTrayService ()
 
NS_DECL_ISUPPORTS
NS_DECL_NSISYSTEMTRAYSERVICE 
nsSystemTrayService ()
 
NS_DECL_ISUPPORTS
NS_DECL_NSISYSTEMTRAYSERVICE
NS_DECL_IMGICONTAINEROBSERVER
NS_DECL_IMGIDECODEROBSERVER
NS_DECL_IMGILOAD 
nsSystemTrayService ()
 
nsresult Init ()
 
- Public Member Functions inherited from nsISystemTrayService
void showIcon (in AString iconId, in nsIURI imageURI, in nsIDOMWindow window)
 
void hideIcon (in AString iconId)
 
void setTitle (in AString iconId, in AString title)
 

Protected Member Functions

nsresult AddTrayIcon (HWND hwnd, nsIURI *iconURI, const nsAString &iconId, nsIDOMElement *targetElement)
 
nsresult GetIconForWnd (HWND hwnd, HICON &result)
 
nsresult GetIconForURI (nsIURI *iconURI, HICON &result)
 
nsresult CreateListenerWindow (HWND *listenerWindow, nsIDOMElement *targetElement)
 
nsresult GetDOMWindow (nsIXULWindow *xulWindow, nsIDOMWindow **_retval)
 

Static Protected Member Functions

static nsresult CreateEvent (nsIDOMDocumentEvent *documentEvent, const nsAString &typeArg, nsIDOMEvent **_retval)
 
static nsresult CreateMouseEvent (nsIDOMDocumentEvent *documentEvent, const nsAString &typeArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metkeyArg, PRUint16 buttonArg, nsIDOMEvent **_retval)
 
static LRESULT CALLBACK WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Protected Attributes

nsInterfaceHashtable
< nsStringHashKey,
nsSystemTrayIconGTK
mIconDataMap
 
nsDataHashtable
< nsStringHashKey,
NOTIFYICONDATAW > 
mIconDataMap
 
nsCOMPtr< imgIContainer > mImage
 

Static Protected Attributes

static ATOM s_wndClass = NULL
 
static const TCHAR * S_PROPINST
 
static const TCHAR * S_PROPPROC
 

Detailed Description

Definition at line 59 of file nsSystemTrayService.h.

Constructor & Destructor Documentation

nsSystemTrayService::nsSystemTrayService ( )

Definition at line 44 of file nsSystemTrayService.cpp.

NS_DECL_ISUPPORTS NS_DECL_NSISYSTEMTRAYSERVICE nsSystemTrayService::nsSystemTrayService ( )
NS_DECL_ISUPPORTS NS_DECL_NSISYSTEMTRAYSERVICE NS_DECL_IMGICONTAINEROBSERVER NS_DECL_IMGIDECODEROBSERVER NS_DECL_IMGILOAD nsSystemTrayService::nsSystemTrayService ( )

Member Function Documentation

nsresult nsSystemTrayService::AddTrayIcon ( HWND  hwnd,
nsIURI *  iconURI,
const nsAString &  iconId,
nsIDOMElement *  targetElement 
)
protected

Definition at line 196 of file nsSystemTrayServiceWin.cpp.

Here is the call graph for this function:

nsresult nsSystemTrayService::CreateEvent ( nsIDOMDocumentEvent *  documentEvent,
const nsAString &  typeArg,
nsIDOMEvent **  _retval 
)
staticprotected

Definition at line 636 of file nsSystemTrayServiceWin.cpp.

Here is the caller graph for this function:

nsresult nsSystemTrayService::CreateListenerWindow ( HWND *  listenerWindow,
nsIDOMElement *  targetElement 
)
protected

Definition at line 354 of file nsSystemTrayServiceWin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsSystemTrayService::CreateMouseEvent ( nsIDOMDocumentEvent *  documentEvent,
const nsAString &  typeArg,
nsIDOMAbstractView *  viewArg,
PRInt32  detailArg,
PRInt32  screenXArg,
PRInt32  screenYArg,
PRInt32  clientXArg,
PRInt32  clientYArg,
PRBool  ctrlKeyArg,
PRBool  altKeyArg,
PRBool  shiftKeyArg,
PRBool  metkeyArg,
PRUint16  buttonArg,
nsIDOMEvent **  _retval 
)
staticprotected

Definition at line 655 of file nsSystemTrayServiceWin.cpp.

Here is the caller graph for this function:

nsresult nsSystemTrayService::GetDOMWindow ( nsIXULWindow *  xulWindow,
nsIDOMWindow **  _retval 
)
protected

Definition at line 683 of file nsSystemTrayServiceWin.cpp.

nsresult nsSystemTrayService::GetIconForURI ( nsIURI *  iconURI,
HICON result 
)
protected

Definition at line 262 of file nsSystemTrayServiceWin.cpp.

Here is the caller graph for this function:

nsresult nsSystemTrayService::GetIconForWnd ( HWND  hwnd,
HICON result 
)
protected

Definition at line 337 of file nsSystemTrayServiceWin.cpp.

Here is the caller graph for this function:

nsresult nsSystemTrayService::Init ( )

Here is the caller graph for this function:

LRESULT CALLBACK nsSystemTrayService::WindowProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 422 of file nsSystemTrayServiceWin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

nsInterfaceHashtable<nsStringHashKey, nsSystemTrayIconGTK> nsSystemTrayService::mIconDataMap
protected

Definition at line 63 of file nsSystemTrayServiceGTK.h.

nsDataHashtable<nsStringHashKey, NOTIFYICONDATAW> nsSystemTrayService::mIconDataMap
protected

Definition at line 129 of file nsSystemTrayServiceWin.h.

nsCOMPtr<imgIContainer> nsSystemTrayService::mImage
protected

Definition at line 130 of file nsSystemTrayServiceWin.h.

const TCHAR * nsSystemTrayService::S_PROPINST
staticprotected
Initial value:
=
TEXT("_SYSTEMTRAYSERVICE_INST")

Definition at line 133 of file nsSystemTrayServiceWin.h.

const TCHAR * nsSystemTrayService::S_PROPPROC
staticprotected
Initial value:
=
TEXT("_SYSTEMTRAYSERVICE_PROC")

Definition at line 134 of file nsSystemTrayServiceWin.h.

ATOM nsSystemTrayService::s_wndClass = NULL
staticprotected

Definition at line 128 of file nsSystemTrayServiceWin.h.


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