37 #include <nsStringGlue.h>
43 #include "IGlobalHotkeys.h"
47 #define HOTKEY_HANDLE int
50 #define HOTKEY_HANDLE int
54 #define SONGBIRD_GLOBALHOTKEYS_CONTRACTID "@songbirdnest.com/Songbird/GlobalHotkeys;1"
55 #define SONGBIRD_GLOBALHOTKEYS_CLASSNAME "Songbird Global Hotkeys Manager"
58 #define SONGBIRD_GLOBALHOTKEYS_CID { 0x284e14bf, 0x5ce4, 0x4434, { 0xa7, 0x33, 0x43, 0x79, 0xd2, 0x7d, 0x79, 0x9e } }
77 NS_DECL_SBIGLOBALHOTKEYS
80 LRESULT WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
86 static PRInt32 m_autoinc;
87 UINT makeWin32Mask(PRBool altKey, PRBool
ctrlKey, PRBool shiftKey, PRBool metaKey);
sbIGlobalHotkeyCallback * m_callback
void removeEntry(GlobalHotkeyEntry *entry)
static std::list< GlobalHotkeyEntry * > m_hotkeys
Global hotkey registration/unregistration interface This interface is used to register or unregister ...
Global hotkeys callback interface This interface is used by callback objects to receive a notificatio...
function handle(request, response)
int registerHotkey(PRInt32 keyCode, PRBool altKey, PRBool ctrlKey, PRBool shiftKey, PRBool metaKey)
return e ctrlKey(chr<' '||!chars||chars.indexOf(chr)>-1)
GlobalHotkeyEntry * findHotkeyById(const nsAString &keyid)
GlobalHotkeyEntry * findHotkeyByHandle(int handle)
void unregisterHotkey(int handle)
virtual ~CGlobalHotkeys()