28 #include <nsIVariant.h>
29 #include "sbIDeviceEvent.h"
32 #include "sbIDeviceEventTarget.h"
36 #define SBDEVICEEVENT_IID \
37 {0xad7c89b5, 0x52f8, 0x487f, \
38 { 0x90, 0xf7, 0x2f, 0x79, 0xab, 0x8a, 0x84, 0x6b } }
44 NS_DECL_SBIDEVICEEVENT
49 PRUint32 aDeviceState,
50 PRUint32 aDeviceSubState);
69 PRUint32 aDeviceState,
70 PRUint32 aDeviceSubState,
84 #define NS_FORWARD_SAFE_SBDEVICEEVENT(_to) \
85 void Dispatch() { NS_ASSERTION(_to, "_to is null"); if (_to) _to->Dispatch(); } \
86 PRBool WasDispatched() { NS_ASSERTION(_to, "_to is null"); return !_to ? PR_FALSE : _to->WasDispatched(); } \
87 nsresult SetTarget(sbIDeviceEventTarget* aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); }
nsCOMPtr< sbIDeviceEventTarget > mTarget
static sbDeviceEvent * CreateEvent()
#define SBDEVICEEVENT_IID
virtual PRBool WasDispatched()
NS_DECL_ISUPPORTS NS_DECL_SBIDEVICEEVENT nsresult InitEvent(PRUint32 aType, nsIVariant *aData, nsISupports *aOrigin, PRUint32 aDeviceState, PRUint32 aDeviceSubState)
virtual nsresult SetTarget(sbIDeviceEventTarget *aTarget)
nsCOMPtr< nsISupports > mOrigin
nsCOMPtr< nsIVariant > mData
_updateTextAndScrollDataForFrame aData