Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsWindow Class Reference

#include <nsWindow.h>

Inheritance diagram for nsWindow:

nsBaseWidget nsSwitchToUIThread nsSwitchToUIThread nsBaseWidget nsWidget nsIKBStateControl nsBaseWidget nsSwitchToUIThread

List of all members.


Detailed Description

Native BeOS window wrapper.

Native Photon window wrapper.

Native WIN32 window wrapper.

Definition at line 82 of file nsWindow.h.


Public Types

enum  { IME_STATUS_DISABLED = 0, IME_STATUS_ENABLED = 1, IME_STATUS_PASSWORD = 2 }
enum  { IME_STATUS_DISABLED = 0, IME_STATUS_ENABLED = 1, IME_STATUS_PASSWORD = 2 }
enum  {
  CREATE = 0x0101, CREATE_NATIVE, DESTROY, SET_FOCUS,
  GOT_FOCUS, KILL_FOCUS, ONMOUSE, ONDROP,
  ONWHEEL, ONPAINT, ONRESIZE, CLOSEWINDOW,
  ONKEY, BTNCLICK, ONACTIVATE, ONMOVE,
  ONWORKSPACE
}
enum  Modifiers {
  CAPS_LOCK = 0x01, NUM_LOCK = 0x02, SHIFT_L = 0x0100, SHIFT_R = 0x0200,
  CTRL_L = 0x0400, CTRL_R = 0x0800, ALT_L = 0x1000, ALT_R = 0x2000,
  COMMAND = 0x4000, HELP = 0x8000, FUNCTION = 0x10000, NUMERIC_KEY_PAD = 0x01000000
}
enum  Modifiers {
  CAPS_LOCK = 0x01, NUM_LOCK = 0x02, SHIFT_L = 0x0100, SHIFT_R = 0x0200,
  CTRL_L = 0x0400, CTRL_R = 0x0800, ALT_L = 0x1000, ALT_R = 0x2000,
  COMMAND = 0x4000, HELP = 0x8000, FUNCTION = 0x10000, NUMERIC_KEY_PAD = 0x01000000
}
enum  Modifiers {
  CAPS_LOCK = 0x01, NUM_LOCK = 0x02, SHIFT_L = 0x0100, SHIFT_R = 0x0200,
  CTRL_L = 0x0400, CTRL_R = 0x0800, ALT_L = 0x1000, ALT_R = 0x2000,
  COMMAND = 0x4000, HELP = 0x8000, FUNCTION = 0x10000, NUMERIC_KEY_PAD = 0x01000000
}
enum  PluginType { PluginType_NONE = 0, PluginType_XEMBED, PluginType_NONXEMBED }

Public Member Functions

virtual void AddChild (nsIWidget *aChild)
NS_IMETHOD AddEventListener (nsIEventListener *aListener)
NS_IMETHOD AddEventListener (nsIEventListener *aListener)
NS_IMETHOD AddEventListener (nsIEventListener *aListener)
NS_IMETHOD AddMouseListener (nsIMouseListener *aListener)
NS_IMETHOD AddMouseListener (nsIMouseListener *aListener)
NS_IMETHOD AddMouseListener (nsIMouseListener *aListener)
void ApplyTransparencyBitmap ()
PRBool AreBoundsSane (void)
virtual PRBool AutoErase ()
NS_IMETHOD BeginResizeDrag (nsGUIEvent *aEvent, PRInt32 aHorizontal, PRInt32 aVertical)
NS_IMETHOD BeginResizingChildren (void)
NS_IMETHOD BeginResizingChildren ()
NS_IMETHOD BeginResizingChildren (void)
NS_IMETHOD BeginResizingChildren (void)
NS_IMETHOD BeginSecureKeyboardInput ()
NS_IMETHOD BeginSecureKeyboardInput ()
NS_IMETHOD BeginSecureKeyboardInput ()
PRBool BlurEventsSuppressed ()
virtual BOOL CallMethod (MethodInfo *info)
virtual BOOL CallMethod (MethodInfo *info)
virtual bool CallMethod (MethodInfo *info)
NS_IMETHOD CancelIMEComposition ()
NS_IMETHOD CaptureMouse (PRBool aCapture)
NS_IMETHOD CaptureMouse (PRBool aCapture)
NS_IMETHOD CaptureMouse (PRBool aCapture)
NS_IMETHOD CaptureMouse (PRBool aCapture)
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)
void CommonCreate (nsIWidget *aParent, PRBool aListenForResizes)
NS_IMETHOD ConstrainPosition (PRBool aAllowSlop, PRInt32 *aX, PRInt32 *aY)
NS_IMETHOD ConstrainPosition (PRBool aAllowSlop, PRInt32 *aX, PRInt32 *aY)
NS_IMETHOD ConstrainPosition (PRBool aAllowSlop, PRInt32 *aX, PRInt32 *aY)
NS_IMETHOD ConstrainPosition (PRBool aAllowSlop, PRInt32 *aX, PRInt32 *aY)
gint ConvertBorderStyles (nsBorderStyle aStyle)
virtual void ConvertToDeviceCoordinates (nscoord &aX, nscoord &aY)
virtual void ConvertToDeviceCoordinates (nscoord &aX, nscoord &aY)
virtual void ConvertToDeviceCoordinates (nscoord &aX, nscoord &aY)
NS_IMETHOD Create (nsNativeWidget aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
Create (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_IMETHOD Create (nsNativeWidget aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_IMETHOD Create (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_IMETHOD Create (nsNativeWidget aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData)
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
Create (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData)
NS_IMETHOD Create (nsNativeWidget aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_IMETHOD Create (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)
NS_IMETHOD Destroy ()
NS_IMETHOD Destroy ()
NS_IMETHOD Destroy (void)
NS_IMETHOD Destroy ()
void DispatchActivateEvent (void)
void DispatchDeactivateEvent (void)
NS_IMETHOD DispatchEvent (nsGUIEvent *event, nsEventStatus &aStatus)
NS_IMETHOD DispatchEvent (struct nsGUIEvent *event, nsEventStatus &aStatus)
NS_IMETHOD DispatchEvent (nsGUIEvent *event, nsEventStatus &aStatus)
void DispatchGotFocusEvent (void)
void DispatchLostFocusEvent (void)
PRBool DispatchMouseEvent (nsMouseEvent &aEvent)
virtual PRBool DispatchMouseEvent (PRUint32 aEventType, WPARAM wParam, LPARAM lParam, PRBool aIsContextMenuKey=PR_FALSE, PRInt16 aButton=nsMouseEvent::eLeftButton)
virtual PRBool DispatchMouseEvent (PRUint32 aEventType, nsPoint aPoint, PRUint32 clicks, PRUint32 mod, PRUint16 aButton=nsMouseEvent::eLeftButton)
void DispatchResizeEvent (nsRect &aRect, nsEventStatus &aStatus)
NS_IMETHOD Enable (PRBool aState)
NS_IMETHOD Enable (PRBool aState)
NS_IMETHOD Enable (PRBool aState)
NS_IMETHOD Enable (PRBool aState)
NS_IMETHOD EnableDragDrop (PRBool aEnable)
NS_IMETHOD EnableDragDrop (PRBool aEnable)
NS_IMETHOD EndResizingChildren (void)
NS_IMETHOD EndResizingChildren ()
NS_IMETHOD EndResizingChildren (void)
NS_IMETHOD EndResizingChildren (void)
NS_IMETHOD EndSecureKeyboardInput ()
NS_IMETHOD EndSecureKeyboardInput ()
NS_IMETHOD EndSecureKeyboardInput ()
void EnsureGrabs (void)
virtual void FreeNativeData (void *data, PRUint32 aDataType)
virtual void FreeNativeData (void *aDatum, PRUint32 aDataType)
NS_IMETHOD GetAttention (PRInt32 aCycleCount)
NS_IMETHOD GetAttention (PRInt32 aCycleCount)
NS_IMETHOD GetAttention (PRInt32 aCycleCount)
virtual nscolor GetBackgroundColor (void)
NS_IMETHOD GetBorderSize (PRInt32 &aWidth, PRInt32 &aHeight)
NS_IMETHOD GetBorderSize (PRInt32 &aWidth, PRInt32 &aHeight)
NS_IMETHOD GetBorderSize (PRInt32 &aWidth, PRInt32 &aHeight)
NS_IMETHOD GetBounds (nsRect &aRect)
NS_IMETHOD GetBounds (nsRect &aRect)
NS_IMETHOD GetClientBounds (nsRect &aRect)
NS_IMETHOD GetClientBounds (nsRect &aRect)
NS_IMETHOD GetClientBounds (nsRect &aRect)
NS_IMETHOD GetClientData (void *&aClientData)
NS_IMETHOD GetClientData (void *&aClientData)
NS_IMETHOD GetClientData (void *&aClientData)
void GetCompositionWindowPos (HIMC hIMC, PRUint32 aEventType, COMPOSITIONFORM *cpForm)
virtual nsCursor GetCursor ()
virtual nsIDeviceContext * GetDeviceContext ()
nsIWidgetGetFirstChild () const
nsIWidgetGetFirstChild () const
nsIWidgetGetFirstChild () const
nsIFontMetricsGetFont (void)
virtual nscolor GetForegroundColor (void)
NS_IMETHOD GetHasTransparentBackground (PRBool &aTransparent)
NS_IMETHOD GetIMEEnabled (PRUint32 *aState)
NS_IMETHOD GetIMEOpenState (PRBool *aState)
nsIWidgetGetLastChild () const
nsIWidgetGetLastChild () const
nsIWidgetGetLastChild () const
NS_IMETHOD GetLastInputEventTime (PRUint32 &aTime)
NS_IMETHOD GetLastInputEventTime (PRUint32 &aTime)
nsPoint * GetLastPoint ()
virtual HWND GetMainWindow () const
virtual void * GetNativeData (PRUint32 aDataType)
virtual void * GetNativeData (PRUint32 aDataType)
virtual void * GetNativeData (PRUint32 aDataType)
virtual void * GetNativeData (PRUint32 aDataType)
virtual void * GetNativeData (PRUint32 aDataType)
PRInt32 GetNewCmdMenuId ()
ULONG GetNextID ()
nsIWidgetGetNextSibling () const
nsIWidgetGetNextSibling () const
nsIWidgetGetNextSibling () const
virtual nsIWidgetGetParent (void)
virtual nsIWidgetGetParent ()
virtual nsIWidgetGetParent (void)
NS_IMETHOD GetPreferredSize (PRInt32 &aWidth, PRInt32 &aHeight)
NS_IMETHOD GetPreferredSize (PRInt32 &aWidth, PRInt32 &aHeight)
NS_IMETHOD GetPreferredSize (PRInt32 &aWidth, PRInt32 &aHeight)
nsIWidgetGetPrevSibling () const
nsIWidgetGetPrevSibling () const
nsIWidgetGetPrevSibling () const
WNDPROC GetPrevWindowProc ()
nsIRegion * GetRegion ()
virtual nsIRenderingContext * GetRenderingContext ()
NS_IMETHOD GetScreenBounds (nsRect &aRect)
NS_IMETHOD GetScreenBounds (nsRect &aRect)
NS_IMETHOD GetScreenBounds (nsRect &aRect)
virtual nsIWidgetGetSheetWindowParent (void)
NS_IMETHOD GetSizeMode (PRInt32 *aMode)
NS_IMETHOD GetSizeMode (PRInt32 *aMode)
NS_IMETHOD GetSizeMode (PRInt32 *aMode)
gfxASurfaceGetThebesSurface ()
gfxASurfaceGetThebesSurface ()
gfxASurfaceGetThebesSurface ()
gfxASurfaceGetThebesSurface ()
NS_IMETHOD GetToggledKeyState (PRUint32 aKeyCode, PRBool *aLEDState)
nsToolkitGetToolkit ()
nsWindowGetTopLevelWindow ()
nsIWeakReference GetWeakReference ()
HWND GetWindowHandle ()
NS_IMETHOD GetWindowType (nsWindowType &aWindowType)
NS_IMETHOD GetWindowType (nsWindowType &aWindowType)
NS_IMETHOD GetWindowType (nsWindowType &aWindowType)
NS_IMETHOD GetZIndex (PRInt32 *aZIndex)
NS_IMETHOD GetZIndex (PRInt32 *aZIndex)
NS_IMETHOD GetZIndex (PRInt32 *aZIndex)
void GrabKeyboard (void)
void GrabPointer (void)
PRBool HandleMouseActionOfIME (PRInt32 aAction, POINT *ptPos)
NS_IMETHOD HideWindowChrome (PRBool aShouldHide)
NS_IMETHOD HideWindowChrome (PRBool aShouldHide)
NS_IMETHOD HideWindowChrome (PRBool aShouldHide)
NS_IMETHOD HideWindowChrome (PRBool aShouldHide)
PRBool IMECompositionHitTest (POINT *ptPos)
PRBool IMEMouseHandling (PRInt32 aAction, LPARAM lParam)
void InitEvent (nsGUIEvent &event, PRUint32 aEventType, nsPoint *aPoint=nsnull)
void InitEvent (nsGUIEvent &event, nsPoint *aPoint=nsnull)
void InitEvent (nsGUIEvent &event, nsPoint *aPoint=nsnull)
void InitKeyEvent (nsKeyEvent &aEvent, GdkEventKey *aGdkEvent)
NS_IMETHOD Invalidate (const nsRect &aRect, PRBool aIsSynchronous)
NS_IMETHOD Invalidate (PRBool aIsSynchronous)
NS_IMETHOD Invalidate (const nsRect &aRect, PRBool aIsSynchronous)
NS_IMETHOD Invalidate (PRBool aIsSynchronous)
NS_IMETHOD Invalidate (const nsRect &aRect, PRBool aIsSynchronous)
NS_IMETHOD Invalidate (PRBool aIsSynchronous)
NS_IMETHOD Invalidate (const nsRect &aRect, PRBool aIsSynchronous)
NS_IMETHOD Invalidate (PRBool aIsSynchronous)
NS_IMETHOD InvalidateRegion (const nsIRegion *aRegion, PRBool aIsSynchronous)
NS_IMETHOD InvalidateRegion (const nsIRegion *aRegion, PRBool aIsSynchronous)
NS_IMETHOD InvalidateRegion (const nsIRegion *aRegion, PRBool aIsSynchronous)
NS_IMETHOD InvalidateRegion (const nsIRegion *aRegion, PRBool aIsSynchronous)
virtual PRBool IsChild () const
NS_IMETHOD IsEnabled (PRBool *aState)
NS_IMETHOD IsEnabled (PRBool *aState)
NS_IMETHOD IsEnabled (PRBool *aState)
NS_IMETHOD IsVisible (PRBool &aState)
NS_IMETHOD IsVisible (PRBool &aState)
NS_IMETHOD IsVisible (PRBool &aState)
NS_IMETHOD IsVisible (PRBool &aState)
void LoseFocus ()
void LoseNonXEmbedPluginFocus (void)
NS_IMETHOD MakeFullScreen (PRBool aFullScreen)
NS_IMETHOD MakeFullScreen (PRBool aFullScreen)
NS_IMETHOD ModalEventFilter (PRBool aRealEvent, void *aEvent, PRBool *aForWindow)
NS_IMETHOD ModalEventFilter (PRBool aRealEvent, void *aEvent, PRBool *aForWindow)
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)
nsresult NativeCreate (nsIWidget *aParent, nsNativeWidget aNativeParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData)
void NativeResize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
void NativeResize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
void NativeShow (PRBool aAction)
void NS2PM (RECTL &rcl)
void NS2PM (POINTL &ptl)
void NS2PM_PARENT (POINTL &ptl)
 NS_IMETHOD_ (nsrefcnt) Release(void)
 NS_IMETHOD_ (nsrefcnt) AddRef(void)
void OnButtonPressEvent (GtkWidget *aWidget, GdkEventButton *aEvent)
void OnButtonReleaseEvent (GtkWidget *aWidget, GdkEventButton *aEvent)
gboolean OnConfigureEvent (GtkWidget *aWidget, GdkEventConfigure *aEvent)
void OnContainerFocusInEvent (GtkWidget *aWidget, GdkEventFocus *aEvent)
void OnContainerFocusOutEvent (GtkWidget *aWidget, GdkEventFocus *aEvent)
void OnDeleteEvent (GtkWidget *aWidget, GdkEventAny *aEvent)
void OnDragDataReceivedEvent (GtkWidget *aWidget, GdkDragContext *aDragContext, gint aX, gint aY, GtkSelectionData *aSelectionData, guint aInfo, guint aTime, gpointer aData)
gboolean OnDragDropEvent (GtkWidget *aWidget, GdkDragContext *aDragContext, gint aX, gint aY, guint aTime, gpointer *aData)
void OnDragEnter (nscoord aX, nscoord aY)
void OnDragLeave (void)
void OnDragLeaveEvent (GtkWidget *aWidget, GdkDragContext *aDragContext, guint aTime, gpointer aData)
gboolean OnDragMotionEvent (GtkWidget *aWidget, GdkDragContext *aDragContext, gint aX, gint aY, guint aTime, void *aData)
void OnEnterNotifyEvent (GtkWidget *aWidget, GdkEventCrossing *aEvent)
gboolean OnExposeEvent (GtkWidget *aWidget, GdkEventExpose *aEvent)
PRBool OnKey (nsKeyEvent &aEvent)
gboolean OnKeyPressEvent (GtkWidget *aWidget, GdkEventKey *aEvent)
gboolean OnKeyReleaseEvent (GtkWidget *aWidget, GdkEventKey *aEvent)
void OnLeaveNotifyEvent (GtkWidget *aWidget, GdkEventCrossing *aEvent)
void OnMotionNotifyEvent (GtkWidget *aWidget, GdkEventMotion *aEvent)
PRBool OnResize (nsSizeEvent event)
void OnScrollEvent (GtkWidget *aWidget, GdkEventScroll *aEvent)
void OnSizeAllocate (GtkWidget *aWidget, GtkAllocation *aAllocation)
void OnVisibilityNotifyEvent (GtkWidget *aWidget, GdkEventVisibility *aEvent)
void OnWindowStateEvent (GtkWidget *aWidget, GdkEventWindowState *aEvent)
NS_IMETHOD PlaceBehind (nsTopLevelWidgetZPlacement aPlacement, nsIWidget *aWidget, PRBool aActivate)
NS_IMETHOD PlaceBehind (nsTopLevelWidgetZPlacement aPlacement, nsIWidget *aWidget, PRBool aActivate)
NS_IMETHOD PlaceBehind (nsTopLevelWidgetZPlacement aPlacement, nsIWidget *aWidget, PRBool aActivate)
NS_IMETHOD PreCreateWidget (nsWidgetInitData *aWidgetInitData)
NS_IMETHOD PreCreateWidget (nsWidgetInitData *aWidgetInitData)
NS_IMETHOD PreCreateWidget (nsWidgetInitData *aWidgetInitData)
void ReleaseGrabs (void)
virtual void RemoveChild (nsIWidget *aChild)
NS_IMETHOD ResetInputState ()
NS_IMETHOD Resize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
NS_IMETHOD Resize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
void ResizeTransparencyBitmap (PRInt32 aNewWidth, PRInt32 aNewHeight)
NS_IMETHOD ScreenToWidget (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD ScreenToWidget (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD ScreenToWidget (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD ScreenToWidget (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
NS_IMETHOD ScrollRect (nsRect &aRect, PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollRect (nsRect &aSrcRect, PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollRect (nsRect &aRect, PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollRect (nsRect &aSrcRect, PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollWidgets (PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollWidgets (PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollWidgets (PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD ScrollWidgets (PRInt32 aDx, PRInt32 aDy)
NS_IMETHOD SetBackgroundColor (const nscolor &aColor)
NS_IMETHOD SetBackgroundColor (const nscolor &aColor)
NS_IMETHOD SetBackgroundColor (const nscolor &aColor)
NS_IMETHOD SetBorderStyle (nsBorderStyle aBorderStyle)
NS_IMETHOD SetBounds (const nsRect &aRect)
NS_IMETHOD SetBounds (const nsRect &aRect)
NS_IMETHOD SetBounds (const nsRect &aRect)
NS_IMETHOD SetClientData (void *aClientData)
NS_IMETHOD SetClientData (void *aClientData)
NS_IMETHOD SetClientData (void *aClientData)
NS_IMETHOD SetColorMap (nsColorMap *aColorMap)
NS_IMETHOD SetColorMap (nsColorMap *aColorMap)
NS_IMETHOD SetColorMap (nsColorMap *aColorMap)
NS_IMETHOD SetColorMap (nsColorMap *aColorMap)
NS_IMETHOD SetCursor (imgIContainer *aCursor, PRUint32 aHotspotX, PRUint32 aHotspotY)
NS_IMETHOD SetCursor (nsCursor aCursor)
NS_IMETHOD SetCursor (imgIContainer *aCursor, PRUint32 aHotspotX, PRUint32 aHotspotY)
NS_IMETHOD SetCursor (nsCursor aCursor)
NS_IMETHOD SetCursor (imgIContainer *aCursor, PRUint32 aHotspotX, PRUint32 aHotspotY)
NS_IMETHOD SetCursor (nsCursor aCursor)
NS_IMETHOD SetCursor (nsCursor aCursor)
NS_IMETHOD SetFocus (PRBool aRaise)
NS_IMETHOD SetFocus (PRBool aRaise)
NS_IMETHOD SetFocus (PRBool aRaise)
NS_IMETHOD SetFocus (PRBool aRaise=PR_FALSE)
NS_IMETHOD SetFocus (PRBool aRaise)
NS_IMETHOD SetFont (const nsFont &aFont)
NS_IMETHOD SetForegroundColor (const nscolor &aColor)
NS_IMETHOD SetHasTransparentBackground (PRBool aTransparent)
NS_IMETHOD SetIcon (const nsAString &aIconSpec)
NS_IMETHOD SetIcon (const nsAString &aIconSpec)
NS_IMETHOD SetIcon (const nsAString &aIconSpec)
NS_IMETHOD SetIMEEnabled (PRUint32 aState)
NS_IMETHOD SetIMEOpenState (PRBool aState)
NS_IMETHOD SetMenuBar (nsIMenuBar *aMenuBar)
NS_IMETHOD SetMenuBar (nsIMenuBar *aMenuBar)
NS_IMETHOD SetMenuBar (nsIMenuBar *aMenuBar)
NS_IMETHOD SetMenuBar (nsIMenuBar *aMenuBar)
NS_IMETHOD SetModal (PRBool aModal)
NS_IMETHOD SetModal (PRBool aModal)
NS_IMETHOD SetModal (PRBool aModal)
void SetNextSibling (nsIWidget *aSibling)
void SetNextSibling (nsIWidget *aSibling)
void SetNextSibling (nsIWidget *aSibling)
void SetNonXEmbedPluginFocus (void)
NS_IMETHOD SetParent (nsIWidget *aNewParent)
NS_IMETHOD SetParent (nsIWidget *aNewParent)
void SetPluginType (PluginType aPluginType)
NS_IMETHOD SetPreferredSize (PRInt32 aWidth, PRInt32 aHeight)
NS_IMETHOD SetPreferredSize (PRInt32 aWidth, PRInt32 aHeight)
NS_IMETHOD SetPreferredSize (PRInt32 aWidth, PRInt32 aHeight)
void SetPrevSibling (nsIWidget *aSibling)
void SetPrevSibling (nsIWidget *aSibling)
void SetPrevSibling (nsIWidget *aSibling)
NS_IMETHOD SetSizeMode (PRInt32 aMode)
NS_IMETHOD SetSizeMode (PRInt32 aMode)
NS_IMETHOD SetSizeMode (PRInt32 aMode)
NS_IMETHOD SetTitle (const nsAString &aTitle)
NS_IMETHOD SetTitle (const nsAString &aTitle)
NS_IMETHOD SetTitle (const nsAString &aTitle)
NS_IMETHOD SetTitle (const nsAString &aTitle)
NS_IMETHOD SetTitle (const nsAString &aTitle)
virtual void SetUpForPaint (HDC aHDC)
NS_IMETHOD SetWindowClass (const nsAString &xulWinType)
NS_IMETHOD SetWindowTitlebarColor (nscolor aColor, PRBool aActive)
NS_IMETHOD SetWindowTitlebarColor (nscolor aColor, PRBool aActive)
NS_IMETHOD SetWindowTitlebarColor (nscolor aColor, PRBool aActive)
NS_IMETHOD SetWindowType (nsWindowType aWindowType)
NS_IMETHOD SetWindowType (nsWindowType aWindowType)
NS_IMETHOD SetWindowType (nsWindowType aWindowType)
NS_IMETHOD SetZIndex (PRInt32 aZIndex)
NS_IMETHOD SetZIndex (PRInt32 aZIndex)
NS_IMETHOD Show (PRBool bState)
NS_IMETHOD Show (PRBool bState)
NS_IMETHOD Show (PRBool bState)
NS_IMETHOD ShowMenuBar (PRBool aShow)
NS_IMETHOD ShowMenuBar (PRBool aShow)
NS_IMETHOD ShowMenuBar (PRBool aShow)
NS_IMETHOD ShowMenuBar (PRBool aShow)
virtual nsresult StandardWindowCreate (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData, nsNativeWidget aNativeParent=nsnull)
virtual nsresult StandardWindowCreate (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData, nsNativeWidget aNativeParent=nsnull)
void SuppressBlurEvents (PRBool aSuppress)
void ThemeChanged (void)
NS_IMETHOD Update ()
NS_IMETHOD Update ()
NS_IMETHOD Update ()
NS_IMETHOD Update ()
nsresult UpdateTranslucentWindowAlphaInternal (const nsRect &aRect, PRUint8 *aAlphas, PRInt32 aStride)
NS_IMETHOD Validate ()
NS_IMETHOD Validate ()
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)
Methods
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static nsWidgetGetInstance (PtWidget_t *pWidget)
static HWND GetTopLevelHWND (HWND aWnd, PRBool aStopOnFirstTopLevel=PR_FALSE)
static void GlobalMsgWindowProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
static void RawDrawFunc (PtWidget_t *pWidget, PhTile_t *damage)
static void ReleaseGlobals ()
static void ReleaseGlobals ()
static void SetInstance (PtWidget_t *pWidget, nsWidget *inst)

Public Attributes

PRBool mIsToplevel
Window mOldFocusWindow

Static Public Attributes

static guint32 mLastButtonPressTime = 0
static guint32 mLastButtonReleaseTime = 0

Protected Types

enum  {
  CREATE = 0x0101, DESTROY, SET_FOCUS, UPDATE_WINDOW,
  SET_TITLE, GET_TITLE
}
enum  {
  CREATE = 0x0101, CREATE_NATIVE, DESTROY, SET_FOCUS,
  SET_CURSOR, CREATE_HACK
}
enum  {
  CREATE = 0x0101, CREATE_NATIVE, DESTROY, SET_FOCUS,
  SET_CURSOR, CREATE_HACK
}
enum  {
  CREATE = 0x0101, CREATE_NATIVE, DESTROY, SET_FOCUS,
  SET_CURSOR, CREATE_HACK
}
enum  {
  CREATE = 0x0101, CREATE_NATIVE, DESTROY, SET_FOCUS,
  SET_CURSOR, CREATE_HACK
}

Protected Member Functions

virtual void AddToStyle (ULONG style)
virtual void BaseCreate (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData)
PRBool CanTakeFocus ()
PRBool CheckDragStatus (PRUint32 aAction, HPS *oHps)
void ClearWeakReferences ()
void ConstrainZLevel (HWND *aAfter)
void ConstrainZLevel (HWND *aAfter)
PRBool ConvertStatus (nsEventStatus aStatus)
HBITMAP CreateBitmapRGB (PRUint8 *aImageData, PRUint32 aWidth, PRUint32 aHeight)
HBITMAP CreateTransparencyMask (PRInt32 format, PRUint8 *aImageData, PRUint32 aWidth, PRUint32 aHeight)
nsresult CreateWidget (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData, nsNativeWidget aNativeParent=nsnull)
HBITMAP DataToBitmap (PRUint8 *aImageData, PRUint32 aWidth, PRUint32 aHeight, PRUint32 aDepth)
void DeferPosition (HWND, HWND, long, long, long, long, ULONG)
PRBool DispatchCommandEvent (PRUint32 aEventCommand)
PRBool DispatchCommandEvent (PRUint32 aEventCommand)
PRBool DispatchDragDropEvent (PRUint32 aMsg)
virtual PRBool DispatchFocus (PRUint32 aEventType, PRBool isMozWindowTakingFocus)
virtual PRBool DispatchFocus (PRUint32 aEventType, PRBool isMozWindowTakingFocus)
PRBool DispatchFocus (PRUint32 aEventType)
PRBool DispatchKeyEvent (PhKeyEvent_t *aPhKeyEvent)
virtual PRBool DispatchKeyEvent (PRUint32 aEventType, WORD aCharCode, const nsTArray< nsAlternativeCharCode > *aAlternativeChars, UINT aVirtualCharCode, LPARAM aKeyCode, PRUint32 aFlags=0)
PRBool DispatchKeyEvent (PRUint32 aEventType, PRUint32 aCharCode, PRUint32 aKeyCode, PRUint32 aFlags=0)
virtual PRBool DispatchMouseEvent (PRUint32 aEventType, MPARAM mp1, MPARAM mp2, PRBool aIsContextMenuKey=PR_FALSE, PRInt16 aButton=nsMouseEvent::eLeftButton)
void DispatchPendingEvents ()
virtual PRBool DispatchResizeEvent (PRInt32 aClientX, PRInt32 aClientY)
PRBool DispatchStandardEvent (PRUint32 aMsg)
PRBool DispatchStandardEvent (PRUint32 aMsg)
PRBool DispatchStandardEvent (PRUint32 aMsg)
virtual PRBool DispatchWindowEvent (nsGUIEvent *event, nsEventStatus &aStatus)
virtual PRBool DispatchWindowEvent (nsGUIEvent *event)
virtual PRBool DispatchWindowEvent (nsGUIEvent *event, nsEventStatus &aStatus)
virtual PRBool DispatchWindowEvent (nsGUIEvent *event)
PRBool DispatchWindowEvent (nsGUIEvent *event)
void DoCreate (HWND hwndP, nsWindow *wndP, const nsRect &rect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsIToolkit *aToolkit, nsWidgetInitData *aInitData)
virtual PRInt32 GetClientHeight ()
void GetCompositionString (HIMC aHIMC, DWORD aIndex, nsString *aStrUnicode)
virtual ULONG GetFCFlags ()
virtual PRInt32 GetHeight (PRInt32 aProposedHeight)
HWND GetHWND () const
virtual nsIContentGetLastRollup ()
void GetNonClientBounds (nsRect &aRect)
void GetNonClientBounds (nsRect &aRect)
nsWindowGetParent (PRBool aStopOnFirstTopLevel)
HWND GetParentHWND () const
PFNWP GetPrevWP () const
virtual ULONG GetSWPFlags (ULONG flags)
void GetTextRangeList (PRUint32 *textRangeListLengthResult, nsTextRangeArray *textRangeListResult)
virtual nsresult GetWindowText (nsString &str, PRUint32 *rc)
void HandleEndComposition (void)
PRBool HandleEvent (PtWidget_t *, PtCallbackInfo_t *aCbInfo)
BOOL HandleStartComposition (HIMC hIMEContext)
void HandleTextEvent (HIMC hIMEContext, PRBool aCheckAttr=PR_TRUE)
PRBool HasWeakReferences () const
void HideKids (PRBool state)
void InitEvent (nsGUIEvent &event, nsPoint *pt=0)
void InitKeyEvent (PhKeyEvent_t *aPhKeyEvent, nsKeyEvent &anEvent)
void InitKeyPressEvent (PhKeyEvent_t *aPhKeyEvent, nsKeyEvent &anEvent)
void InitMouseEvent (PhPointerEvent_t *aPhButtonEvent, nsWidget *aWidget, nsMouseEvent &anEvent, PRUint32 aEventType, PRInt16 aButton)
LPARAM lParamToClient (LPARAM lParam)
LPARAM lParamToScreen (LPARAM lParam)
UINT MapFromNativeToDOM (UINT aNativeKeyCode)
BOOL NotifyForeignChildWindows (HWND aWnd)
PRUint32 nsConvertKey (PhKeyEvent_t *aPhKeyEvent)
BOOL OnChar (UINT charCode, UINT aScanCode, PRUint32 aFlags=0)
virtual PRBool OnControl (MPARAM mp1, MPARAM mp2)
virtual HBRUSH OnControlColor ()
virtual void OnDestroy ()
virtual void OnDestroy ()
void OnDestroy ()
virtual PRBool OnDragDropMsg (ULONG msg, MPARAM mp1, MPARAM mp2, MRESULT &mr)
virtual PRBool OnHScroll (MPARAM mp1, MPARAM mp2)
BOOL OnIMEChar (BYTE aByte1, BYTE aByte2, LPARAM aKeyState)
BOOL OnIMEComposition (LPARAM aGCS)
BOOL OnIMECompositionFull ()
BOOL OnIMEEndComposition ()
BOOL OnIMENotify (WPARAM aIMN, LPARAM aData, LRESULT *oResult)
BOOL OnIMEQueryCharPosition (LPARAM aData, LRESULT *oResult)
BOOL OnIMEReconvert (LPARAM aData, LRESULT *oResult)
BOOL OnIMERequest (WPARAM aIMR, LPARAM aData, LRESULT *oResult)
BOOL OnIMESelect (BOOL aSelected, WORD aLangID)
BOOL OnIMESetContext (BOOL aActive, LPARAM &aISC)
BOOL OnIMEStartComposition ()
BOOL OnInputLangChange (HKL aHKL, LRESULT *oResult)
virtual PRBool OnKey (MPARAM mp1, MPARAM mp2)
BOOL OnKeyDown (UINT aVirtualKeyCode, LPARAM aKeyCode, nsFakeCharMessage *aFakeCharMessage)
PRBool OnKeyDown (PRUint32 aEventType, const char *bytes, int32 numBytes, PRUint32 mod, PRUint32 bekeycode, int32 rawcode)
BOOL OnKeyUp (UINT aVirtualKeyCode, LPARAM aKeyCode)
PRBool OnKeyUp (PRUint32 aEventType, const char *bytes, int32 numBytes, PRUint32 mod, PRUint32 bekeycode, int32 rawcode)
virtual PRBool OnMove (PRInt32 aX, PRInt32 aY)
virtual PRBool OnMove (PRInt32 aX, PRInt32 aY)
PRBool OnMove (PRInt32 aX, PRInt32 aY)
virtual PRBool OnPaint (HDC aDC=nsnull)
virtual PRBool OnPaint ()
nsresult OnPaint (BRegion *breg)
virtual PRBool OnPresParamChanged (MPARAM mp1, MPARAM mp2)
virtual PRBool OnReposition (PSWP pNewSwp)
virtual PRBool OnResize (nsRect &aWindowRect)
virtual PRBool OnResize (PRInt32 aX, PRInt32 aY)
PRBool OnResize (nsRect &aWindowRect)
virtual PRBool OnScroll (UINT scrollCode, int cPos)
virtual PRBool OnScroll (ULONG msgid, MPARAM mp1, MPARAM mp2)
virtual PRBool OnVScroll (MPARAM mp1, MPARAM mp2)
void OnWheel (PRInt32 aDirection, uint32 aButtons, BPoint aPoint, nscoord aDelta)
virtual void PostCreateWidget ()
virtual PRBool ProcessMessage (UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *aRetValue)
virtual PRBool ProcessMessage (ULONG m, MPARAM p1, MPARAM p2, MRESULT &r)
virtual void RealDoCreate (HWND hwndP, nsWindow *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell, nsWidgetInitData *aInitData, HWND hwndOwner=0)
void RelayMouseEvent (UINT aMsg, WPARAM wParam, LPARAM lParam)
PRBool ReleaseIfDragHPS (HPS aHps)
virtual void RemoveFromStyle (ULONG style)
virtual void ResolveIconName (const nsAString &aIconName, const nsAString &aIconSuffix, nsILocalFile **aResult)
void ResolveIMECaretPos (nsWindow *aClient, nsRect &aEventResult, nsRect &aResult)
void ScreenToWidgetPos (PhPoint_t &pt)
void ScrollChildWindows (PRInt32 aX, PRInt32 aY)
virtual void SetupForPrint (HWND)
void SetupModKeyState ()
virtual BOOL SetWindowPos (HWND hwndInsertBehind, long x, long y, long cx, long cy, unsigned long flags)
virtual void SubclassWindow (BOOL bState)
virtual void SubclassWindow (BOOL bState)
virtual nsresult SynthesizeNativeKeyEvent (PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRUint32 aModifierFlags, const nsAString &aCharacters, const nsAString &aUnmodifiedCharacters)
virtual LPCTSTR WindowClass ()
virtual PCSZ WindowClass ()
virtual LPCWSTR WindowClassW ()
virtual DWORD WindowExStyle ()
virtual LPCTSTR WindowPopupClass ()
virtual LPCWSTR WindowPopupClassW ()
virtual DWORD WindowStyle ()
virtual ULONG WindowStyle ()

Static Protected Member Functions

static BOOL CALLBACK BroadcastMsg (HWND aTopWindow, LPARAM aMsg)
static BOOL CALLBACK BroadcastMsgToChildren (HWND aWnd, LPARAM aMsg)
static PRBool ConvertStatus (nsEventStatus aStatus)
static PRBool ConvertStatus (nsEventStatus aStatus)
static BOOL DealWithPopups (HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inLParam, LRESULT *outResult)
static BOOL DealWithPopups (ULONG inMsg, MRESULT *outResult)
static PRBool DealWithPopups (uint32 methodID, nsPoint pos)
static LRESULT CALLBACK DefaultWindowProc (HWND hWns, UINT msg, WPARAM wParam, LPARAM lParam)
static int DestroyedCallback (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static BOOL CALLBACK DispatchStarvedPaints (HWND aTopWindow, LPARAM aMsg)
static PRBool EventIsInsideWindow (UINT Msg, nsWindow *aWindow)
static PRBool EventIsInsideWindow (nsWindow *aWindow)
static PRBool EventIsInsideWindow (nsWindow *aWindow, nsPoint pos)
static nsWindowGetNSWindowPtr (HWND aWnd)
static nsWindowGetNSWindowPtr (HWND aWnd)
static int GotFocusCallback (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static VOID CALLBACK HookTimerForPopups (HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
static BOOL CALLBACK InvalidateForeignChildWindows (HWND aWnd, LPARAM aMsg)
static int LostFocusCallback (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static LRESULT CALLBACK MozSpecialMouseProc (int code, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK MozSpecialMsgFilter (int code, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK MozSpecialWndProc (int code, WPARAM wParam, LPARAM lParam)
static void PostSleepWakeNotification (const char *aNotification)
static int RawEventHandler (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static void RegisterSpecialDropdownHooks ()
static void ScheduleHookTimer (HWND aWnd, UINT aMsgId)
static BOOL SetNSWindowPtr (HWND aWnd, nsWindow *ptr)
static BOOL SetNSWindowPtr (HWND aWnd, nsWindow *ptr)
static void UnregisterSpecialDropdownHooks ()
static LRESULT CALLBACK WindowProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)

Protected Attributes

nscolor mBackground
nscolor mBackground
nscolor mBackground
PRUint32 mBlurEventSuppressionLevel
nsBorderStyle mBorderStyle
nsBorderStyle mBorderStyle
nsBorderStyle mBorderStyle
nsRect mBounds
nsRect mBounds
nsRect mBounds
HBRUSH mBrush
window_feel mBWindowFeel
window_look mBWindowLook
BOOL mChromeHidden
void * mClientData
void * mClientData
void * mClientData
nsContentType mContentType
nsIDeviceContext * mContext
nsIDeviceContext * mContext
nsIDeviceContext * mContext
PRBool mCreated
HPOINTER mCssCursorHPtr
nsCOMPtr< imgIContainermCssCursorImg
nsCursor mCursor
nsCursor mCursor
nsCursor mCursor
VDKEY mDeadKey
HDWP mDeferredPositioner
HPS mDragHps
PRUint32 mDragStatus
PRPackedBool mEnabled
EVENT_CALLBACK mEventCallback
EVENT_CALLBACK mEventCallback
EVENT_CALLBACK mEventCallback
nsIEventListener * mEventListener
nsIEventListener * mEventListener
nsIEventListener * mEventListener
nsCOMPtr< nsIWidgetmFirstChild
nsCOMPtr< nsIWidgetmFirstChild
nsCOMPtr< nsIWidgetmFirstChild
nsIFontMetricsmFontMetrics
nscolor mForeground
nscolor mForeground
nscolor mForeground
HPOINTER mFrameIcon
HWND mFrameWnd
PRPackedBool mHas3DBorder
PRPackedBool mHasAeroGlass
BOOL mHaveDeadKey
PRUint32 mIMEEnabled
BOOL mInSetFocus
PRPackedBool mIsAltDown
PRPackedBool mIsControlDown
PRPackedBool mIsDestroyed
PRPackedBool mIsDestroying
PRPackedBool mIsInMouseCapture
PRPackedBool mIsInMouseWheelProcessing
PRPackedBool mIsMetaDown
BOOL mIsScrollBar
PRPackedBool mIsScrolling
PRPackedBool mIsShiftDown
PRPackedBool mIsShown
PRPackedBool mIsTopLevel
PRBool mIsTopWidgetWindow
PRPackedBool mIsTopWidgetWindow
PRPackedBool mIsVisible
nsIWidgetmLastChild
nsIWidgetmLastChild
nsIWidgetmLastChild
HKL mLastKeyboardLayout
nsPoint mLastPoint
nsSize mLastSize
char mLeadByte
ULONG mlHave
PRPackedBool mListenForResizes
ULONG mlUsed
nsIMenuBarmMenuBar
PRInt32 mMenuCmdId
nsIMouseListener * mMouseListener
nsIMouseListener * mMouseListener
nsIMouseListener * mMouseListener
nsNativeDragTarget * mNativeDragTarget
PRPackedBool mNeedsMove
PRPackedBool mNeedsResize
PRPackedBool mNeedsShow
ULONG mNextID
nsCOMPtr< nsIWidgetmNextSibling
nsCOMPtr< nsIWidgetmNextSibling
nsCOMPtr< nsIWidgetmNextSibling
DWORD mOldExStyle
HIMC mOldIMC
DWORD mOldStyle
PRPackedBool mOnDestroyCalled
nsRect * mOriginalBounds
nsRect * mOriginalBounds
nsRect * mOriginalBounds
nsToolkitmOS2Toolkit
HDC mPaintDC
PRPackedBool mPainting
nsWindowmParent
nsCOMPtr< nsIWidgetmParent
PRBool mPlaced
PRInt32 mPreferredHeight
PRInt32 mPreferredWidth
nsIWidgetmPrevSibling
nsIWidgetmPrevSibling
nsIWidgetmPrevSibling
WNDPROC mPrevWndProc
PFNWP mPrevWndProc
QMSG mQmsg
PRBool mShown
nsSizeMode mSizeMode
nsSizeMode mSizeMode
nsSizeMode mSizeMode
PSWP mSWPs
nsRefPtr< gfxOS2Surface > mThebesSurface
nsRefPtr< gfxBeOSSurface > mThebesSurface
nsIToolkit * mToolkit
nsIToolkit * mToolkit
nsIToolkit * mToolkit
PRPackedBool mUnicodeWidget
nsCOMPtr< nsIRegion > mUpdateArea
nsViewBeOS * mView
PtWidget_t * mWidget
nsWindowmWindowParent
PRInt32 mWindowState
nsWindowType mWindowType
nsWindowType mWindowType
nsWindowType mWindowType
HWND mWnd
PRInt32 mZIndex
PRInt32 mZIndex
PRInt32 mZIndex

Static Protected Attributes

static nsWindowgCurrentWindow = nsnull
static imgIContainergCursorImgContainer = nsnull
static HCURSOR gHCursor = NULL
static HKL gKeyboardLayout = 0
static PRBool gSwitchKeyboardLayout = PR_FALSE
static nsIContentmLastRollup = nsnull
static nsIContentmLastRollup = nsnull
static nsIContentmLastRollup = nsnull
static nsClipboardsClipboard = nsnull
static nsWidgetsFocusWidget = 0
static PRUint8 * sIMEAttributeArray = NULL
static PRInt32 sIMEAttributeArrayLength = 0
static PRInt32 sIMEAttributeArraySize = 0
static PRInt32 sIMECaretHeight = 0
static RECT * sIMECompCharPos = nsnull
static PRUint32 * sIMECompClauseArray = NULL
static PRInt32 sIMECompClauseArrayLength = 0
static PRInt32 sIMECompClauseArraySize = 0
static nsStringsIMECompUnicode = NULL
static long sIMECursorPosition = 0
static PRBool sIMEIsComposing = PR_FALSE
static PRBool sIMEIsStatusChanged = PR_FALSE
static DWORD sIMEProperty = 0
static PRUnichar * sIMEReconvertUnicode = NULL
static PRUint32 sInstanceCount = 0
static PRBool sIsInEndSession = PR_FALSE
static BOOL sIsOleInitialized = FALSE
static BOOL sIsPopupClassRegistered = FALSE
static BOOL sIsRegistered = FALSE
static nsILookAndFeel * sLookAndFeel = nsnull
static PRUint32 sWidgetCount = 0
static UINT uWM_HEAP_DUMP = 0
static UINT uWM_MSIME_MOUSE = 0

Private Member Functions

void ClearKeyDownFlag (PRUint32 aKeyCode)
NS_IMETHOD CreateNative (PtWidget_t *parentWidget)
virtual void DestroyNative (void)
void DestroyNativeChildren (void)
PRBool DispatchCommandEvent (nsIAtom *aCommand)
void FireDragLeaveTimer (void)
void FireDragMotionTimer (void)
void GetContainerWindow (nsWindow **aWindow)
PRUint32 * GetFlagWord32 (PRUint32 aKeyCode, PRUint32 *aMask)
void GetToplevelWidget (GtkWidget **aWidget)
void InitButtonEvent (nsMouseEvent &aEvent, GdkEventButton *aGdkEvent)
void InitDragEvent (nsMouseEvent &aEvent)
PRBool IsKeyDown (PRUint32 aKeyCode)
NS_IMETHOD ModalEventFilter (PRBool aRealEvent, void *aEvent, PRBool *aForWindow)
void ResetDragMotionTimer (GtkWidget *aWidget, GdkDragContext *aDragContext, gint aX, gint aY, guint aTime)
void SetDefaultIcon (void)
void SetKeyDownFlag (PRUint32 aKeyCode)
void * SetupPluginPort (void)
void SetUrgencyHint (GtkWidget *top_window, PRBool state)
nsresult SetWindowIconList (const nsCStringArray &aIconList)
void UpdateDragStatus (nsMouseEvent &aEvent, GdkDragContext *aDragContext, nsIDragService *aDragService)

Static Private Member Functions

static PRBool DragInProgress (void)
static void DragLeaveTimerCallback (nsITimer *aTimer, void *aClosure)
static guint DragMotionTimerCallback (gpointer aClosure)
static int EvInfo (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static int MenuRegionCallback (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static int MenuRegionDestroyed (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static int ResizeHandler (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)
static int WindowWMHandler (PtWidget_t *widget, void *data, PtCallbackInfo_t *cbinfo)

Private Attributes

PRUint32 mActivatePending: 1
PtWidget_t * mClientWidget
MozContainer * mContainer
PRUint32 mContainerBlockFocus: 1
PRUint32 mContainerGotFocus: 1
PRUint32 mContainerLostFocus: 1
nsCOMPtr< nsITimermDragLeaveTimer
GdkDragContext * mDragMotionContext
guint mDragMotionTime
guint mDragMotionTimerID
GtkWidget * mDragMotionWidget
gint mDragMotionX
gint mDragMotionY
MozDrawingarea * mDrawingarea
PRBool mIsTooSmall
PRBool mIsTransparent
PRUint32 mIsVisible: 1
PRUint32 mKeyDownFlags [8]
PtWidget_t * mLastMenu
PluginType mPluginType
PRUint32 mRetryKeyboardGrab: 1
PRUint32 mRetryPointerGrab: 1
GtkWidget * mShell
PRInt32 mSizeState
nsRefPtr< gfxASurfacemThebesSurface
GtkWindow * mTransientParent
gchar * mTransparencyBitmap
PRInt32 mTransparencyBitmapHeight
PRInt32 mTransparencyBitmapWidth
GtkWindowGroup * mWindowGroup

Static Private Attributes

static nsIRollupListener * gRollupListener = nsnull
static nsIWidgetgRollupWidget = nsnull
static GdkCursor * gsGtkCursorCache [eCursorCount]
static nsWindowmLastDragMotionWindow = NULL
static PRBool sIsDraggingOutOf = PR_FALSE

Friends

MRESULT EXPENTRY fnwpFrame (HWND, ULONG, MPARAM, MPARAM)
MRESULT EXPENTRY fnwpNSWindow (HWND, ULONG, MPARAM, MPARAM)

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

Generated by  Doxygen 1.6.0   Back to index