mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
c9d9685f5d
--HG-- rename : widget/public/LookAndFeel.h => widget/LookAndFeel.h rename : widget/public/WidgetTraceEvent.h => widget/WidgetTraceEvent.h rename : widget/src/android/AndroidBridge.cpp => widget/android/AndroidBridge.cpp rename : widget/src/android/AndroidBridge.h => widget/android/AndroidBridge.h rename : widget/src/android/AndroidDirectTexture.cpp => widget/android/AndroidDirectTexture.cpp rename : widget/src/android/AndroidDirectTexture.h => widget/android/AndroidDirectTexture.h rename : widget/src/android/AndroidGraphicBuffer.cpp => widget/android/AndroidGraphicBuffer.cpp rename : widget/src/android/AndroidGraphicBuffer.h => widget/android/AndroidGraphicBuffer.h rename : widget/src/android/AndroidJNI.cpp => widget/android/AndroidJNI.cpp rename : widget/src/android/AndroidJavaWrappers.cpp => widget/android/AndroidJavaWrappers.cpp rename : widget/src/android/AndroidJavaWrappers.h => widget/android/AndroidJavaWrappers.h rename : widget/src/android/GfxInfo.cpp => widget/android/GfxInfo.cpp rename : widget/src/android/GfxInfo.h => widget/android/GfxInfo.h rename : widget/src/android/Makefile.in => widget/android/Makefile.in rename : widget/src/android/nsAppShell.cpp => widget/android/nsAppShell.cpp rename : widget/src/android/nsAppShell.h => widget/android/nsAppShell.h rename : widget/src/android/nsClipboard.cpp => widget/android/nsClipboard.cpp rename : widget/src/android/nsClipboard.h => widget/android/nsClipboard.h rename : widget/src/android/nsDeviceContextAndroid.cpp => widget/android/nsDeviceContextAndroid.cpp rename : widget/src/android/nsDeviceContextAndroid.h => widget/android/nsDeviceContextAndroid.h rename : widget/src/android/nsFilePicker.cpp => widget/android/nsFilePicker.cpp rename : widget/src/android/nsFilePicker.h => widget/android/nsFilePicker.h rename : widget/src/android/nsIAndroidBridge.idl => widget/android/nsIAndroidBridge.idl rename : widget/src/android/nsIMEPicker.cpp => widget/android/nsIMEPicker.cpp rename : widget/src/android/nsIMEPicker.h => widget/android/nsIMEPicker.h rename : widget/src/android/nsIdleServiceAndroid.cpp => widget/android/nsIdleServiceAndroid.cpp rename : widget/src/android/nsIdleServiceAndroid.h => widget/android/nsIdleServiceAndroid.h rename : widget/src/android/nsLookAndFeel.cpp => widget/android/nsLookAndFeel.cpp rename : widget/src/android/nsLookAndFeel.h => widget/android/nsLookAndFeel.h rename : widget/src/android/nsPrintOptionsAndroid.cpp => widget/android/nsPrintOptionsAndroid.cpp rename : widget/src/android/nsPrintOptionsAndroid.h => widget/android/nsPrintOptionsAndroid.h rename : widget/src/android/nsScreenManagerAndroid.cpp => widget/android/nsScreenManagerAndroid.cpp rename : widget/src/android/nsScreenManagerAndroid.h => widget/android/nsScreenManagerAndroid.h rename : widget/src/android/nsWidgetFactory.cpp => widget/android/nsWidgetFactory.cpp rename : widget/src/android/nsWindow.cpp => widget/android/nsWindow.cpp rename : widget/src/android/nsWindow.h => widget/android/nsWindow.h rename : widget/src/build/Makefile.in => widget/build/Makefile.in rename : widget/src/build/nsWinWidgetFactory.cpp => widget/build/nsWinWidgetFactory.cpp rename : widget/src/build/res/aliasb.cur => widget/build/res/aliasb.cur rename : widget/src/build/res/cell.cur => widget/build/res/cell.cur rename : widget/src/build/res/col_resize.cur => widget/build/res/col_resize.cur rename : widget/src/build/res/copy.cur => widget/build/res/copy.cur rename : widget/src/build/res/grab.cur => widget/build/res/grab.cur rename : widget/src/build/res/grabbing.cur => widget/build/res/grabbing.cur rename : widget/src/build/res/none.cur => widget/build/res/none.cur rename : widget/src/build/res/row_resize.cur => widget/build/res/row_resize.cur rename : widget/src/build/res/select.cur => widget/build/res/select.cur rename : widget/src/build/res/vertical_text.cur => widget/build/res/vertical_text.cur rename : widget/src/build/res/zoom_in.cur => widget/build/res/zoom_in.cur rename : widget/src/build/res/zoom_out.cur => widget/build/res/zoom_out.cur rename : widget/src/build/widget.rc => widget/build/widget.rc rename : widget/src/cocoa/ComplexTextInputPanel.h => widget/cocoa/ComplexTextInputPanel.h rename : widget/src/cocoa/ComplexTextInputPanel.mm => widget/cocoa/ComplexTextInputPanel.mm rename : widget/src/cocoa/CustomCocoaEvents.h => widget/cocoa/CustomCocoaEvents.h rename : widget/src/cocoa/GfxInfo.h => widget/cocoa/GfxInfo.h rename : widget/src/cocoa/GfxInfo.mm => widget/cocoa/GfxInfo.mm rename : widget/src/cocoa/Makefile.in => widget/cocoa/Makefile.in rename : widget/src/cocoa/TextInputHandler.h => widget/cocoa/TextInputHandler.h rename : widget/src/cocoa/TextInputHandler.mm => widget/cocoa/TextInputHandler.mm rename : widget/src/cocoa/WidgetTraceEvent.mm => widget/cocoa/WidgetTraceEvent.mm rename : widget/src/cocoa/crashtests/373122-1-inner.html => widget/cocoa/crashtests/373122-1-inner.html rename : widget/src/cocoa/crashtests/373122-1.html => widget/cocoa/crashtests/373122-1.html rename : widget/src/cocoa/crashtests/397209-1.html => widget/cocoa/crashtests/397209-1.html rename : widget/src/cocoa/crashtests/403296-1.xhtml => widget/cocoa/crashtests/403296-1.xhtml rename : widget/src/cocoa/crashtests/419737-1.html => widget/cocoa/crashtests/419737-1.html rename : widget/src/cocoa/crashtests/435223-1.html => widget/cocoa/crashtests/435223-1.html rename : widget/src/cocoa/crashtests/444260-1.xul => widget/cocoa/crashtests/444260-1.xul rename : widget/src/cocoa/crashtests/444864-1.html => widget/cocoa/crashtests/444864-1.html rename : widget/src/cocoa/crashtests/449111-1.html => widget/cocoa/crashtests/449111-1.html rename : widget/src/cocoa/crashtests/460349-1.xhtml => widget/cocoa/crashtests/460349-1.xhtml rename : widget/src/cocoa/crashtests/460387-1.html => widget/cocoa/crashtests/460387-1.html rename : widget/src/cocoa/crashtests/464589-1.html => widget/cocoa/crashtests/464589-1.html rename : widget/src/cocoa/crashtests/crashtests.list => widget/cocoa/crashtests/crashtests.list rename : widget/src/cocoa/cursors/arrowN.tiff => widget/cocoa/cursors/arrowN.tiff rename : widget/src/cocoa/cursors/arrowS.tiff => widget/cocoa/cursors/arrowS.tiff rename : widget/src/cocoa/cursors/colResize.tiff => widget/cocoa/cursors/colResize.tiff rename : widget/src/cocoa/cursors/help.tiff => widget/cocoa/cursors/help.tiff rename : widget/src/cocoa/cursors/rowResize.tiff => widget/cocoa/cursors/rowResize.tiff rename : widget/src/cocoa/cursors/sizeNE.tiff => widget/cocoa/cursors/sizeNE.tiff rename : widget/src/cocoa/cursors/sizeNESW.tiff => widget/cocoa/cursors/sizeNESW.tiff rename : widget/src/cocoa/cursors/sizeNS.tiff => widget/cocoa/cursors/sizeNS.tiff rename : widget/src/cocoa/cursors/sizeNW.tiff => widget/cocoa/cursors/sizeNW.tiff rename : widget/src/cocoa/cursors/sizeNWSE.tiff => widget/cocoa/cursors/sizeNWSE.tiff rename : widget/src/cocoa/cursors/sizeSE.tiff => widget/cocoa/cursors/sizeSE.tiff rename : widget/src/cocoa/cursors/sizeSW.tiff => widget/cocoa/cursors/sizeSW.tiff rename : widget/src/cocoa/cursors/spin1.tiff => widget/cocoa/cursors/spin1.tiff rename : widget/src/cocoa/cursors/spin2.tiff => widget/cocoa/cursors/spin2.tiff rename : widget/src/cocoa/cursors/spin3.tiff => widget/cocoa/cursors/spin3.tiff rename : widget/src/cocoa/cursors/spin4.tiff => widget/cocoa/cursors/spin4.tiff rename : widget/src/cocoa/cursors/vtIBeam.tiff => widget/cocoa/cursors/vtIBeam.tiff rename : widget/src/cocoa/cursors/zoomIn.tiff => widget/cocoa/cursors/zoomIn.tiff rename : widget/src/cocoa/cursors/zoomOut.tiff => widget/cocoa/cursors/zoomOut.tiff rename : widget/src/cocoa/mozView.h => widget/cocoa/mozView.h rename : widget/src/cocoa/nsAppShell.h => widget/cocoa/nsAppShell.h rename : widget/src/cocoa/nsAppShell.mm => widget/cocoa/nsAppShell.mm rename : widget/src/cocoa/nsBidiKeyboard.h => widget/cocoa/nsBidiKeyboard.h rename : widget/src/cocoa/nsBidiKeyboard.mm => widget/cocoa/nsBidiKeyboard.mm rename : widget/src/cocoa/nsChangeObserver.h => widget/cocoa/nsChangeObserver.h rename : widget/src/cocoa/nsChildView.h => widget/cocoa/nsChildView.h rename : widget/src/cocoa/nsChildView.mm => widget/cocoa/nsChildView.mm rename : widget/src/cocoa/nsClipboard.h => widget/cocoa/nsClipboard.h rename : widget/src/cocoa/nsClipboard.mm => widget/cocoa/nsClipboard.mm rename : widget/src/cocoa/nsCocoaFeatures.h => widget/cocoa/nsCocoaFeatures.h rename : widget/src/cocoa/nsCocoaFeatures.mm => widget/cocoa/nsCocoaFeatures.mm rename : widget/src/cocoa/nsCocoaUtils.h => widget/cocoa/nsCocoaUtils.h rename : widget/src/cocoa/nsCocoaUtils.mm => widget/cocoa/nsCocoaUtils.mm rename : widget/src/cocoa/nsCocoaWindow.h => widget/cocoa/nsCocoaWindow.h rename : widget/src/cocoa/nsCocoaWindow.mm => widget/cocoa/nsCocoaWindow.mm rename : widget/src/cocoa/nsCursorManager.h => widget/cocoa/nsCursorManager.h rename : widget/src/cocoa/nsCursorManager.mm => widget/cocoa/nsCursorManager.mm rename : widget/src/cocoa/nsDeviceContextSpecX.h => widget/cocoa/nsDeviceContextSpecX.h rename : widget/src/cocoa/nsDeviceContextSpecX.mm => widget/cocoa/nsDeviceContextSpecX.mm rename : widget/src/cocoa/nsDragService.h => widget/cocoa/nsDragService.h rename : widget/src/cocoa/nsDragService.mm => widget/cocoa/nsDragService.mm rename : widget/src/cocoa/nsFilePicker.h => widget/cocoa/nsFilePicker.h rename : widget/src/cocoa/nsFilePicker.mm => widget/cocoa/nsFilePicker.mm rename : widget/src/cocoa/nsIdleServiceX.h => widget/cocoa/nsIdleServiceX.h rename : widget/src/cocoa/nsIdleServiceX.mm => widget/cocoa/nsIdleServiceX.mm rename : widget/src/cocoa/nsLookAndFeel.h => widget/cocoa/nsLookAndFeel.h rename : widget/src/cocoa/nsLookAndFeel.mm => widget/cocoa/nsLookAndFeel.mm rename : widget/src/cocoa/nsMacCursor.h => widget/cocoa/nsMacCursor.h rename : widget/src/cocoa/nsMacCursor.mm => widget/cocoa/nsMacCursor.mm rename : widget/src/cocoa/nsMacDockSupport.h => widget/cocoa/nsMacDockSupport.h rename : widget/src/cocoa/nsMacDockSupport.mm => widget/cocoa/nsMacDockSupport.mm rename : widget/src/cocoa/nsMenuBarX.h => widget/cocoa/nsMenuBarX.h rename : widget/src/cocoa/nsMenuBarX.mm => widget/cocoa/nsMenuBarX.mm rename : widget/src/cocoa/nsMenuBaseX.h => widget/cocoa/nsMenuBaseX.h rename : widget/src/cocoa/nsMenuGroupOwnerX.h => widget/cocoa/nsMenuGroupOwnerX.h rename : widget/src/cocoa/nsMenuGroupOwnerX.mm => widget/cocoa/nsMenuGroupOwnerX.mm rename : widget/src/cocoa/nsMenuItemIconX.h => widget/cocoa/nsMenuItemIconX.h rename : widget/src/cocoa/nsMenuItemIconX.mm => widget/cocoa/nsMenuItemIconX.mm rename : widget/src/cocoa/nsMenuItemX.h => widget/cocoa/nsMenuItemX.h rename : widget/src/cocoa/nsMenuItemX.mm => widget/cocoa/nsMenuItemX.mm rename : widget/src/cocoa/nsMenuUtilsX.h => widget/cocoa/nsMenuUtilsX.h rename : widget/src/cocoa/nsMenuUtilsX.mm => widget/cocoa/nsMenuUtilsX.mm rename : widget/src/cocoa/nsMenuX.h => widget/cocoa/nsMenuX.h rename : widget/src/cocoa/nsMenuX.mm => widget/cocoa/nsMenuX.mm rename : widget/src/cocoa/nsNativeThemeCocoa.h => widget/cocoa/nsNativeThemeCocoa.h rename : widget/src/cocoa/nsNativeThemeCocoa.mm => widget/cocoa/nsNativeThemeCocoa.mm rename : widget/src/cocoa/nsNativeThemeColors.h => widget/cocoa/nsNativeThemeColors.h rename : widget/src/cocoa/nsPIWidgetCocoa.idl => widget/cocoa/nsPIWidgetCocoa.idl rename : widget/src/cocoa/nsPrintDialogX.h => widget/cocoa/nsPrintDialogX.h rename : widget/src/cocoa/nsPrintDialogX.mm => widget/cocoa/nsPrintDialogX.mm rename : widget/src/cocoa/nsPrintOptionsX.h => widget/cocoa/nsPrintOptionsX.h rename : widget/src/cocoa/nsPrintOptionsX.mm => widget/cocoa/nsPrintOptionsX.mm rename : widget/src/cocoa/nsPrintSettingsX.h => widget/cocoa/nsPrintSettingsX.h rename : widget/src/cocoa/nsPrintSettingsX.mm => widget/cocoa/nsPrintSettingsX.mm rename : widget/src/cocoa/nsScreenCocoa.h => widget/cocoa/nsScreenCocoa.h rename : widget/src/cocoa/nsScreenCocoa.mm => widget/cocoa/nsScreenCocoa.mm rename : widget/src/cocoa/nsScreenManagerCocoa.h => widget/cocoa/nsScreenManagerCocoa.h rename : widget/src/cocoa/nsScreenManagerCocoa.mm => widget/cocoa/nsScreenManagerCocoa.mm rename : widget/src/cocoa/nsSound.h => widget/cocoa/nsSound.h rename : widget/src/cocoa/nsSound.mm => widget/cocoa/nsSound.mm rename : widget/src/cocoa/nsStandaloneNativeMenu.h => widget/cocoa/nsStandaloneNativeMenu.h rename : widget/src/cocoa/nsStandaloneNativeMenu.mm => widget/cocoa/nsStandaloneNativeMenu.mm rename : widget/src/cocoa/nsToolkit.h => widget/cocoa/nsToolkit.h rename : widget/src/cocoa/nsToolkit.mm => widget/cocoa/nsToolkit.mm rename : widget/src/cocoa/nsWidgetFactory.mm => widget/cocoa/nsWidgetFactory.mm rename : widget/src/cocoa/nsWindowMap.h => widget/cocoa/nsWindowMap.h rename : widget/src/cocoa/nsWindowMap.mm => widget/cocoa/nsWindowMap.mm rename : widget/src/cocoa/resources/MainMenu.nib/classes.nib => widget/cocoa/resources/MainMenu.nib/classes.nib rename : widget/src/cocoa/resources/MainMenu.nib/info.nib => widget/cocoa/resources/MainMenu.nib/info.nib rename : widget/src/cocoa/resources/MainMenu.nib/keyedobjects.nib => widget/cocoa/resources/MainMenu.nib/keyedobjects.nib rename : widget/src/crashtests/303901-1.html => widget/crashtests/303901-1.html rename : widget/src/crashtests/303901-2.html => widget/crashtests/303901-2.html rename : widget/src/crashtests/380359-1.xhtml => widget/crashtests/380359-1.xhtml rename : widget/src/crashtests/crashtests.list => widget/crashtests/crashtests.list rename : widget/src/gonk/Framebuffer.cpp => widget/gonk/Framebuffer.cpp rename : widget/src/gonk/Framebuffer.h => widget/gonk/Framebuffer.h rename : widget/src/gonk/Makefile.in => widget/gonk/Makefile.in rename : widget/src/gonk/nsAppShell.cpp => widget/gonk/nsAppShell.cpp rename : widget/src/gonk/nsAppShell.h => widget/gonk/nsAppShell.h rename : widget/src/gonk/nsLookAndFeel.cpp => widget/gonk/nsLookAndFeel.cpp rename : widget/src/gonk/nsLookAndFeel.h => widget/gonk/nsLookAndFeel.h rename : widget/src/gonk/nsScreenManagerGonk.cpp => widget/gonk/nsScreenManagerGonk.cpp rename : widget/src/gonk/nsScreenManagerGonk.h => widget/gonk/nsScreenManagerGonk.h rename : widget/src/gonk/nsWidgetFactory.cpp => widget/gonk/nsWidgetFactory.cpp rename : widget/src/gonk/nsWindow.cpp => widget/gonk/nsWindow.cpp rename : widget/src/gonk/nsWindow.h => widget/gonk/nsWindow.h rename : widget/src/gtk2/Makefile.in => widget/gtk2/Makefile.in rename : widget/src/gtk2/WidgetTraceEvent.cpp => widget/gtk2/WidgetTraceEvent.cpp rename : widget/src/gtk2/crashtests/673390-1.html => widget/gtk2/crashtests/673390-1.html rename : widget/src/gtk2/crashtests/crashtests.list => widget/gtk2/crashtests/crashtests.list rename : widget/src/gtk2/gtk2compat.h => widget/gtk2/gtk2compat.h rename : widget/src/gtk2/gtk2drawing.c => widget/gtk2/gtk2drawing.c rename : widget/src/gtk2/gtkdrawing.h => widget/gtk2/gtkdrawing.h rename : widget/src/gtk2/maiRedundantObjectFactory.c => widget/gtk2/maiRedundantObjectFactory.c rename : widget/src/gtk2/maiRedundantObjectFactory.h => widget/gtk2/maiRedundantObjectFactory.h rename : widget/src/gtk2/mozcontainer.c => widget/gtk2/mozcontainer.c rename : widget/src/gtk2/mozcontainer.h => widget/gtk2/mozcontainer.h rename : widget/src/gtk2/nsAppShell.cpp => widget/gtk2/nsAppShell.cpp rename : widget/src/gtk2/nsAppShell.h => widget/gtk2/nsAppShell.h rename : widget/src/gtk2/nsBidiKeyboard.cpp => widget/gtk2/nsBidiKeyboard.cpp rename : widget/src/gtk2/nsBidiKeyboard.h => widget/gtk2/nsBidiKeyboard.h rename : widget/src/gtk2/nsCUPSShim.cpp => widget/gtk2/nsCUPSShim.cpp rename : widget/src/gtk2/nsCUPSShim.h => widget/gtk2/nsCUPSShim.h rename : widget/src/gtk2/nsClipboard.cpp => widget/gtk2/nsClipboard.cpp rename : widget/src/gtk2/nsClipboard.h => widget/gtk2/nsClipboard.h rename : widget/src/gtk2/nsDeviceContextSpecG.cpp => widget/gtk2/nsDeviceContextSpecG.cpp rename : widget/src/gtk2/nsDeviceContextSpecG.h => widget/gtk2/nsDeviceContextSpecG.h rename : widget/src/gtk2/nsDragService.cpp => widget/gtk2/nsDragService.cpp rename : widget/src/gtk2/nsDragService.h => widget/gtk2/nsDragService.h rename : widget/src/gtk2/nsFilePicker.cpp => widget/gtk2/nsFilePicker.cpp rename : widget/src/gtk2/nsFilePicker.h => widget/gtk2/nsFilePicker.h rename : widget/src/gtk2/nsGTKToolkit.h => widget/gtk2/nsGTKToolkit.h rename : widget/src/gtk2/nsGtkCursors.h => widget/gtk2/nsGtkCursors.h rename : widget/src/gtk2/nsGtkIMModule.cpp => widget/gtk2/nsGtkIMModule.cpp rename : widget/src/gtk2/nsGtkIMModule.h => widget/gtk2/nsGtkIMModule.h rename : widget/src/gtk2/nsGtkKeyUtils.cpp => widget/gtk2/nsGtkKeyUtils.cpp rename : widget/src/gtk2/nsGtkKeyUtils.h => widget/gtk2/nsGtkKeyUtils.h rename : widget/src/gtk2/nsIImageToPixbuf.h => widget/gtk2/nsIImageToPixbuf.h rename : widget/src/gtk2/nsIdleServiceGTK.cpp => widget/gtk2/nsIdleServiceGTK.cpp rename : widget/src/gtk2/nsIdleServiceGTK.h => widget/gtk2/nsIdleServiceGTK.h rename : widget/src/gtk2/nsImageToPixbuf.cpp => widget/gtk2/nsImageToPixbuf.cpp rename : widget/src/gtk2/nsImageToPixbuf.h => widget/gtk2/nsImageToPixbuf.h rename : widget/src/gtk2/nsLookAndFeel.cpp => widget/gtk2/nsLookAndFeel.cpp rename : widget/src/gtk2/nsLookAndFeel.h => widget/gtk2/nsLookAndFeel.h rename : widget/src/gtk2/nsNativeKeyBindings.cpp => widget/gtk2/nsNativeKeyBindings.cpp rename : widget/src/gtk2/nsNativeKeyBindings.h => widget/gtk2/nsNativeKeyBindings.h rename : widget/src/gtk2/nsNativeThemeGTK.cpp => widget/gtk2/nsNativeThemeGTK.cpp rename : widget/src/gtk2/nsNativeThemeGTK.h => widget/gtk2/nsNativeThemeGTK.h rename : widget/src/gtk2/nsPSPrinters.cpp => widget/gtk2/nsPSPrinters.cpp rename : widget/src/gtk2/nsPSPrinters.h => widget/gtk2/nsPSPrinters.h rename : widget/src/gtk2/nsPaperPS.cpp => widget/gtk2/nsPaperPS.cpp rename : widget/src/gtk2/nsPaperPS.h => widget/gtk2/nsPaperPS.h rename : widget/src/gtk2/nsPrintDialogGTK.cpp => widget/gtk2/nsPrintDialogGTK.cpp rename : widget/src/gtk2/nsPrintDialogGTK.h => widget/gtk2/nsPrintDialogGTK.h rename : widget/src/gtk2/nsPrintOptionsGTK.cpp => widget/gtk2/nsPrintOptionsGTK.cpp rename : widget/src/gtk2/nsPrintOptionsGTK.h => widget/gtk2/nsPrintOptionsGTK.h rename : widget/src/gtk2/nsPrintSettingsGTK.cpp => widget/gtk2/nsPrintSettingsGTK.cpp rename : widget/src/gtk2/nsPrintSettingsGTK.h => widget/gtk2/nsPrintSettingsGTK.h rename : widget/src/gtk2/nsScreenGtk.cpp => widget/gtk2/nsScreenGtk.cpp rename : widget/src/gtk2/nsScreenGtk.h => widget/gtk2/nsScreenGtk.h rename : widget/src/gtk2/nsScreenManagerGtk.cpp => widget/gtk2/nsScreenManagerGtk.cpp rename : widget/src/gtk2/nsScreenManagerGtk.h => widget/gtk2/nsScreenManagerGtk.h rename : widget/src/gtk2/nsSound.cpp => widget/gtk2/nsSound.cpp rename : widget/src/gtk2/nsSound.h => widget/gtk2/nsSound.h rename : widget/src/gtk2/nsToolkit.cpp => widget/gtk2/nsToolkit.cpp rename : widget/src/gtk2/nsWidgetFactory.cpp => widget/gtk2/nsWidgetFactory.cpp rename : widget/src/gtk2/nsWindow.cpp => widget/gtk2/nsWindow.cpp rename : widget/src/gtk2/nsWindow.h => widget/gtk2/nsWindow.h rename : widget/src/gtkxtbin/Makefile.in => widget/gtkxtbin/Makefile.in rename : widget/src/gtkxtbin/gtk2xtbin.c => widget/gtkxtbin/gtk2xtbin.c rename : widget/src/gtkxtbin/gtk2xtbin.h => widget/gtkxtbin/gtk2xtbin.h rename : widget/src/gtkxtbin/xembed.h => widget/gtkxtbin/xembed.h rename : widget/public/nsEvent.h => widget/nsEvent.h rename : widget/public/nsGUIEvent.h => widget/nsGUIEvent.h rename : widget/public/nsGUIEventIPC.h => widget/nsGUIEventIPC.h rename : widget/public/nsIAppShell.idl => widget/nsIAppShell.idl rename : widget/public/nsIBaseWindow.idl => widget/nsIBaseWindow.idl rename : widget/public/nsIBidiKeyboard.idl => widget/nsIBidiKeyboard.idl rename : widget/public/nsIClipboard.idl => widget/nsIClipboard.idl rename : widget/public/nsIClipboardDragDropHookList.idl => widget/nsIClipboardDragDropHookList.idl rename : widget/public/nsIClipboardDragDropHooks.idl => widget/nsIClipboardDragDropHooks.idl rename : widget/public/nsIClipboardHelper.idl => widget/nsIClipboardHelper.idl rename : widget/public/nsIClipboardOwner.idl => widget/nsIClipboardOwner.idl rename : widget/public/nsIDeviceContextSpec.h => widget/nsIDeviceContextSpec.h rename : widget/public/nsIDragService.idl => widget/nsIDragService.idl rename : widget/public/nsIDragSession.idl => widget/nsIDragSession.idl rename : widget/public/nsIDragSessionGTK.h => widget/nsIDragSessionGTK.h rename : widget/public/nsIDragSessionOS2.h => widget/nsIDragSessionOS2.h rename : widget/public/nsIFilePicker.idl => widget/nsIFilePicker.idl rename : widget/public/nsIFormatConverter.idl => widget/nsIFormatConverter.idl rename : widget/public/nsIGfxInfo.idl => widget/nsIGfxInfo.idl rename : widget/public/nsIGfxInfoDebug.idl => widget/nsIGfxInfoDebug.idl rename : widget/public/nsIIMEPicker.idl => widget/nsIIMEPicker.idl rename : widget/public/nsIIdleService.idl => widget/nsIIdleService.idl rename : widget/public/nsIJumpListBuilder.idl => widget/nsIJumpListBuilder.idl rename : widget/public/nsIJumpListItem.idl => widget/nsIJumpListItem.idl rename : widget/public/nsIMacDockSupport.idl => widget/nsIMacDockSupport.idl rename : widget/public/nsINativeKeyBindings.h => widget/nsINativeKeyBindings.h rename : widget/public/nsINativeMenuService.h => widget/nsINativeMenuService.h rename : widget/public/nsIPluginWidget.h => widget/nsIPluginWidget.h rename : widget/public/nsIPrintDialogService.h => widget/nsIPrintDialogService.h rename : widget/public/nsIPrintOptions.idl => widget/nsIPrintOptions.idl rename : widget/public/nsIPrintSession.idl => widget/nsIPrintSession.idl rename : widget/public/nsIPrintSettings.idl => widget/nsIPrintSettings.idl rename : widget/public/nsIPrintSettingsService.idl => widget/nsIPrintSettingsService.idl rename : widget/public/nsIPrintSettingsWin.idl => widget/nsIPrintSettingsWin.idl rename : widget/public/nsIRollupListener.h => widget/nsIRollupListener.h rename : widget/public/nsIRwsService.idl => widget/nsIRwsService.idl rename : widget/public/nsIScreen.idl => widget/nsIScreen.idl rename : widget/public/nsIScreenManager.idl => widget/nsIScreenManager.idl rename : widget/public/nsISound.idl => widget/nsISound.idl rename : widget/public/nsIStandaloneNativeMenu.idl => widget/nsIStandaloneNativeMenu.idl rename : widget/public/nsITaskbarOverlayIconController.idl => widget/nsITaskbarOverlayIconController.idl rename : widget/public/nsITaskbarPreview.idl => widget/nsITaskbarPreview.idl rename : widget/public/nsITaskbarPreviewButton.idl => widget/nsITaskbarPreviewButton.idl rename : widget/public/nsITaskbarPreviewController.idl => widget/nsITaskbarPreviewController.idl rename : widget/public/nsITaskbarProgress.idl => widget/nsITaskbarProgress.idl rename : widget/public/nsITaskbarTabPreview.idl => widget/nsITaskbarTabPreview.idl rename : widget/public/nsITaskbarWindowPreview.idl => widget/nsITaskbarWindowPreview.idl rename : widget/public/nsITransferable.idl => widget/nsITransferable.idl rename : widget/public/nsIWidget.h => widget/nsIWidget.h rename : widget/public/nsIWinTaskbar.idl => widget/nsIWinTaskbar.idl rename : widget/public/nsNativeWidget.h => widget/nsNativeWidget.h rename : widget/public/nsWidgetInitData.h => widget/nsWidgetInitData.h rename : widget/public/nsWidgetsCID.h => widget/nsWidgetsCID.h rename : widget/src/os2/Makefile.in => widget/os2/Makefile.in rename : widget/src/os2/MozSounds.cmd => widget/os2/MozSounds.cmd rename : widget/src/os2/README.firefox => widget/os2/README.firefox rename : widget/src/os2/README.seamonkey => widget/os2/README.seamonkey rename : widget/src/os2/README.thunderbird => widget/os2/README.thunderbird rename : widget/src/os2/nsAppShell.cpp => widget/os2/nsAppShell.cpp rename : widget/src/os2/nsAppShell.h => widget/os2/nsAppShell.h rename : widget/src/os2/nsBidiKeyboard.cpp => widget/os2/nsBidiKeyboard.cpp rename : widget/src/os2/nsBidiKeyboard.h => widget/os2/nsBidiKeyboard.h rename : widget/src/os2/nsClipboard.cpp => widget/os2/nsClipboard.cpp rename : widget/src/os2/nsClipboard.h => widget/os2/nsClipboard.h rename : widget/src/os2/nsDeviceContextSpecOS2.cpp => widget/os2/nsDeviceContextSpecOS2.cpp rename : widget/src/os2/nsDeviceContextSpecOS2.h => widget/os2/nsDeviceContextSpecOS2.h rename : widget/src/os2/nsDragService.cpp => widget/os2/nsDragService.cpp rename : widget/src/os2/nsDragService.h => widget/os2/nsDragService.h rename : widget/src/os2/nsFilePicker.cpp => widget/os2/nsFilePicker.cpp rename : widget/src/os2/nsFilePicker.h => widget/os2/nsFilePicker.h rename : widget/src/os2/nsGfxDefs.h => widget/os2/nsGfxDefs.h rename : widget/src/os2/nsIdleServiceOS2.cpp => widget/os2/nsIdleServiceOS2.cpp rename : widget/src/os2/nsIdleServiceOS2.h => widget/os2/nsIdleServiceOS2.h rename : widget/src/os2/nsLookAndFeel.cpp => widget/os2/nsLookAndFeel.cpp rename : widget/src/os2/nsLookAndFeel.h => widget/os2/nsLookAndFeel.h rename : widget/src/os2/nsOS2Uni.cpp => widget/os2/nsOS2Uni.cpp rename : widget/src/os2/nsOS2Uni.h => widget/os2/nsOS2Uni.h rename : widget/src/os2/nsPrintOS2.cpp => widget/os2/nsPrintOS2.cpp rename : widget/src/os2/nsPrintOS2.h => widget/os2/nsPrintOS2.h rename : widget/src/os2/nsPrintOptionsOS2.cpp => widget/os2/nsPrintOptionsOS2.cpp rename : widget/src/os2/nsPrintOptionsOS2.h => widget/os2/nsPrintOptionsOS2.h rename : widget/src/os2/nsPrintdOS2.h => widget/os2/nsPrintdOS2.h rename : widget/src/os2/nsRwsService.cpp => widget/os2/nsRwsService.cpp rename : widget/src/os2/nsRwsService.h => widget/os2/nsRwsService.h rename : widget/src/os2/nsScreenManagerOS2.cpp => widget/os2/nsScreenManagerOS2.cpp rename : widget/src/os2/nsScreenManagerOS2.h => widget/os2/nsScreenManagerOS2.h rename : widget/src/os2/nsScreenOS2.cpp => widget/os2/nsScreenOS2.cpp rename : widget/src/os2/nsScreenOS2.h => widget/os2/nsScreenOS2.h rename : widget/src/os2/nsSound.cpp => widget/os2/nsSound.cpp rename : widget/src/os2/nsSound.h => widget/os2/nsSound.h rename : widget/src/os2/nsWidgetFactory.cpp => widget/os2/nsWidgetFactory.cpp rename : widget/src/os2/nsWindow.cpp => widget/os2/nsWindow.cpp rename : widget/src/os2/nsWindow.h => widget/os2/nsWindow.h rename : widget/src/os2/os2FrameWindow.cpp => widget/os2/os2FrameWindow.cpp rename : widget/src/os2/os2FrameWindow.h => widget/os2/os2FrameWindow.h rename : widget/src/os2/res/aliasb.ptr => widget/os2/res/aliasb.ptr rename : widget/src/os2/res/arrow_wait.ptr => widget/os2/res/arrow_wait.ptr rename : widget/src/os2/res/cell.ptr => widget/os2/res/cell.ptr rename : widget/src/os2/res/col_resize.ptr => widget/os2/res/col_resize.ptr rename : widget/src/os2/res/copy.ptr => widget/os2/res/copy.ptr rename : widget/src/os2/res/crosshair.ptr => widget/os2/res/crosshair.ptr rename : widget/src/os2/res/dndtext.ico => widget/os2/res/dndtext.ico rename : widget/src/os2/res/dndurl.ico => widget/os2/res/dndurl.ico rename : widget/src/os2/res/grab.ptr => widget/os2/res/grab.ptr rename : widget/src/os2/res/grabbing.ptr => widget/os2/res/grabbing.ptr rename : widget/src/os2/res/help.ptr => widget/os2/res/help.ptr rename : widget/src/os2/res/none.ptr => widget/os2/res/none.ptr rename : widget/src/os2/res/row_resize.ptr => widget/os2/res/row_resize.ptr rename : widget/src/os2/res/select.ptr => widget/os2/res/select.ptr rename : widget/src/os2/res/vertical_text.ptr => widget/os2/res/vertical_text.ptr rename : widget/src/os2/res/zoom_in.ptr => widget/os2/res/zoom_in.ptr rename : widget/src/os2/res/zoom_out.ptr => widget/os2/res/zoom_out.ptr rename : widget/src/os2/rws.h => widget/os2/rws.h rename : widget/src/os2/rwserr.h => widget/os2/rwserr.h rename : widget/src/os2/wdgtos2rc.h => widget/os2/wdgtos2rc.h rename : widget/src/os2/widget.rc => widget/os2/widget.rc rename : widget/src/qt/Makefile.in => widget/qt/Makefile.in rename : widget/src/qt/faststartupqt/Makefile.in => widget/qt/faststartupqt/Makefile.in rename : widget/src/qt/faststartupqt/mozqwidgetfast.cpp => widget/qt/faststartupqt/mozqwidgetfast.cpp rename : widget/src/qt/faststartupqt/mozqwidgetfast.h => widget/qt/faststartupqt/mozqwidgetfast.h rename : widget/src/qt/faststartupqt/nsFastStartupQt.cpp => widget/qt/faststartupqt/nsFastStartupQt.cpp rename : widget/src/qt/faststartupqt/nsFastStartupQt.h => widget/qt/faststartupqt/nsFastStartupQt.h rename : widget/src/qt/mozSwipeGesture.cpp => widget/qt/mozSwipeGesture.cpp rename : widget/src/qt/mozSwipeGesture.h => widget/qt/mozSwipeGesture.h rename : widget/src/qt/moziqwidget.h => widget/qt/moziqwidget.h rename : widget/src/qt/mozqorientationsensorfilter.cpp => widget/qt/mozqorientationsensorfilter.cpp rename : widget/src/qt/mozqorientationsensorfilter.h => widget/qt/mozqorientationsensorfilter.h rename : widget/src/qt/mozqwidget.cpp => widget/qt/mozqwidget.cpp rename : widget/src/qt/mozqwidget.h => widget/qt/mozqwidget.h rename : widget/src/qt/nsAppShell.cpp => widget/qt/nsAppShell.cpp rename : widget/src/qt/nsAppShell.h => widget/qt/nsAppShell.h rename : widget/src/qt/nsBidiKeyboard.cpp => widget/qt/nsBidiKeyboard.cpp rename : widget/src/qt/nsBidiKeyboard.h => widget/qt/nsBidiKeyboard.h rename : widget/src/qt/nsClipboard.cpp => widget/qt/nsClipboard.cpp rename : widget/src/qt/nsClipboard.h => widget/qt/nsClipboard.h rename : widget/src/qt/nsCommonWidget.cpp => widget/qt/nsCommonWidget.cpp rename : widget/src/qt/nsCommonWidget.h => widget/qt/nsCommonWidget.h rename : widget/src/qt/nsDeviceContextSpecQt.cpp => widget/qt/nsDeviceContextSpecQt.cpp rename : widget/src/qt/nsDeviceContextSpecQt.h => widget/qt/nsDeviceContextSpecQt.h rename : widget/src/qt/nsDragService.cpp => widget/qt/nsDragService.cpp rename : widget/src/qt/nsDragService.h => widget/qt/nsDragService.h rename : widget/src/qt/nsFilePicker.cpp => widget/qt/nsFilePicker.cpp rename : widget/src/qt/nsFilePicker.h => widget/qt/nsFilePicker.h rename : widget/src/qt/nsIdleServiceQt.cpp => widget/qt/nsIdleServiceQt.cpp rename : widget/src/qt/nsIdleServiceQt.h => widget/qt/nsIdleServiceQt.h rename : widget/src/qt/nsLookAndFeel.cpp => widget/qt/nsLookAndFeel.cpp rename : widget/src/qt/nsLookAndFeel.h => widget/qt/nsLookAndFeel.h rename : widget/src/qt/nsMFilePicker.cpp => widget/qt/nsMFilePicker.cpp rename : widget/src/qt/nsMFilePicker.h => widget/qt/nsMFilePicker.h rename : widget/src/qt/nsNativeThemeQt.cpp => widget/qt/nsNativeThemeQt.cpp rename : widget/src/qt/nsNativeThemeQt.h => widget/qt/nsNativeThemeQt.h rename : widget/src/qt/nsPrintDialogQt.cpp => widget/qt/nsPrintDialogQt.cpp rename : widget/src/qt/nsPrintDialogQt.h => widget/qt/nsPrintDialogQt.h rename : widget/src/qt/nsPrintOptionsQt.cpp => widget/qt/nsPrintOptionsQt.cpp rename : widget/src/qt/nsPrintOptionsQt.h => widget/qt/nsPrintOptionsQt.h rename : widget/src/qt/nsPrintSettingsQt.cpp => widget/qt/nsPrintSettingsQt.cpp rename : widget/src/qt/nsPrintSettingsQt.h => widget/qt/nsPrintSettingsQt.h rename : widget/src/qt/nsQtKeyUtils.cpp => widget/qt/nsQtKeyUtils.cpp rename : widget/src/qt/nsQtKeyUtils.h => widget/qt/nsQtKeyUtils.h rename : widget/src/qt/nsScreenManagerQt.cpp => widget/qt/nsScreenManagerQt.cpp rename : widget/src/qt/nsScreenManagerQt.h => widget/qt/nsScreenManagerQt.h rename : widget/src/qt/nsScreenQt.cpp => widget/qt/nsScreenQt.cpp rename : widget/src/qt/nsScreenQt.h => widget/qt/nsScreenQt.h rename : widget/src/qt/nsSound.cpp => widget/qt/nsSound.cpp rename : widget/src/qt/nsSound.h => widget/qt/nsSound.h rename : widget/src/qt/nsWidgetFactory.cpp => widget/qt/nsWidgetFactory.cpp rename : widget/src/qt/nsWindow.cpp => widget/qt/nsWindow.cpp rename : widget/src/qt/nsWindow.h => widget/qt/nsWindow.h rename : widget/src/shared/Makefile.in => widget/shared/Makefile.in rename : widget/src/shared/WidgetUtils.cpp => widget/shared/WidgetUtils.cpp rename : widget/src/shared/WidgetUtils.h => widget/shared/WidgetUtils.h rename : widget/src/shared/nsShmImage.cpp => widget/shared/nsShmImage.cpp rename : widget/src/shared/nsShmImage.h => widget/shared/nsShmImage.h rename : widget/src/shared/x11/Makefile.in => widget/shared/x11/Makefile.in rename : widget/src/shared/x11/keysym2ucs.c => widget/shared/x11/keysym2ucs.c rename : widget/src/shared/x11/keysym2ucs.h => widget/shared/x11/keysym2ucs.h rename : widget/src/windows/AudioSession.cpp => widget/windows/AudioSession.cpp rename : widget/src/windows/AudioSession.h => widget/windows/AudioSession.h rename : widget/src/windows/GfxInfo.cpp => widget/windows/GfxInfo.cpp rename : widget/src/windows/GfxInfo.h => widget/windows/GfxInfo.h rename : widget/src/windows/IEnumFE.cpp => widget/windows/IEnumFE.cpp rename : widget/src/windows/IEnumFE.h => widget/windows/IEnumFE.h rename : widget/src/windows/JumpListBuilder.cpp => widget/windows/JumpListBuilder.cpp rename : widget/src/windows/JumpListBuilder.h => widget/windows/JumpListBuilder.h rename : widget/src/windows/JumpListItem.cpp => widget/windows/JumpListItem.cpp rename : widget/src/windows/JumpListItem.h => widget/windows/JumpListItem.h rename : widget/src/windows/KeyboardLayout.cpp => widget/windows/KeyboardLayout.cpp rename : widget/src/windows/KeyboardLayout.h => widget/windows/KeyboardLayout.h rename : widget/src/windows/LSPAnnotator.cpp => widget/windows/LSPAnnotator.cpp rename : widget/src/windows/Makefile.in => widget/windows/Makefile.in rename : widget/src/windows/TaskbarPreview.cpp => widget/windows/TaskbarPreview.cpp rename : widget/src/windows/TaskbarPreview.h => widget/windows/TaskbarPreview.h rename : widget/src/windows/TaskbarPreviewButton.cpp => widget/windows/TaskbarPreviewButton.cpp rename : widget/src/windows/TaskbarPreviewButton.h => widget/windows/TaskbarPreviewButton.h rename : widget/src/windows/TaskbarTabPreview.cpp => widget/windows/TaskbarTabPreview.cpp rename : widget/src/windows/TaskbarTabPreview.h => widget/windows/TaskbarTabPreview.h rename : widget/src/windows/TaskbarWindowPreview.cpp => widget/windows/TaskbarWindowPreview.cpp rename : widget/src/windows/TaskbarWindowPreview.h => widget/windows/TaskbarWindowPreview.h rename : widget/src/windows/WidgetTraceEvent.cpp => widget/windows/WidgetTraceEvent.cpp rename : widget/src/windows/WinTaskbar.cpp => widget/windows/WinTaskbar.cpp rename : widget/src/windows/WinTaskbar.h => widget/windows/WinTaskbar.h rename : widget/src/windows/WindowHook.cpp => widget/windows/WindowHook.cpp rename : widget/src/windows/WindowHook.h => widget/windows/WindowHook.h rename : widget/src/windows/nsAppShell.cpp => widget/windows/nsAppShell.cpp rename : widget/src/windows/nsAppShell.h => widget/windows/nsAppShell.h rename : widget/src/windows/nsBidiKeyboard.cpp => widget/windows/nsBidiKeyboard.cpp rename : widget/src/windows/nsBidiKeyboard.h => widget/windows/nsBidiKeyboard.h rename : widget/src/windows/nsClipboard.cpp => widget/windows/nsClipboard.cpp rename : widget/src/windows/nsClipboard.h => widget/windows/nsClipboard.h rename : widget/src/windows/nsDataObj.cpp => widget/windows/nsDataObj.cpp rename : widget/src/windows/nsDataObj.h => widget/windows/nsDataObj.h rename : widget/src/windows/nsDataObjCollection.cpp => widget/windows/nsDataObjCollection.cpp rename : widget/src/windows/nsDataObjCollection.h => widget/windows/nsDataObjCollection.h rename : widget/src/windows/nsDeviceContextSpecWin.cpp => widget/windows/nsDeviceContextSpecWin.cpp rename : widget/src/windows/nsDeviceContextSpecWin.h => widget/windows/nsDeviceContextSpecWin.h rename : widget/src/windows/nsDragService.cpp => widget/windows/nsDragService.cpp rename : widget/src/windows/nsDragService.h => widget/windows/nsDragService.h rename : widget/src/windows/nsFilePicker.cpp => widget/windows/nsFilePicker.cpp rename : widget/src/windows/nsFilePicker.h => widget/windows/nsFilePicker.h rename : widget/src/windows/nsIMM32Handler.cpp => widget/windows/nsIMM32Handler.cpp rename : widget/src/windows/nsIMM32Handler.h => widget/windows/nsIMM32Handler.h rename : widget/src/windows/nsIdleServiceWin.cpp => widget/windows/nsIdleServiceWin.cpp rename : widget/src/windows/nsIdleServiceWin.h => widget/windows/nsIdleServiceWin.h rename : widget/src/windows/nsImageClipboard.cpp => widget/windows/nsImageClipboard.cpp rename : widget/src/windows/nsImageClipboard.h => widget/windows/nsImageClipboard.h rename : widget/src/windows/nsLookAndFeel.cpp => widget/windows/nsLookAndFeel.cpp rename : widget/src/windows/nsLookAndFeel.h => widget/windows/nsLookAndFeel.h rename : widget/src/windows/nsNativeDragSource.cpp => widget/windows/nsNativeDragSource.cpp rename : widget/src/windows/nsNativeDragSource.h => widget/windows/nsNativeDragSource.h rename : widget/src/windows/nsNativeDragTarget.cpp => widget/windows/nsNativeDragTarget.cpp rename : widget/src/windows/nsNativeDragTarget.h => widget/windows/nsNativeDragTarget.h rename : widget/src/windows/nsNativeThemeWin.cpp => widget/windows/nsNativeThemeWin.cpp rename : widget/src/windows/nsNativeThemeWin.h => widget/windows/nsNativeThemeWin.h rename : widget/src/windows/nsPrintOptionsWin.cpp => widget/windows/nsPrintOptionsWin.cpp rename : widget/src/windows/nsPrintOptionsWin.h => widget/windows/nsPrintOptionsWin.h rename : widget/src/windows/nsPrintSettingsWin.cpp => widget/windows/nsPrintSettingsWin.cpp rename : widget/src/windows/nsPrintSettingsWin.h => widget/windows/nsPrintSettingsWin.h rename : widget/src/windows/nsScreenManagerWin.cpp => widget/windows/nsScreenManagerWin.cpp rename : widget/src/windows/nsScreenManagerWin.h => widget/windows/nsScreenManagerWin.h rename : widget/src/windows/nsScreenWin.cpp => widget/windows/nsScreenWin.cpp rename : widget/src/windows/nsScreenWin.h => widget/windows/nsScreenWin.h rename : widget/src/windows/nsSound.cpp => widget/windows/nsSound.cpp rename : widget/src/windows/nsSound.h => widget/windows/nsSound.h rename : widget/src/windows/nsTextStore.cpp => widget/windows/nsTextStore.cpp rename : widget/src/windows/nsTextStore.h => widget/windows/nsTextStore.h rename : widget/src/windows/nsToolkit.cpp => widget/windows/nsToolkit.cpp rename : widget/src/windows/nsToolkit.h => widget/windows/nsToolkit.h rename : widget/src/windows/nsUXThemeConstants.h => widget/windows/nsUXThemeConstants.h rename : widget/src/windows/nsUXThemeData.cpp => widget/windows/nsUXThemeData.cpp rename : widget/src/windows/nsUXThemeData.h => widget/windows/nsUXThemeData.h rename : widget/src/windows/nsWinGesture.cpp => widget/windows/nsWinGesture.cpp rename : widget/src/windows/nsWinGesture.h => widget/windows/nsWinGesture.h rename : widget/src/windows/nsWindow.cpp => widget/windows/nsWindow.cpp rename : widget/src/windows/nsWindow.h => widget/windows/nsWindow.h rename : widget/src/windows/nsWindowDbg.cpp => widget/windows/nsWindowDbg.cpp rename : widget/src/windows/nsWindowDbg.h => widget/windows/nsWindowDbg.h rename : widget/src/windows/nsWindowDefs.h => widget/windows/nsWindowDefs.h rename : widget/src/windows/nsWindowGfx.cpp => widget/windows/nsWindowGfx.cpp rename : widget/src/windows/nsWindowGfx.h => widget/windows/nsWindowGfx.h rename : widget/src/windows/nsdefs.h => widget/windows/nsdefs.h rename : widget/src/windows/resource.h => widget/windows/resource.h rename : widget/src/windows/tests/Makefile.in => widget/windows/tests/Makefile.in rename : widget/src/windows/tests/TestWinDND.cpp => widget/windows/tests/TestWinDND.cpp rename : widget/src/xpwidgets/GfxDriverInfo.cpp => widget/xpwidgets/GfxDriverInfo.cpp rename : widget/src/xpwidgets/GfxDriverInfo.h => widget/xpwidgets/GfxDriverInfo.h rename : widget/src/xpwidgets/GfxInfoBase.cpp => widget/xpwidgets/GfxInfoBase.cpp rename : widget/src/xpwidgets/GfxInfoBase.h => widget/xpwidgets/GfxInfoBase.h rename : widget/src/xpwidgets/GfxInfoCollector.h => widget/xpwidgets/GfxInfoCollector.h rename : widget/src/xpwidgets/GfxInfoWebGL.cpp => widget/xpwidgets/GfxInfoWebGL.cpp rename : widget/src/xpwidgets/GfxInfoWebGL.h => widget/xpwidgets/GfxInfoWebGL.h rename : widget/src/xpwidgets/GfxInfoX11.cpp => widget/xpwidgets/GfxInfoX11.cpp rename : widget/src/xpwidgets/GfxInfoX11.h => widget/xpwidgets/GfxInfoX11.h rename : widget/src/xpwidgets/Makefile.in => widget/xpwidgets/Makefile.in rename : widget/src/xpwidgets/PuppetWidget.cpp => widget/xpwidgets/PuppetWidget.cpp rename : widget/src/xpwidgets/PuppetWidget.h => widget/xpwidgets/PuppetWidget.h rename : widget/src/xpwidgets/nsAppShellSingleton.h => widget/xpwidgets/nsAppShellSingleton.h rename : widget/src/xpwidgets/nsBaseAppShell.cpp => widget/xpwidgets/nsBaseAppShell.cpp rename : widget/src/xpwidgets/nsBaseAppShell.h => widget/xpwidgets/nsBaseAppShell.h rename : widget/src/xpwidgets/nsBaseClipboard.cpp => widget/xpwidgets/nsBaseClipboard.cpp rename : widget/src/xpwidgets/nsBaseClipboard.h => widget/xpwidgets/nsBaseClipboard.h rename : widget/src/xpwidgets/nsBaseDragService.cpp => widget/xpwidgets/nsBaseDragService.cpp rename : widget/src/xpwidgets/nsBaseDragService.h => widget/xpwidgets/nsBaseDragService.h rename : widget/src/xpwidgets/nsBaseFilePicker.cpp => widget/xpwidgets/nsBaseFilePicker.cpp rename : widget/src/xpwidgets/nsBaseFilePicker.h => widget/xpwidgets/nsBaseFilePicker.h rename : widget/src/xpwidgets/nsBaseWidget.cpp => widget/xpwidgets/nsBaseWidget.cpp rename : widget/src/xpwidgets/nsBaseWidget.h => widget/xpwidgets/nsBaseWidget.h rename : widget/src/xpwidgets/nsClipboardHelper.cpp => widget/xpwidgets/nsClipboardHelper.cpp rename : widget/src/xpwidgets/nsClipboardHelper.h => widget/xpwidgets/nsClipboardHelper.h rename : widget/src/xpwidgets/nsClipboardPrivacyHandler.cpp => widget/xpwidgets/nsClipboardPrivacyHandler.cpp rename : widget/src/xpwidgets/nsClipboardPrivacyHandler.h => widget/xpwidgets/nsClipboardPrivacyHandler.h rename : widget/src/xpwidgets/nsFilePickerProxy.cpp => widget/xpwidgets/nsFilePickerProxy.cpp rename : widget/src/xpwidgets/nsFilePickerProxy.h => widget/xpwidgets/nsFilePickerProxy.h rename : widget/src/xpwidgets/nsHTMLFormatConverter.cpp => widget/xpwidgets/nsHTMLFormatConverter.cpp rename : widget/src/xpwidgets/nsHTMLFormatConverter.h => widget/xpwidgets/nsHTMLFormatConverter.h rename : widget/src/xpwidgets/nsIdleService.cpp => widget/xpwidgets/nsIdleService.cpp rename : widget/src/xpwidgets/nsIdleService.h => widget/xpwidgets/nsIdleService.h rename : widget/src/xpwidgets/nsNativeTheme.cpp => widget/xpwidgets/nsNativeTheme.cpp rename : widget/src/xpwidgets/nsNativeTheme.h => widget/xpwidgets/nsNativeTheme.h rename : widget/src/xpwidgets/nsPrimitiveHelpers.cpp => widget/xpwidgets/nsPrimitiveHelpers.cpp rename : widget/src/xpwidgets/nsPrimitiveHelpers.h => widget/xpwidgets/nsPrimitiveHelpers.h rename : widget/src/xpwidgets/nsPrintOptionsImpl.cpp => widget/xpwidgets/nsPrintOptionsImpl.cpp rename : widget/src/xpwidgets/nsPrintOptionsImpl.h => widget/xpwidgets/nsPrintOptionsImpl.h rename : widget/src/xpwidgets/nsPrintSession.cpp => widget/xpwidgets/nsPrintSession.cpp rename : widget/src/xpwidgets/nsPrintSession.h => widget/xpwidgets/nsPrintSession.h rename : widget/src/xpwidgets/nsPrintSettingsImpl.cpp => widget/xpwidgets/nsPrintSettingsImpl.cpp rename : widget/src/xpwidgets/nsPrintSettingsImpl.h => widget/xpwidgets/nsPrintSettingsImpl.h rename : widget/src/xpwidgets/nsTransferable.cpp => widget/xpwidgets/nsTransferable.cpp rename : widget/src/xpwidgets/nsTransferable.h => widget/xpwidgets/nsTransferable.h rename : widget/src/xpwidgets/nsXPLookAndFeel.cpp => widget/xpwidgets/nsXPLookAndFeel.cpp rename : widget/src/xpwidgets/nsXPLookAndFeel.h => widget/xpwidgets/nsXPLookAndFeel.h rename : widget/src/xremoteclient/Makefile.in => widget/xremoteclient/Makefile.in rename : widget/src/xremoteclient/XRemoteClient.cpp => widget/xremoteclient/XRemoteClient.cpp rename : widget/src/xremoteclient/XRemoteClient.h => widget/xremoteclient/XRemoteClient.h rename : widget/src/xremoteclient/XRemoteClientFactory.cpp => widget/xremoteclient/XRemoteClientFactory.cpp rename : widget/src/xremoteclient/mozilla-xremote-client.cpp => widget/xremoteclient/mozilla-xremote-client.cpp rename : widget/src/xremoteclient/nsRemoteClient.h => widget/xremoteclient/nsRemoteClient.h
2030 lines
68 KiB
C++
2030 lines
68 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
*
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
* the License. You may obtain a copy of the License at
|
|
* http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
* for the specific language governing rights and limitations under the
|
|
* License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is
|
|
* Netscape Communications Corporation.
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
* the Initial Developer. All Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Makoto Kato <m_kato@ga2.so-net.ne.jp>
|
|
* Dean Tessman <dean_tessman@hotmail.com>
|
|
* Thomas K. Dyas <tdyas@zecador.org> (simple gestures support)
|
|
* Masayuki Nakano <masayuki@d-toybox.com>
|
|
*
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
* the provisions above, a recipient may use your version of this file under
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
*
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
#ifndef nsGUIEvent_h__
|
|
#define nsGUIEvent_h__
|
|
|
|
#include "nsCOMArray.h"
|
|
#include "nsPoint.h"
|
|
#include "nsRect.h"
|
|
#include "nsRegion.h"
|
|
#include "nsEvent.h"
|
|
#include "nsStringGlue.h"
|
|
#include "nsCOMPtr.h"
|
|
#include "nsIAtom.h"
|
|
#include "nsIDOMKeyEvent.h"
|
|
#include "nsIDOMMouseEvent.h"
|
|
#include "nsIDOMDataTransfer.h"
|
|
#include "nsIDOMEventTarget.h"
|
|
#include "nsIDOMTouchEvent.h"
|
|
#include "nsWeakPtr.h"
|
|
#include "nsIWidget.h"
|
|
#include "nsTArray.h"
|
|
#include "nsTraceRefcnt.h"
|
|
#include "nsITransferable.h"
|
|
#include "nsIVariant.h"
|
|
#include "nsStyleConsts.h"
|
|
#include "nsAutoPtr.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
class PBrowserParent;
|
|
class PBrowserChild;
|
|
}
|
|
namespace plugins {
|
|
class PPluginInstanceChild;
|
|
}
|
|
}
|
|
|
|
#ifdef ACCESSIBILITY
|
|
class nsAccessible;
|
|
#endif
|
|
class nsRenderingContext;
|
|
class nsIMenuItem;
|
|
class nsIContent;
|
|
class nsIURI;
|
|
class nsHashKey;
|
|
|
|
/**
|
|
* Event Struct Types
|
|
*/
|
|
#define NS_EVENT 1
|
|
#define NS_GUI_EVENT 2
|
|
#define NS_SIZE_EVENT 3
|
|
#define NS_SIZEMODE_EVENT 4
|
|
#define NS_ZLEVEL_EVENT 5
|
|
#define NS_PAINT_EVENT 6
|
|
#define NS_SCROLLBAR_EVENT 7
|
|
#define NS_INPUT_EVENT 8
|
|
#define NS_KEY_EVENT 9
|
|
#define NS_MOUSE_EVENT 10
|
|
#define NS_SCRIPT_ERROR_EVENT 12
|
|
#define NS_TEXT_EVENT 13
|
|
#define NS_COMPOSITION_EVENT 14
|
|
#define NS_MOUSE_SCROLL_EVENT 16
|
|
#define NS_SCROLLPORT_EVENT 18
|
|
#define NS_MUTATION_EVENT 19 // |nsMutationEvent| in content
|
|
#define NS_ACCESSIBLE_EVENT 20
|
|
#define NS_FORM_EVENT 21
|
|
#define NS_FOCUS_EVENT 22
|
|
#define NS_POPUP_EVENT 23
|
|
#define NS_COMMAND_EVENT 24
|
|
#define NS_SCROLLAREA_EVENT 25
|
|
#define NS_TRANSITION_EVENT 26
|
|
#define NS_ANIMATION_EVENT 27
|
|
|
|
#define NS_UI_EVENT 28
|
|
#define NS_SVG_EVENT 30
|
|
#define NS_SVGZOOM_EVENT 31
|
|
#define NS_SMIL_TIME_EVENT 32
|
|
|
|
#define NS_QUERY_CONTENT_EVENT 33
|
|
|
|
#define NS_DRAG_EVENT 35
|
|
#define NS_NOTIFYPAINT_EVENT 36
|
|
#define NS_SIMPLE_GESTURE_EVENT 37
|
|
#define NS_SELECTION_EVENT 38
|
|
#define NS_CONTENT_COMMAND_EVENT 39
|
|
#define NS_GESTURENOTIFY_EVENT 40
|
|
#define NS_UISTATECHANGE_EVENT 41
|
|
#define NS_MOZTOUCH_EVENT 42
|
|
#define NS_PLUGIN_EVENT 43
|
|
#define NS_TOUCH_EVENT 44
|
|
|
|
// These flags are sort of a mess. They're sort of shared between event
|
|
// listener flags and event flags, but only some of them. You've been
|
|
// warned!
|
|
#define NS_EVENT_FLAG_NONE 0x0000
|
|
#define NS_EVENT_FLAG_TRUSTED 0x0001
|
|
#define NS_EVENT_FLAG_BUBBLE 0x0002
|
|
#define NS_EVENT_FLAG_CAPTURE 0x0004
|
|
#define NS_EVENT_FLAG_STOP_DISPATCH 0x0008
|
|
#define NS_EVENT_FLAG_NO_DEFAULT 0x0010
|
|
#define NS_EVENT_FLAG_CANT_CANCEL 0x0020
|
|
#define NS_EVENT_FLAG_CANT_BUBBLE 0x0040
|
|
#define NS_PRIV_EVENT_FLAG_SCRIPT 0x0080
|
|
#define NS_EVENT_FLAG_NO_CONTENT_DISPATCH 0x0100
|
|
#define NS_EVENT_FLAG_SYSTEM_EVENT 0x0200
|
|
// Event has been dispatched at least once
|
|
#define NS_EVENT_DISPATCHED 0x0400
|
|
#define NS_EVENT_FLAG_DISPATCHING 0x0800
|
|
// When an event is synthesized for testing, this flag will be set.
|
|
// Note that this is currently used only with mouse events, because this
|
|
// flag is not needed on other events now. It could be added to other
|
|
// events.
|
|
#define NS_EVENT_FLAG_SYNTHETIC_TEST_EVENT 0x1000
|
|
|
|
// Use this flag if the event should be dispatched only to chrome.
|
|
#define NS_EVENT_FLAG_ONLY_CHROME_DISPATCH 0x2000
|
|
|
|
// A flag for drag&drop handling.
|
|
#define NS_EVENT_FLAG_NO_DEFAULT_CALLED_IN_CONTENT 0x4000
|
|
|
|
#define NS_PRIV_EVENT_UNTRUSTED_PERMITTED 0x8000
|
|
|
|
#define NS_EVENT_FLAG_EXCEPTION_THROWN 0x10000
|
|
|
|
#define NS_EVENT_FLAG_PREVENT_MULTIPLE_ACTIONS 0x20000
|
|
|
|
#define NS_EVENT_RETARGET_TO_NON_NATIVE_ANONYMOUS 0x40000
|
|
|
|
#define NS_EVENT_FLAG_STOP_DISPATCH_IMMEDIATELY 0x80000
|
|
|
|
#define NS_EVENT_CAPTURE_MASK (~(NS_EVENT_FLAG_BUBBLE | NS_EVENT_FLAG_NO_CONTENT_DISPATCH))
|
|
#define NS_EVENT_BUBBLE_MASK (~(NS_EVENT_FLAG_CAPTURE | NS_EVENT_FLAG_NO_CONTENT_DISPATCH))
|
|
|
|
#define NS_EVENT_TYPE_NULL 0
|
|
|
|
/**
|
|
* GUI MESSAGES
|
|
*/
|
|
//@{
|
|
#define NS_EVENT_NULL 0
|
|
|
|
|
|
#define NS_WINDOW_START 100
|
|
|
|
// Widget is being created
|
|
#define NS_CREATE (NS_WINDOW_START)
|
|
// Widget may be destroyed
|
|
#define NS_XUL_CLOSE (NS_WINDOW_START + 1)
|
|
// Widget is being destroyed
|
|
#define NS_DESTROY (NS_WINDOW_START + 2)
|
|
// Widget was resized
|
|
#define NS_SIZE (NS_WINDOW_START + 3)
|
|
// Widget size mode was changed
|
|
#define NS_SIZEMODE (NS_WINDOW_START + 4)
|
|
// Widget got activated
|
|
#define NS_ACTIVATE (NS_WINDOW_START + 7)
|
|
// Widget got deactivated
|
|
#define NS_DEACTIVATE (NS_WINDOW_START + 8)
|
|
// top-level window z-level change request
|
|
#define NS_SETZLEVEL (NS_WINDOW_START + 9)
|
|
// Widget was repainted (dispatched when it's safe to move widgets, but
|
|
// only on some platforms (including GTK2 and Windows))
|
|
#define NS_DID_PAINT (NS_WINDOW_START + 28)
|
|
// Widget will need to be painted
|
|
#define NS_WILL_PAINT (NS_WINDOW_START + 29)
|
|
// Widget needs to be repainted
|
|
#define NS_PAINT (NS_WINDOW_START + 30)
|
|
// Key is pressed within a window
|
|
#define NS_KEY_PRESS (NS_WINDOW_START + 31)
|
|
// Key is released within a window
|
|
#define NS_KEY_UP (NS_WINDOW_START + 32)
|
|
// Key is pressed within a window
|
|
#define NS_KEY_DOWN (NS_WINDOW_START + 33)
|
|
// Window has been moved to a new location.
|
|
// The events point contains the x, y location in screen coordinates
|
|
#define NS_MOVE (NS_WINDOW_START + 34)
|
|
|
|
// Tab control's selected tab has changed
|
|
#define NS_TABCHANGE (NS_WINDOW_START + 35)
|
|
|
|
#define NS_OS_TOOLBAR (NS_WINDOW_START + 36)
|
|
|
|
// Indicates the display has changed depth
|
|
#define NS_DISPLAYCHANGED (NS_WINDOW_START + 40)
|
|
|
|
// Indicates a theme change has occurred
|
|
#define NS_THEMECHANGED (NS_WINDOW_START + 41)
|
|
|
|
// Indicates a System color has changed. It is the platform
|
|
// toolkits responsibility to invalidate the window to
|
|
// ensure that it is drawn using the current system colors.
|
|
#define NS_SYSCOLORCHANGED (NS_WINDOW_START + 42)
|
|
|
|
// Indicates that the ui state such as whether to show focus or
|
|
// keyboard accelerator indicators has changed.
|
|
#define NS_UISTATECHANGED (NS_WINDOW_START + 43)
|
|
|
|
// Done sizing or moving a window, so ensure that the mousedown state was cleared.
|
|
#define NS_DONESIZEMOVE (NS_WINDOW_START + 44)
|
|
|
|
#define NS_RESIZE_EVENT (NS_WINDOW_START + 60)
|
|
#define NS_SCROLL_EVENT (NS_WINDOW_START + 61)
|
|
|
|
// A plugin was clicked or otherwise focused. NS_PLUGIN_ACTIVATE should be
|
|
// used when the window is not active. NS_PLUGIN_FOCUS should be used when
|
|
// the window is active. In the latter case, the dispatcher of the event
|
|
// is expected to ensure that the plugin's widget is focused beforehand.
|
|
#define NS_PLUGIN_ACTIVATE (NS_WINDOW_START + 62)
|
|
#define NS_PLUGIN_FOCUS (NS_WINDOW_START + 63)
|
|
|
|
#define NS_OFFLINE (NS_WINDOW_START + 64)
|
|
#define NS_ONLINE (NS_WINDOW_START + 65)
|
|
|
|
// Indicates a resize will occur
|
|
#define NS_BEFORERESIZE_EVENT (NS_WINDOW_START + 66)
|
|
|
|
#define NS_MOUSE_MESSAGE_START 300
|
|
#define NS_MOUSE_MOVE (NS_MOUSE_MESSAGE_START)
|
|
#define NS_MOUSE_BUTTON_UP (NS_MOUSE_MESSAGE_START + 1)
|
|
#define NS_MOUSE_BUTTON_DOWN (NS_MOUSE_MESSAGE_START + 2)
|
|
#define NS_MOUSE_ENTER (NS_MOUSE_MESSAGE_START + 22)
|
|
#define NS_MOUSE_EXIT (NS_MOUSE_MESSAGE_START + 23)
|
|
#define NS_MOUSE_DOUBLECLICK (NS_MOUSE_MESSAGE_START + 24)
|
|
#define NS_MOUSE_CLICK (NS_MOUSE_MESSAGE_START + 27)
|
|
#define NS_MOUSE_ACTIVATE (NS_MOUSE_MESSAGE_START + 30)
|
|
#define NS_MOUSE_ENTER_SYNTH (NS_MOUSE_MESSAGE_START + 31)
|
|
#define NS_MOUSE_EXIT_SYNTH (NS_MOUSE_MESSAGE_START + 32)
|
|
#define NS_MOUSE_MOZHITTEST (NS_MOUSE_MESSAGE_START + 33)
|
|
#define NS_MOUSEENTER (NS_MOUSE_MESSAGE_START + 34)
|
|
#define NS_MOUSELEAVE (NS_MOUSE_MESSAGE_START + 35)
|
|
|
|
#define NS_CONTEXTMENU_MESSAGE_START 500
|
|
#define NS_CONTEXTMENU (NS_CONTEXTMENU_MESSAGE_START)
|
|
|
|
#define NS_SCROLLBAR_MESSAGE_START 1000
|
|
#define NS_SCROLLBAR_POS (NS_SCROLLBAR_MESSAGE_START)
|
|
#define NS_SCROLLBAR_PAGE_NEXT (NS_SCROLLBAR_MESSAGE_START + 1)
|
|
#define NS_SCROLLBAR_PAGE_PREV (NS_SCROLLBAR_MESSAGE_START + 2)
|
|
#define NS_SCROLLBAR_LINE_NEXT (NS_SCROLLBAR_MESSAGE_START + 3)
|
|
#define NS_SCROLLBAR_LINE_PREV (NS_SCROLLBAR_MESSAGE_START + 4)
|
|
|
|
#define NS_STREAM_EVENT_START 1100
|
|
#define NS_LOAD (NS_STREAM_EVENT_START)
|
|
#define NS_PAGE_UNLOAD (NS_STREAM_EVENT_START + 1)
|
|
#define NS_HASHCHANGE (NS_STREAM_EVENT_START + 2)
|
|
#define NS_IMAGE_ABORT (NS_STREAM_EVENT_START + 3)
|
|
#define NS_LOAD_ERROR (NS_STREAM_EVENT_START + 4)
|
|
#define NS_POPSTATE (NS_STREAM_EVENT_START + 5)
|
|
#define NS_BEFORE_PAGE_UNLOAD (NS_STREAM_EVENT_START + 6)
|
|
#define NS_PAGE_RESTORE (NS_STREAM_EVENT_START + 7)
|
|
#define NS_READYSTATECHANGE (NS_STREAM_EVENT_START + 8)
|
|
|
|
#define NS_FORM_EVENT_START 1200
|
|
#define NS_FORM_SUBMIT (NS_FORM_EVENT_START)
|
|
#define NS_FORM_RESET (NS_FORM_EVENT_START + 1)
|
|
#define NS_FORM_CHANGE (NS_FORM_EVENT_START + 2)
|
|
#define NS_FORM_SELECTED (NS_FORM_EVENT_START + 3)
|
|
#define NS_FORM_INPUT (NS_FORM_EVENT_START + 4)
|
|
#define NS_FORM_INVALID (NS_FORM_EVENT_START + 5)
|
|
|
|
//Need separate focus/blur notifications for non-native widgets
|
|
#define NS_FOCUS_EVENT_START 1300
|
|
#define NS_FOCUS_CONTENT (NS_FOCUS_EVENT_START)
|
|
#define NS_BLUR_CONTENT (NS_FOCUS_EVENT_START + 1)
|
|
|
|
#define NS_DRAGDROP_EVENT_START 1400
|
|
#define NS_DRAGDROP_ENTER (NS_DRAGDROP_EVENT_START)
|
|
#define NS_DRAGDROP_OVER (NS_DRAGDROP_EVENT_START + 1)
|
|
#define NS_DRAGDROP_EXIT (NS_DRAGDROP_EVENT_START + 2)
|
|
#define NS_DRAGDROP_DRAGDROP (NS_DRAGDROP_EVENT_START + 3)
|
|
#define NS_DRAGDROP_GESTURE (NS_DRAGDROP_EVENT_START + 4)
|
|
#define NS_DRAGDROP_DRAG (NS_DRAGDROP_EVENT_START + 5)
|
|
#define NS_DRAGDROP_END (NS_DRAGDROP_EVENT_START + 6)
|
|
#define NS_DRAGDROP_START (NS_DRAGDROP_EVENT_START + 7)
|
|
#define NS_DRAGDROP_DROP (NS_DRAGDROP_EVENT_START + 8)
|
|
#define NS_DRAGDROP_OVER_SYNTH (NS_DRAGDROP_EVENT_START + 1)
|
|
#define NS_DRAGDROP_EXIT_SYNTH (NS_DRAGDROP_EVENT_START + 2)
|
|
#define NS_DRAGDROP_LEAVE_SYNTH (NS_DRAGDROP_EVENT_START + 9)
|
|
|
|
// Events for popups
|
|
#define NS_XUL_EVENT_START 1500
|
|
#define NS_XUL_POPUP_SHOWING (NS_XUL_EVENT_START)
|
|
#define NS_XUL_POPUP_SHOWN (NS_XUL_EVENT_START+1)
|
|
#define NS_XUL_POPUP_HIDING (NS_XUL_EVENT_START+2)
|
|
#define NS_XUL_POPUP_HIDDEN (NS_XUL_EVENT_START+3)
|
|
// NS_XUL_COMMAND used to be here (NS_XUL_EVENT_START+4)
|
|
#define NS_XUL_BROADCAST (NS_XUL_EVENT_START+5)
|
|
#define NS_XUL_COMMAND_UPDATE (NS_XUL_EVENT_START+6)
|
|
//@}
|
|
|
|
// Scroll events
|
|
#define NS_MOUSE_SCROLL_START 1600
|
|
#define NS_MOUSE_SCROLL (NS_MOUSE_SCROLL_START)
|
|
#define NS_MOUSE_PIXEL_SCROLL (NS_MOUSE_SCROLL_START + 1)
|
|
|
|
#define NS_SCROLLPORT_START 1700
|
|
#define NS_SCROLLPORT_UNDERFLOW (NS_SCROLLPORT_START)
|
|
#define NS_SCROLLPORT_OVERFLOW (NS_SCROLLPORT_START+1)
|
|
#define NS_SCROLLPORT_OVERFLOWCHANGED (NS_SCROLLPORT_START+2)
|
|
|
|
// Mutation events defined elsewhere starting at 1800
|
|
|
|
// accessible events
|
|
#define NS_ACCESSIBLE_START 1900
|
|
#define NS_GETACCESSIBLE (NS_ACCESSIBLE_START)
|
|
|
|
#define NS_USER_DEFINED_EVENT 2000
|
|
|
|
// composition events
|
|
#define NS_COMPOSITION_EVENT_START 2200
|
|
#define NS_COMPOSITION_START (NS_COMPOSITION_EVENT_START)
|
|
#define NS_COMPOSITION_END (NS_COMPOSITION_EVENT_START + 1)
|
|
#define NS_COMPOSITION_UPDATE (NS_COMPOSITION_EVENT_START + 2)
|
|
|
|
// text events
|
|
#define NS_TEXT_START 2400
|
|
#define NS_TEXT_TEXT (NS_TEXT_START)
|
|
|
|
// UI events
|
|
#define NS_UI_EVENT_START 2500
|
|
// this is not to be confused with NS_ACTIVATE!
|
|
#define NS_UI_ACTIVATE (NS_UI_EVENT_START)
|
|
#define NS_UI_FOCUSIN (NS_UI_EVENT_START + 1)
|
|
#define NS_UI_FOCUSOUT (NS_UI_EVENT_START + 2)
|
|
|
|
// pagetransition events
|
|
#define NS_PAGETRANSITION_START 2700
|
|
#define NS_PAGE_SHOW (NS_PAGETRANSITION_START + 1)
|
|
#define NS_PAGE_HIDE (NS_PAGETRANSITION_START + 2)
|
|
|
|
// SVG events
|
|
#define NS_SVG_EVENT_START 2800
|
|
#define NS_SVG_LOAD (NS_SVG_EVENT_START)
|
|
#define NS_SVG_UNLOAD (NS_SVG_EVENT_START + 1)
|
|
#define NS_SVG_ABORT (NS_SVG_EVENT_START + 2)
|
|
#define NS_SVG_ERROR (NS_SVG_EVENT_START + 3)
|
|
#define NS_SVG_RESIZE (NS_SVG_EVENT_START + 4)
|
|
#define NS_SVG_SCROLL (NS_SVG_EVENT_START + 5)
|
|
|
|
// SVG Zoom events
|
|
#define NS_SVGZOOM_EVENT_START 2900
|
|
#define NS_SVG_ZOOM (NS_SVGZOOM_EVENT_START)
|
|
|
|
// XUL command events
|
|
#define NS_XULCOMMAND_EVENT_START 3000
|
|
#define NS_XUL_COMMAND (NS_XULCOMMAND_EVENT_START)
|
|
|
|
// Cut, copy, paste events
|
|
#define NS_CUTCOPYPASTE_EVENT_START 3100
|
|
#define NS_COPY (NS_CUTCOPYPASTE_EVENT_START)
|
|
#define NS_CUT (NS_CUTCOPYPASTE_EVENT_START + 1)
|
|
#define NS_PASTE (NS_CUTCOPYPASTE_EVENT_START + 2)
|
|
|
|
// Query the content information
|
|
#define NS_QUERY_CONTENT_EVENT_START 3200
|
|
// Query for the selected text information, it return the selection offset,
|
|
// selection length and selected text.
|
|
#define NS_QUERY_SELECTED_TEXT (NS_QUERY_CONTENT_EVENT_START)
|
|
// Query for the text content of specified range, it returns actual lengh (if
|
|
// the specified range is too long) and the text of the specified range.
|
|
// Returns the entire text if requested length > actual length.
|
|
#define NS_QUERY_TEXT_CONTENT (NS_QUERY_CONTENT_EVENT_START + 1)
|
|
// Query for the caret rect of nth insertion point. The offset of the result is
|
|
// relative position from the top level widget.
|
|
#define NS_QUERY_CARET_RECT (NS_QUERY_CONTENT_EVENT_START + 3)
|
|
// Query for the bounding rect of a range of characters. This works on any
|
|
// valid character range given offset and length. Result is relative to top
|
|
// level widget coordinates
|
|
#define NS_QUERY_TEXT_RECT (NS_QUERY_CONTENT_EVENT_START + 4)
|
|
// Query for the bounding rect of the current focused frame. Result is relative
|
|
// to top level widget coordinates
|
|
#define NS_QUERY_EDITOR_RECT (NS_QUERY_CONTENT_EVENT_START + 5)
|
|
// Query for the current state of the content. The particular members of
|
|
// mReply that are set for each query content event will be valid on success.
|
|
#define NS_QUERY_CONTENT_STATE (NS_QUERY_CONTENT_EVENT_START + 6)
|
|
// Query for the selection in the form of a nsITransferable.
|
|
#define NS_QUERY_SELECTION_AS_TRANSFERABLE (NS_QUERY_CONTENT_EVENT_START + 7)
|
|
// Query for character at a point. This returns the character offset and its
|
|
// rect. The point is specified by nsEvent::refPoint.
|
|
#define NS_QUERY_CHARACTER_AT_POINT (NS_QUERY_CONTENT_EVENT_START + 8)
|
|
// Query if the DOM element under nsEvent::refPoint belongs to our widget
|
|
// or not.
|
|
#define NS_QUERY_DOM_WIDGET_HITTEST (NS_QUERY_CONTENT_EVENT_START + 9)
|
|
// Query for some information about mouse wheel event's target
|
|
// XXX This is used only for supporting high resolution mouse scroll on Windows
|
|
// and it's going to be reimplemented with another approach. At that time,
|
|
// this even is going to be removed. Therefore, DON'T use this event for
|
|
// other purpose.
|
|
#define NS_QUERY_SCROLL_TARGET_INFO (NS_QUERY_CONTENT_EVENT_START + 99)
|
|
|
|
// Video events
|
|
#define NS_MEDIA_EVENT_START 3300
|
|
#define NS_LOADSTART (NS_MEDIA_EVENT_START)
|
|
#define NS_PROGRESS (NS_MEDIA_EVENT_START+1)
|
|
#define NS_SUSPEND (NS_MEDIA_EVENT_START+2)
|
|
#define NS_EMPTIED (NS_MEDIA_EVENT_START+3)
|
|
#define NS_STALLED (NS_MEDIA_EVENT_START+4)
|
|
#define NS_PLAY (NS_MEDIA_EVENT_START+5)
|
|
#define NS_PAUSE (NS_MEDIA_EVENT_START+6)
|
|
#define NS_LOADEDMETADATA (NS_MEDIA_EVENT_START+7)
|
|
#define NS_LOADEDDATA (NS_MEDIA_EVENT_START+8)
|
|
#define NS_WAITING (NS_MEDIA_EVENT_START+9)
|
|
#define NS_PLAYING (NS_MEDIA_EVENT_START+10)
|
|
#define NS_CANPLAY (NS_MEDIA_EVENT_START+11)
|
|
#define NS_CANPLAYTHROUGH (NS_MEDIA_EVENT_START+12)
|
|
#define NS_SEEKING (NS_MEDIA_EVENT_START+13)
|
|
#define NS_SEEKED (NS_MEDIA_EVENT_START+14)
|
|
#define NS_TIMEUPDATE (NS_MEDIA_EVENT_START+15)
|
|
#define NS_ENDED (NS_MEDIA_EVENT_START+16)
|
|
#define NS_RATECHANGE (NS_MEDIA_EVENT_START+17)
|
|
#define NS_DURATIONCHANGE (NS_MEDIA_EVENT_START+18)
|
|
#define NS_VOLUMECHANGE (NS_MEDIA_EVENT_START+19)
|
|
#define NS_MOZAUDIOAVAILABLE (NS_MEDIA_EVENT_START+20)
|
|
|
|
// paint notification events
|
|
#define NS_NOTIFYPAINT_START 3400
|
|
#define NS_AFTERPAINT (NS_NOTIFYPAINT_START)
|
|
|
|
// Simple gesture events
|
|
#define NS_SIMPLE_GESTURE_EVENT_START 3500
|
|
#define NS_SIMPLE_GESTURE_SWIPE (NS_SIMPLE_GESTURE_EVENT_START)
|
|
#define NS_SIMPLE_GESTURE_MAGNIFY_START (NS_SIMPLE_GESTURE_EVENT_START+1)
|
|
#define NS_SIMPLE_GESTURE_MAGNIFY_UPDATE (NS_SIMPLE_GESTURE_EVENT_START+2)
|
|
#define NS_SIMPLE_GESTURE_MAGNIFY (NS_SIMPLE_GESTURE_EVENT_START+3)
|
|
#define NS_SIMPLE_GESTURE_ROTATE_START (NS_SIMPLE_GESTURE_EVENT_START+4)
|
|
#define NS_SIMPLE_GESTURE_ROTATE_UPDATE (NS_SIMPLE_GESTURE_EVENT_START+5)
|
|
#define NS_SIMPLE_GESTURE_ROTATE (NS_SIMPLE_GESTURE_EVENT_START+6)
|
|
#define NS_SIMPLE_GESTURE_TAP (NS_SIMPLE_GESTURE_EVENT_START+7)
|
|
#define NS_SIMPLE_GESTURE_PRESSTAP (NS_SIMPLE_GESTURE_EVENT_START+8)
|
|
|
|
// These are used to send native events to plugins.
|
|
#define NS_PLUGIN_EVENT_START 3600
|
|
#define NS_PLUGIN_INPUT_EVENT (NS_PLUGIN_EVENT_START)
|
|
#define NS_PLUGIN_FOCUS_EVENT (NS_PLUGIN_EVENT_START+1)
|
|
|
|
// Events to manipulate selection (nsSelectionEvent)
|
|
#define NS_SELECTION_EVENT_START 3700
|
|
// Clear any previous selection and set the given range as the selection
|
|
#define NS_SELECTION_SET (NS_SELECTION_EVENT_START)
|
|
|
|
// Events of commands for the contents
|
|
#define NS_CONTENT_COMMAND_EVENT_START 3800
|
|
#define NS_CONTENT_COMMAND_CUT (NS_CONTENT_COMMAND_EVENT_START)
|
|
#define NS_CONTENT_COMMAND_COPY (NS_CONTENT_COMMAND_EVENT_START+1)
|
|
#define NS_CONTENT_COMMAND_PASTE (NS_CONTENT_COMMAND_EVENT_START+2)
|
|
#define NS_CONTENT_COMMAND_DELETE (NS_CONTENT_COMMAND_EVENT_START+3)
|
|
#define NS_CONTENT_COMMAND_UNDO (NS_CONTENT_COMMAND_EVENT_START+4)
|
|
#define NS_CONTENT_COMMAND_REDO (NS_CONTENT_COMMAND_EVENT_START+5)
|
|
#define NS_CONTENT_COMMAND_PASTE_TRANSFERABLE (NS_CONTENT_COMMAND_EVENT_START+6)
|
|
// NS_CONTENT_COMMAND_SCROLL scrolls the nearest scrollable element to the
|
|
// currently focused content or latest DOM selection. This would normally be
|
|
// the same element scrolled by keyboard scroll commands, except that this event
|
|
// will scroll an element scrollable in either direction. I.e., if the nearest
|
|
// scrollable ancestor element can only be scrolled vertically, and horizontal
|
|
// scrolling is requested using this event, no scrolling will occur.
|
|
#define NS_CONTENT_COMMAND_SCROLL (NS_CONTENT_COMMAND_EVENT_START+7)
|
|
|
|
// Event to gesture notification
|
|
#define NS_GESTURENOTIFY_EVENT_START 3900
|
|
|
|
#define NS_ORIENTATION_EVENT 4000
|
|
|
|
#define NS_SCROLLAREA_EVENT_START 4100
|
|
#define NS_SCROLLEDAREACHANGED (NS_SCROLLAREA_EVENT_START)
|
|
|
|
#define NS_TRANSITION_EVENT_START 4200
|
|
#define NS_TRANSITION_END (NS_TRANSITION_EVENT_START)
|
|
|
|
#define NS_ANIMATION_EVENT_START 4250
|
|
#define NS_ANIMATION_START (NS_ANIMATION_EVENT_START)
|
|
#define NS_ANIMATION_END (NS_ANIMATION_EVENT_START + 1)
|
|
#define NS_ANIMATION_ITERATION (NS_ANIMATION_EVENT_START + 2)
|
|
|
|
#define NS_SMIL_TIME_EVENT_START 4300
|
|
#define NS_SMIL_BEGIN (NS_SMIL_TIME_EVENT_START)
|
|
#define NS_SMIL_END (NS_SMIL_TIME_EVENT_START + 1)
|
|
#define NS_SMIL_REPEAT (NS_SMIL_TIME_EVENT_START + 2)
|
|
|
|
#define NS_MOZTOUCH_EVENT_START 4400
|
|
#define NS_MOZTOUCH_DOWN (NS_MOZTOUCH_EVENT_START)
|
|
#define NS_MOZTOUCH_MOVE (NS_MOZTOUCH_EVENT_START+1)
|
|
#define NS_MOZTOUCH_UP (NS_MOZTOUCH_EVENT_START+2)
|
|
|
|
// script notification events
|
|
#define NS_NOTIFYSCRIPT_START 4500
|
|
#define NS_BEFORE_SCRIPT_EXECUTE (NS_NOTIFYSCRIPT_START)
|
|
#define NS_AFTER_SCRIPT_EXECUTE (NS_NOTIFYSCRIPT_START+1)
|
|
|
|
#define NS_PRINT_EVENT_START 4600
|
|
#define NS_BEFOREPRINT (NS_PRINT_EVENT_START)
|
|
#define NS_AFTERPRINT (NS_PRINT_EVENT_START + 1)
|
|
|
|
#define NS_MESSAGE_EVENT_START 4700
|
|
#define NS_MESSAGE (NS_MESSAGE_EVENT_START)
|
|
|
|
// Open and close events
|
|
#define NS_OPENCLOSE_EVENT_START 4800
|
|
#define NS_OPEN (NS_OPENCLOSE_EVENT_START)
|
|
#define NS_CLOSE (NS_OPENCLOSE_EVENT_START+1)
|
|
|
|
// Device motion and orientation
|
|
#define NS_DEVICE_ORIENTATION_START 4900
|
|
#define NS_DEVICE_ORIENTATION (NS_DEVICE_ORIENTATION_START)
|
|
#define NS_DEVICE_MOTION (NS_DEVICE_ORIENTATION_START+1)
|
|
|
|
#define NS_SHOW_EVENT 5000
|
|
|
|
// Fullscreen DOM API
|
|
#define NS_FULL_SCREEN_START 5100
|
|
#define NS_FULLSCREENCHANGE (NS_FULL_SCREEN_START)
|
|
#define NS_FULLSCREENERROR (NS_FULL_SCREEN_START + 1)
|
|
|
|
#define NS_TOUCH_EVENT_START 5200
|
|
#define NS_TOUCH_START (NS_TOUCH_EVENT_START)
|
|
#define NS_TOUCH_MOVE (NS_TOUCH_EVENT_START+1)
|
|
#define NS_TOUCH_END (NS_TOUCH_EVENT_START+2)
|
|
#define NS_TOUCH_ENTER (NS_TOUCH_EVENT_START+3)
|
|
#define NS_TOUCH_LEAVE (NS_TOUCH_EVENT_START+4)
|
|
#define NS_TOUCH_CANCEL (NS_TOUCH_EVENT_START+5)
|
|
|
|
/**
|
|
* Return status for event processors, nsEventStatus, is defined in
|
|
* nsEvent.h.
|
|
*/
|
|
|
|
/**
|
|
* different types of (top-level) window z-level positioning
|
|
*/
|
|
enum nsWindowZ {
|
|
nsWindowZTop = 0, // on top
|
|
nsWindowZBottom, // on bottom
|
|
nsWindowZRelative // just below some specified widget
|
|
};
|
|
|
|
/**
|
|
* General event
|
|
*/
|
|
|
|
class nsEvent
|
|
{
|
|
protected:
|
|
nsEvent(bool isTrusted, PRUint32 msg, PRUint8 structType)
|
|
: eventStructType(structType),
|
|
message(msg),
|
|
refPoint(0, 0),
|
|
time(0),
|
|
flags(isTrusted ? NS_EVENT_FLAG_TRUSTED : NS_EVENT_FLAG_NONE),
|
|
userType(0)
|
|
{
|
|
MOZ_COUNT_CTOR(nsEvent);
|
|
}
|
|
|
|
nsEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
nsEvent(bool isTrusted, PRUint32 msg)
|
|
: eventStructType(NS_EVENT),
|
|
message(msg),
|
|
refPoint(0, 0),
|
|
time(0),
|
|
flags(isTrusted ? NS_EVENT_FLAG_TRUSTED : NS_EVENT_FLAG_NONE),
|
|
userType(0)
|
|
{
|
|
MOZ_COUNT_CTOR(nsEvent);
|
|
}
|
|
|
|
~nsEvent()
|
|
{
|
|
MOZ_COUNT_DTOR(nsEvent);
|
|
}
|
|
|
|
// See event struct types
|
|
PRUint8 eventStructType;
|
|
// See GUI MESSAGES,
|
|
PRUint32 message;
|
|
// Relative to the widget of the event, or if there is no widget then it is
|
|
// in screen coordinates. Not modified by layout code.
|
|
nsIntPoint refPoint;
|
|
// Elapsed time, in milliseconds, from a platform-specific zero time
|
|
// to the time the message was created
|
|
PRUint64 time;
|
|
// Flags to hold event flow stage and capture/bubble cancellation
|
|
// status. This is used also to indicate whether the event is trusted.
|
|
PRUint32 flags;
|
|
// Additional type info for user defined events
|
|
nsCOMPtr<nsIAtom> userType;
|
|
// Event targets, needed by DOM Events
|
|
nsCOMPtr<nsIDOMEventTarget> target;
|
|
nsCOMPtr<nsIDOMEventTarget> currentTarget;
|
|
nsCOMPtr<nsIDOMEventTarget> originalTarget;
|
|
};
|
|
|
|
/**
|
|
* General graphic user interface event
|
|
*/
|
|
|
|
class nsGUIEvent : public nsEvent
|
|
{
|
|
protected:
|
|
nsGUIEvent(bool isTrusted, PRUint32 msg, nsIWidget *w, PRUint8 structType)
|
|
: nsEvent(isTrusted, msg, structType),
|
|
widget(w), pluginEvent(nsnull)
|
|
{
|
|
}
|
|
|
|
nsGUIEvent()
|
|
: pluginEvent(nsnull)
|
|
{
|
|
}
|
|
|
|
public:
|
|
nsGUIEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsEvent(isTrusted, msg, NS_GUI_EVENT),
|
|
widget(w), pluginEvent(nsnull)
|
|
{
|
|
}
|
|
|
|
/// Originator of the event
|
|
nsCOMPtr<nsIWidget> widget;
|
|
|
|
/// Event for NPAPI plugin
|
|
void* pluginEvent;
|
|
};
|
|
|
|
/**
|
|
* Script error event
|
|
*/
|
|
|
|
class nsScriptErrorEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsScriptErrorEvent(bool isTrusted, PRUint32 msg)
|
|
: nsEvent(isTrusted, msg, NS_SCRIPT_ERROR_EVENT),
|
|
lineNr(0), errorMsg(nsnull), fileName(nsnull)
|
|
{
|
|
}
|
|
|
|
PRInt32 lineNr;
|
|
const PRUnichar* errorMsg;
|
|
const PRUnichar* fileName;
|
|
};
|
|
|
|
/**
|
|
* Window resize event
|
|
*/
|
|
|
|
class nsSizeEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsSizeEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_SIZE_EVENT),
|
|
windowSize(nsnull), mWinWidth(0), mWinHeight(0)
|
|
{
|
|
}
|
|
|
|
/// x,y width, height in pixels (client area)
|
|
nsIntRect *windowSize;
|
|
/// width of entire window (in pixels)
|
|
PRInt32 mWinWidth;
|
|
/// height of entire window (in pixels)
|
|
PRInt32 mWinHeight;
|
|
};
|
|
|
|
/**
|
|
* Window size mode event
|
|
*/
|
|
|
|
class nsSizeModeEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsSizeModeEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_SIZEMODE_EVENT),
|
|
mSizeMode(nsSizeMode_Normal)
|
|
{
|
|
}
|
|
|
|
nsSizeMode mSizeMode;
|
|
};
|
|
|
|
/**
|
|
* Window z-level event
|
|
*/
|
|
|
|
class nsZLevelEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsZLevelEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_ZLEVEL_EVENT),
|
|
mPlacement(nsWindowZTop), mReqBelow(nsnull), mActualBelow(nsnull),
|
|
mImmediate(false), mAdjusted(false)
|
|
{
|
|
}
|
|
|
|
nsWindowZ mPlacement;
|
|
nsIWidget *mReqBelow, // widget we request being below, if any
|
|
*mActualBelow; // widget to be below, returned by handler
|
|
bool mImmediate, // handler should make changes immediately
|
|
mAdjusted; // handler changed placement
|
|
};
|
|
|
|
/**
|
|
* Window repaint event
|
|
*/
|
|
|
|
class nsPaintEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsPaintEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_PAINT_EVENT),
|
|
willSendDidPaint(false),
|
|
didSendWillPaint(false)
|
|
{
|
|
}
|
|
|
|
// area that needs repainting
|
|
nsIntRegion region;
|
|
bool willSendDidPaint;
|
|
bool didSendWillPaint;
|
|
};
|
|
|
|
/**
|
|
* Scrollbar event
|
|
*/
|
|
|
|
class nsScrollbarEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsScrollbarEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_SCROLLBAR_EVENT),
|
|
position(0)
|
|
{
|
|
}
|
|
|
|
/// ranges between scrollbar 0 and (maxRange - thumbSize). See nsIScrollbar
|
|
PRUint32 position;
|
|
};
|
|
|
|
class nsScrollPortEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
enum orientType {
|
|
vertical = 0,
|
|
horizontal = 1,
|
|
both = 2
|
|
};
|
|
|
|
nsScrollPortEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_SCROLLPORT_EVENT),
|
|
orient(vertical)
|
|
{
|
|
}
|
|
|
|
orientType orient;
|
|
};
|
|
|
|
class nsScrollAreaEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsScrollAreaEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_SCROLLAREA_EVENT)
|
|
{
|
|
}
|
|
|
|
nsRect mArea;
|
|
};
|
|
|
|
class nsInputEvent : public nsGUIEvent
|
|
{
|
|
protected:
|
|
nsInputEvent(bool isTrusted, PRUint32 msg, nsIWidget *w,
|
|
PRUint8 structType)
|
|
: nsGUIEvent(isTrusted, msg, w, structType),
|
|
isShift(false), isControl(false), isAlt(false), isMeta(false)
|
|
{
|
|
}
|
|
|
|
nsInputEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
nsInputEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_INPUT_EVENT),
|
|
isShift(false), isControl(false), isAlt(false), isMeta(false)
|
|
{
|
|
}
|
|
|
|
/// true indicates the shift key is down
|
|
bool isShift;
|
|
/// true indicates the control key is down
|
|
bool isControl;
|
|
/// true indicates the alt key is down
|
|
bool isAlt;
|
|
/// true indicates the meta key is down (or, on Mac, the Command key)
|
|
bool isMeta;
|
|
};
|
|
|
|
/**
|
|
* Mouse event
|
|
*/
|
|
|
|
class nsMouseEvent_base : public nsInputEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
public:
|
|
|
|
nsMouseEvent_base()
|
|
{
|
|
}
|
|
|
|
nsMouseEvent_base(bool isTrusted, PRUint32 msg, nsIWidget *w, PRUint8 type)
|
|
: nsInputEvent(isTrusted, msg, w, type), button(0), pressure(0)
|
|
, inputSource(nsIDOMMouseEvent::MOZ_SOURCE_MOUSE) {}
|
|
|
|
/// The possible related target
|
|
nsCOMPtr<nsISupports> relatedTarget;
|
|
|
|
PRInt16 button;
|
|
|
|
// Finger or touch pressure of event
|
|
// ranges between 0.0 and 1.0
|
|
float pressure;
|
|
|
|
// Possible values at nsIDOMMouseEvent
|
|
PRUint16 inputSource;
|
|
};
|
|
|
|
class nsMouseEvent : public nsMouseEvent_base
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
public:
|
|
enum buttonType { eLeftButton = 0, eMiddleButton = 1, eRightButton = 2 };
|
|
enum reasonType { eReal, eSynthesized };
|
|
enum contextType { eNormal, eContextMenuKey };
|
|
enum exitType { eChild, eTopLevel };
|
|
|
|
nsMouseEvent()
|
|
{
|
|
}
|
|
|
|
protected:
|
|
nsMouseEvent(bool isTrusted, PRUint32 msg, nsIWidget *w,
|
|
PRUint8 structType, reasonType aReason)
|
|
: nsMouseEvent_base(isTrusted, msg, w, structType),
|
|
acceptActivation(false), ignoreRootScrollFrame(false),
|
|
reason(aReason), context(eNormal), exit(eChild), clickCount(0)
|
|
{
|
|
switch (msg) {
|
|
case NS_MOUSE_MOVE:
|
|
flags |= NS_EVENT_FLAG_CANT_CANCEL;
|
|
break;
|
|
case NS_MOUSEENTER:
|
|
case NS_MOUSELEAVE:
|
|
flags |= (NS_EVENT_FLAG_CANT_CANCEL & NS_EVENT_FLAG_CANT_BUBBLE);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
public:
|
|
|
|
nsMouseEvent(bool isTrusted, PRUint32 msg, nsIWidget *w,
|
|
reasonType aReason, contextType aContext = eNormal)
|
|
: nsMouseEvent_base(isTrusted, msg, w, NS_MOUSE_EVENT),
|
|
acceptActivation(false), ignoreRootScrollFrame(false),
|
|
reason(aReason), context(aContext), exit(eChild), clickCount(0)
|
|
{
|
|
switch (msg) {
|
|
case NS_MOUSE_MOVE:
|
|
flags |= NS_EVENT_FLAG_CANT_CANCEL;
|
|
break;
|
|
case NS_MOUSEENTER:
|
|
case NS_MOUSELEAVE:
|
|
flags |= (NS_EVENT_FLAG_CANT_CANCEL | NS_EVENT_FLAG_CANT_BUBBLE);
|
|
break;
|
|
case NS_CONTEXTMENU:
|
|
button = (context == eNormal) ? eRightButton : eLeftButton;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
#ifdef NS_DEBUG
|
|
~nsMouseEvent() {
|
|
NS_WARN_IF_FALSE(message != NS_CONTEXTMENU ||
|
|
button ==
|
|
((context == eNormal) ? eRightButton : eLeftButton),
|
|
"Wrong button set to NS_CONTEXTMENU event?");
|
|
}
|
|
#endif
|
|
|
|
/// Special return code for MOUSE_ACTIVATE to signal
|
|
/// if the target accepts activation (1), or denies it (0)
|
|
bool acceptActivation;
|
|
// Whether the event should ignore scroll frame bounds
|
|
// during dispatch.
|
|
bool ignoreRootScrollFrame;
|
|
|
|
reasonType reason : 4;
|
|
contextType context : 4;
|
|
exitType exit;
|
|
|
|
/// The number of mouse clicks
|
|
PRUint32 clickCount;
|
|
};
|
|
|
|
/**
|
|
* Drag event
|
|
*/
|
|
|
|
class nsDragEvent : public nsMouseEvent
|
|
{
|
|
public:
|
|
nsDragEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsMouseEvent(isTrusted, msg, w, NS_DRAG_EVENT, eReal),
|
|
userCancelled(false)
|
|
{
|
|
if (msg == NS_DRAGDROP_EXIT_SYNTH ||
|
|
msg == NS_DRAGDROP_LEAVE_SYNTH ||
|
|
msg == NS_DRAGDROP_END) {
|
|
flags |= NS_EVENT_FLAG_CANT_CANCEL;
|
|
}
|
|
}
|
|
|
|
nsCOMPtr<nsIDOMDataTransfer> dataTransfer;
|
|
bool userCancelled;
|
|
};
|
|
|
|
#ifdef ACCESSIBILITY
|
|
/**
|
|
* Accessible event
|
|
*/
|
|
|
|
class nsAccessibleEvent : public nsInputEvent
|
|
{
|
|
public:
|
|
nsAccessibleEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsInputEvent(isTrusted, msg, w, NS_ACCESSIBLE_EVENT),
|
|
mAccessible(nsnull)
|
|
{
|
|
}
|
|
|
|
nsAccessible *mAccessible;
|
|
};
|
|
#endif
|
|
|
|
/**
|
|
* Keyboard event
|
|
*/
|
|
|
|
struct nsAlternativeCharCode {
|
|
nsAlternativeCharCode(PRUint32 aUnshiftedCharCode,
|
|
PRUint32 aShiftedCharCode) :
|
|
mUnshiftedCharCode(aUnshiftedCharCode), mShiftedCharCode(aShiftedCharCode)
|
|
{
|
|
}
|
|
PRUint32 mUnshiftedCharCode;
|
|
PRUint32 mShiftedCharCode;
|
|
};
|
|
|
|
class nsKeyEvent : public nsInputEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
public:
|
|
nsKeyEvent()
|
|
{
|
|
}
|
|
|
|
nsKeyEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsInputEvent(isTrusted, msg, w, NS_KEY_EVENT),
|
|
keyCode(0), charCode(0), isChar(0)
|
|
{
|
|
}
|
|
|
|
/// see NS_VK codes
|
|
PRUint32 keyCode;
|
|
/// OS translated Unicode char
|
|
PRUint32 charCode;
|
|
// OS translated Unicode chars which are used for accesskey and accelkey
|
|
// handling. The handlers will try from first character to last character.
|
|
nsTArray<nsAlternativeCharCode> alternativeCharCodes;
|
|
// indicates whether the event signifies a printable character
|
|
bool isChar;
|
|
};
|
|
|
|
/**
|
|
* IME Related Events
|
|
*/
|
|
|
|
struct nsTextRangeStyle
|
|
{
|
|
enum {
|
|
LINESTYLE_NONE = NS_STYLE_TEXT_DECORATION_STYLE_NONE,
|
|
LINESTYLE_SOLID = NS_STYLE_TEXT_DECORATION_STYLE_SOLID,
|
|
LINESTYLE_DOTTED = NS_STYLE_TEXT_DECORATION_STYLE_DOTTED,
|
|
LINESTYLE_DASHED = NS_STYLE_TEXT_DECORATION_STYLE_DASHED,
|
|
LINESTYLE_DOUBLE = NS_STYLE_TEXT_DECORATION_STYLE_DOUBLE,
|
|
LINESTYLE_WAVY = NS_STYLE_TEXT_DECORATION_STYLE_WAVY
|
|
};
|
|
|
|
enum {
|
|
DEFINED_NONE = 0x00,
|
|
DEFINED_LINESTYLE = 0x01,
|
|
DEFINED_FOREGROUND_COLOR = 0x02,
|
|
DEFINED_BACKGROUND_COLOR = 0x04,
|
|
DEFINED_UNDERLINE_COLOR = 0x08
|
|
};
|
|
|
|
// Initialize all members, because nsTextRange instances may be compared by
|
|
// memcomp.
|
|
nsTextRangeStyle()
|
|
{
|
|
Clear();
|
|
}
|
|
|
|
void Clear()
|
|
{
|
|
mDefinedStyles = DEFINED_NONE;
|
|
mLineStyle = LINESTYLE_NONE;
|
|
mIsBoldLine = false;
|
|
mForegroundColor = mBackgroundColor = mUnderlineColor = NS_RGBA(0, 0, 0, 0);
|
|
}
|
|
|
|
bool IsDefined() const { return mDefinedStyles != DEFINED_NONE; }
|
|
|
|
bool IsLineStyleDefined() const
|
|
{
|
|
return (mDefinedStyles & DEFINED_LINESTYLE) != 0;
|
|
}
|
|
|
|
bool IsForegroundColorDefined() const
|
|
{
|
|
return (mDefinedStyles & DEFINED_FOREGROUND_COLOR) != 0;
|
|
}
|
|
|
|
bool IsBackgroundColorDefined() const
|
|
{
|
|
return (mDefinedStyles & DEFINED_BACKGROUND_COLOR) != 0;
|
|
}
|
|
|
|
bool IsUnderlineColorDefined() const
|
|
{
|
|
return (mDefinedStyles & DEFINED_UNDERLINE_COLOR) != 0;
|
|
}
|
|
|
|
bool IsNoChangeStyle() const
|
|
{
|
|
return !IsForegroundColorDefined() && !IsBackgroundColorDefined() &&
|
|
IsLineStyleDefined() && mLineStyle == LINESTYLE_NONE;
|
|
}
|
|
|
|
bool Equals(const nsTextRangeStyle& aOther)
|
|
{
|
|
if (mDefinedStyles != aOther.mDefinedStyles)
|
|
return false;
|
|
if (IsLineStyleDefined() && (mLineStyle != aOther.mLineStyle ||
|
|
!mIsBoldLine != !aOther.mIsBoldLine))
|
|
return false;
|
|
if (IsForegroundColorDefined() &&
|
|
(mForegroundColor != aOther.mForegroundColor))
|
|
return false;
|
|
if (IsBackgroundColorDefined() &&
|
|
(mBackgroundColor != aOther.mBackgroundColor))
|
|
return false;
|
|
if (IsUnderlineColorDefined() &&
|
|
(mUnderlineColor != aOther.mUnderlineColor))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
bool operator !=(const nsTextRangeStyle &aOther)
|
|
{
|
|
return !Equals(aOther);
|
|
}
|
|
|
|
bool operator ==(const nsTextRangeStyle &aOther)
|
|
{
|
|
return Equals(aOther);
|
|
}
|
|
|
|
PRUint8 mDefinedStyles;
|
|
PRUint8 mLineStyle; // DEFINED_LINESTYLE
|
|
|
|
bool mIsBoldLine; // DEFINED_LINESTYLE
|
|
|
|
nscolor mForegroundColor; // DEFINED_FOREGROUND_COLOR
|
|
nscolor mBackgroundColor; // DEFINED_BACKGROUND_COLOR
|
|
nscolor mUnderlineColor; // DEFINED_UNDERLINE_COLOR
|
|
};
|
|
|
|
struct nsTextRange
|
|
{
|
|
nsTextRange()
|
|
: mStartOffset(0), mEndOffset(0), mRangeType(0)
|
|
{
|
|
}
|
|
|
|
PRUint32 mStartOffset;
|
|
PRUint32 mEndOffset;
|
|
PRUint32 mRangeType;
|
|
|
|
nsTextRangeStyle mRangeStyle;
|
|
};
|
|
|
|
typedef nsTextRange* nsTextRangeArray;
|
|
|
|
class nsTextEvent : public nsInputEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
friend class mozilla::plugins::PPluginInstanceChild;
|
|
|
|
nsTextEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
PRUint32 seqno;
|
|
|
|
public:
|
|
nsTextEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsInputEvent(isTrusted, msg, w, NS_TEXT_EVENT),
|
|
rangeCount(0), rangeArray(nsnull), isChar(false)
|
|
{
|
|
}
|
|
|
|
nsString theText;
|
|
PRUint32 rangeCount;
|
|
// Note that the range array may not specify a caret position; in that
|
|
// case there will be no range of type NS_TEXTRANGE_CARETPOSITION in the
|
|
// array.
|
|
nsTextRangeArray rangeArray;
|
|
bool isChar;
|
|
};
|
|
|
|
class nsCompositionEvent : public nsGUIEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
nsCompositionEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
PRUint32 seqno;
|
|
|
|
public:
|
|
nsCompositionEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_COMPOSITION_EVENT)
|
|
{
|
|
// XXX compositionstart is cancelable in draft of DOM3 Events.
|
|
// However, it doesn't make sense for us, we cannot cancel composition
|
|
// when we send compositionstart event.
|
|
flags |= NS_EVENT_FLAG_CANT_CANCEL;
|
|
}
|
|
|
|
nsString data;
|
|
};
|
|
|
|
/* Mouse Scroll Events: Line Scrolling, Pixel Scrolling and Common Event Flows
|
|
*
|
|
* There are two common event flows:
|
|
* (1) Normal line scrolling:
|
|
* 1. An NS_MOUSE_SCROLL event without kHasPixels is dispatched to Gecko.
|
|
* 2. A DOMMouseScroll event is sent into the DOM.
|
|
* 3. A MozMousePixelScroll event is sent into the DOM.
|
|
* 4. If neither event has been consumed, the default handling of the
|
|
* NS_MOUSE_SCROLL event is executed.
|
|
*
|
|
* (2) Pixel scrolling:
|
|
* 1. An NS_MOUSE_SCROLL event with kHasPixels is dispatched to Gecko.
|
|
* 2. A DOMMouseScroll event is sent into the DOM.
|
|
* 3. No scrolling takes place in the default handler.
|
|
* 4. An NS_MOUSE_PIXEL_SCROLL event is dispatched to Gecko.
|
|
* 5. A MozMousePixelScroll event is sent into the DOM.
|
|
* 6. If neither the NS_MOUSE_PIXELSCROLL event nor the preceding
|
|
* NS_MOUSE_SCROLL event have been consumed, the default handler scrolls.
|
|
* 7. Steps 4.-6. are repeated for every pixel scroll that belongs to
|
|
* the announced line scroll. Once enough pixels have been sent to
|
|
* complete a line, a new NS_MOUSE_SCROLL event is sent (goto step 1.).
|
|
*
|
|
* If a DOMMouseScroll event has been preventDefaulted, the associated
|
|
* following MozMousePixelScroll events are still sent - they just don't result
|
|
* in any scrolling (their default handler isn't executed).
|
|
*
|
|
* How many pixel scrolls make up one line scroll is decided in the widget layer
|
|
* where the NS_MOUSE(_PIXEL)_SCROLL events are created.
|
|
*
|
|
* This event flow model satisfies several requirements:
|
|
* - DOMMouseScroll handlers don't need to be aware of the existence of pixel
|
|
* scrolling.
|
|
* - preventDefault on a DOMMouseScroll event results in no scrolling.
|
|
* - DOMMouseScroll events aren't polluted with a kHasPixels flag.
|
|
* - You can make use of pixel scroll DOM events (MozMousePixelScroll).
|
|
*/
|
|
|
|
class nsMouseScrollEvent : public nsMouseEvent_base
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
nsMouseScrollEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
enum nsMouseScrollFlags {
|
|
kIsFullPage = 1 << 0,
|
|
kIsVertical = 1 << 1,
|
|
kIsHorizontal = 1 << 2,
|
|
kHasPixels = 1 << 3, // Marks line scroll events that are provided as
|
|
// a fallback for pixel scroll events.
|
|
// These scroll events are used by things that can't
|
|
// be scrolled pixel-wise, like trees. You should
|
|
// ignore them when processing pixel scroll events
|
|
// to avoid double-processing the same scroll gesture.
|
|
// When kHasPixels is set, the event is guaranteed to
|
|
// be followed up by an event that contains pixel
|
|
// scrolling information.
|
|
kNoLines = 1 << 4, // Marks pixel scroll events that will not be
|
|
// followed by a line scroll events. EventStateManager
|
|
// will compute the appropriate height/width based on
|
|
// view lineHeight and generate line scroll events
|
|
// as needed.
|
|
kNoDefer = 1 << 5, // For scrollable views, indicates scroll should not
|
|
// occur asynchronously.
|
|
kIsMomentum = 1 << 6, // Marks scroll events that aren't controlled by the
|
|
// user but fire automatically as the result of a
|
|
// "momentum" scroll.
|
|
kAllowSmoothScroll = 1 << 7 // Allow smooth scroll for the pixel scroll
|
|
// event.
|
|
};
|
|
|
|
nsMouseScrollEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsMouseEvent_base(isTrusted, msg, w, NS_MOUSE_SCROLL_EVENT),
|
|
scrollFlags(0), delta(0), scrollOverflow(0)
|
|
{
|
|
}
|
|
|
|
PRInt32 scrollFlags;
|
|
PRInt32 delta;
|
|
PRInt32 scrollOverflow;
|
|
};
|
|
|
|
/*
|
|
* Gesture Notify Event:
|
|
*
|
|
* This event is the first event generated when the user touches
|
|
* the screen with a finger, and it's meant to decide what kind
|
|
* of action we'll use for that touch interaction.
|
|
*
|
|
* The event is dispatched to the layout and based on what is underneath
|
|
* the initial contact point it's then decided if we should pan
|
|
* (finger scrolling) or drag the target element.
|
|
*/
|
|
class nsGestureNotifyEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
enum ePanDirection {
|
|
ePanNone,
|
|
ePanVertical,
|
|
ePanHorizontal,
|
|
ePanBoth
|
|
};
|
|
|
|
ePanDirection panDirection;
|
|
bool displayPanFeedback;
|
|
|
|
nsGestureNotifyEvent(bool aIsTrusted, PRUint32 aMsg, nsIWidget *aWidget):
|
|
nsGUIEvent(aIsTrusted, aMsg, aWidget, NS_GESTURENOTIFY_EVENT),
|
|
panDirection(ePanNone),
|
|
displayPanFeedback(false)
|
|
{
|
|
}
|
|
};
|
|
|
|
class nsQueryContentEvent : public nsGUIEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
nsQueryContentEvent()
|
|
{
|
|
mReply.mContentsRoot = nsnull;
|
|
mReply.mFocusedWidget = nsnull;
|
|
}
|
|
|
|
public:
|
|
nsQueryContentEvent(bool aIsTrusted, PRUint32 aMsg, nsIWidget *aWidget) :
|
|
nsGUIEvent(aIsTrusted, aMsg, aWidget, NS_QUERY_CONTENT_EVENT),
|
|
mSucceeded(false), mWasAsync(false)
|
|
{
|
|
}
|
|
|
|
void InitForQueryTextContent(PRUint32 aOffset, PRUint32 aLength)
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_TEXT_CONTENT,
|
|
"wrong initializer is called");
|
|
mInput.mOffset = aOffset;
|
|
mInput.mLength = aLength;
|
|
}
|
|
|
|
void InitForQueryCaretRect(PRUint32 aOffset)
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_CARET_RECT,
|
|
"wrong initializer is called");
|
|
mInput.mOffset = aOffset;
|
|
}
|
|
|
|
void InitForQueryTextRect(PRUint32 aOffset, PRUint32 aLength)
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_TEXT_RECT,
|
|
"wrong initializer is called");
|
|
mInput.mOffset = aOffset;
|
|
mInput.mLength = aLength;
|
|
}
|
|
|
|
void InitForQueryDOMWidgetHittest(nsIntPoint& aPoint)
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_DOM_WIDGET_HITTEST,
|
|
"wrong initializer is called");
|
|
refPoint = aPoint;
|
|
}
|
|
|
|
void InitForQueryScrollTargetInfo(nsMouseScrollEvent* aEvent)
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_SCROLL_TARGET_INFO,
|
|
"wrong initializer is called");
|
|
mInput.mMouseScrollEvent = aEvent;
|
|
}
|
|
|
|
PRUint32 GetSelectionStart(void) const
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_SELECTED_TEXT,
|
|
"not querying selection");
|
|
return mReply.mOffset + (mReply.mReversed ? mReply.mString.Length() : 0);
|
|
}
|
|
|
|
PRUint32 GetSelectionEnd(void) const
|
|
{
|
|
NS_ASSERTION(message == NS_QUERY_SELECTED_TEXT,
|
|
"not querying selection");
|
|
return mReply.mOffset + (mReply.mReversed ? 0 : mReply.mString.Length());
|
|
}
|
|
|
|
bool mSucceeded;
|
|
bool mWasAsync;
|
|
struct {
|
|
PRUint32 mOffset;
|
|
PRUint32 mLength;
|
|
// used by NS_QUERY_SCROLL_TARGET_INFO
|
|
nsMouseScrollEvent* mMouseScrollEvent;
|
|
} mInput;
|
|
struct {
|
|
void* mContentsRoot;
|
|
PRUint32 mOffset;
|
|
nsString mString;
|
|
nsIntRect mRect; // Finally, the coordinates is system coordinates.
|
|
// The return widget has the caret. This is set at all query events.
|
|
nsIWidget* mFocusedWidget;
|
|
bool mReversed; // true if selection is reversed (end < start)
|
|
bool mHasSelection; // true if the selection exists
|
|
bool mWidgetIsHit; // true if DOM element under mouse belongs to widget
|
|
// used by NS_QUERY_SELECTION_AS_TRANSFERABLE
|
|
nsCOMPtr<nsITransferable> mTransferable;
|
|
// used by NS_QUERY_SCROLL_TARGET_INFO
|
|
PRInt32 mLineHeight;
|
|
PRInt32 mPageWidth;
|
|
PRInt32 mPageHeight;
|
|
// used by NS_QUERY_SCROLL_TARGET_INFO
|
|
// the mouse wheel scrolling amount may be overridden by prefs or
|
|
// overriding system scrolling speed mechanism.
|
|
// If mMouseScrollEvent is a line scroll event, the unit of this value is
|
|
// line. If mMouseScrollEvent is a page scroll event, the unit of this
|
|
// value is page.
|
|
PRInt32 mComputedScrollAmount;
|
|
PRInt32 mComputedScrollAction;
|
|
} mReply;
|
|
|
|
enum {
|
|
NOT_FOUND = PR_UINT32_MAX
|
|
};
|
|
|
|
// values of mComputedScrollAction
|
|
enum {
|
|
SCROLL_ACTION_NONE,
|
|
SCROLL_ACTION_LINE,
|
|
SCROLL_ACTION_PAGE
|
|
};
|
|
};
|
|
|
|
class nsFocusEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsFocusEvent(bool isTrusted, PRUint32 msg)
|
|
: nsEvent(isTrusted, msg, NS_FOCUS_EVENT),
|
|
fromRaise(false),
|
|
isRefocus(false)
|
|
{
|
|
}
|
|
|
|
bool fromRaise;
|
|
bool isRefocus;
|
|
};
|
|
|
|
class nsSelectionEvent : public nsGUIEvent
|
|
{
|
|
private:
|
|
friend class mozilla::dom::PBrowserParent;
|
|
friend class mozilla::dom::PBrowserChild;
|
|
|
|
nsSelectionEvent()
|
|
{
|
|
}
|
|
|
|
public:
|
|
PRUint32 seqno;
|
|
|
|
public:
|
|
nsSelectionEvent(bool aIsTrusted, PRUint32 aMsg, nsIWidget *aWidget) :
|
|
nsGUIEvent(aIsTrusted, aMsg, aWidget, NS_SELECTION_EVENT),
|
|
mExpandToClusterBoundary(true), mSucceeded(false)
|
|
{
|
|
}
|
|
|
|
PRUint32 mOffset; // start offset of selection
|
|
PRUint32 mLength; // length of selection
|
|
bool mReversed; // selection "anchor" should be in front
|
|
bool mExpandToClusterBoundary; // cluster-based or character-based
|
|
bool mSucceeded;
|
|
};
|
|
|
|
class nsContentCommandEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsContentCommandEvent(bool aIsTrusted, PRUint32 aMsg, nsIWidget *aWidget,
|
|
bool aOnlyEnabledCheck = false) :
|
|
nsGUIEvent(aIsTrusted, aMsg, aWidget, NS_CONTENT_COMMAND_EVENT),
|
|
mOnlyEnabledCheck(bool(aOnlyEnabledCheck)),
|
|
mSucceeded(false), mIsEnabled(false)
|
|
{
|
|
}
|
|
|
|
// NS_CONTENT_COMMAND_PASTE_TRANSFERABLE
|
|
nsCOMPtr<nsITransferable> mTransferable; // [in]
|
|
|
|
// NS_CONTENT_COMMAND_SCROLL
|
|
// for mScroll.mUnit
|
|
enum {
|
|
eCmdScrollUnit_Line,
|
|
eCmdScrollUnit_Page,
|
|
eCmdScrollUnit_Whole
|
|
};
|
|
|
|
struct ScrollInfo {
|
|
ScrollInfo() :
|
|
mAmount(0), mUnit(eCmdScrollUnit_Line), mIsHorizontal(false)
|
|
{
|
|
}
|
|
|
|
PRInt32 mAmount; // [in]
|
|
PRUint8 mUnit; // [in]
|
|
bool mIsHorizontal; // [in]
|
|
} mScroll;
|
|
|
|
bool mOnlyEnabledCheck; // [in]
|
|
|
|
bool mSucceeded; // [out]
|
|
bool mIsEnabled; // [out]
|
|
};
|
|
|
|
class nsMozTouchEvent : public nsMouseEvent_base
|
|
{
|
|
public:
|
|
nsMozTouchEvent(bool isTrusted, PRUint32 msg, nsIWidget* w,
|
|
PRUint32 streamIdArg)
|
|
: nsMouseEvent_base(isTrusted, msg, w, NS_MOZTOUCH_EVENT),
|
|
streamId(streamIdArg)
|
|
{
|
|
}
|
|
|
|
PRUint32 streamId;
|
|
};
|
|
|
|
class nsTouchEvent : public nsInputEvent
|
|
{
|
|
public:
|
|
nsTouchEvent(nsTouchEvent *aEvent)
|
|
:nsInputEvent(aEvent->flags & NS_EVENT_FLAG_TRUSTED ? true : false,
|
|
aEvent->message,
|
|
aEvent->widget,
|
|
NS_TOUCH_EVENT)
|
|
{
|
|
touches.AppendElements(aEvent->touches);
|
|
MOZ_COUNT_CTOR(nsTouchEvent);
|
|
}
|
|
nsTouchEvent(bool isTrusted, PRUint32 msg, nsIWidget* w)
|
|
: nsInputEvent(isTrusted, msg, w, NS_TOUCH_EVENT)
|
|
{
|
|
MOZ_COUNT_CTOR(nsTouchEvent);
|
|
}
|
|
~nsTouchEvent()
|
|
{
|
|
MOZ_COUNT_DTOR(nsTouchEvent);
|
|
}
|
|
|
|
nsTArray<nsCOMPtr<nsIDOMTouch> > touches;
|
|
};
|
|
|
|
/**
|
|
* Form event
|
|
*
|
|
* We hold the originating form control for form submit and reset events.
|
|
* originator is a weak pointer (does not hold a strong reference).
|
|
*/
|
|
|
|
class nsFormEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsFormEvent(bool isTrusted, PRUint32 msg)
|
|
: nsEvent(isTrusted, msg, NS_FORM_EVENT),
|
|
originator(nsnull)
|
|
{
|
|
}
|
|
|
|
nsIContent *originator;
|
|
};
|
|
|
|
/**
|
|
* Command event
|
|
*
|
|
* Custom commands for example from the operating system.
|
|
*/
|
|
|
|
class nsCommandEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsCommandEvent(bool isTrusted, nsIAtom* aEventType,
|
|
nsIAtom* aCommand, nsIWidget* w)
|
|
: nsGUIEvent(isTrusted, NS_USER_DEFINED_EVENT, w, NS_COMMAND_EVENT)
|
|
{
|
|
userType = aEventType;
|
|
command = aCommand;
|
|
}
|
|
|
|
nsCOMPtr<nsIAtom> command;
|
|
};
|
|
|
|
/**
|
|
* DOM UIEvent
|
|
*/
|
|
class nsUIEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsUIEvent(bool isTrusted, PRUint32 msg, PRInt32 d)
|
|
: nsEvent(isTrusted, msg, NS_UI_EVENT),
|
|
detail(d)
|
|
{
|
|
}
|
|
|
|
PRInt32 detail;
|
|
};
|
|
|
|
/**
|
|
* Simple gesture event
|
|
*/
|
|
class nsSimpleGestureEvent : public nsMouseEvent_base
|
|
{
|
|
public:
|
|
nsSimpleGestureEvent(bool isTrusted, PRUint32 msg, nsIWidget* w,
|
|
PRUint32 directionArg, PRFloat64 deltaArg)
|
|
: nsMouseEvent_base(isTrusted, msg, w, NS_SIMPLE_GESTURE_EVENT),
|
|
direction(directionArg), delta(deltaArg)
|
|
{
|
|
}
|
|
|
|
nsSimpleGestureEvent(const nsSimpleGestureEvent& other)
|
|
: nsMouseEvent_base((other.flags & NS_EVENT_FLAG_TRUSTED) != 0,
|
|
other.message, other.widget, NS_SIMPLE_GESTURE_EVENT),
|
|
direction(other.direction), delta(other.delta)
|
|
{
|
|
}
|
|
|
|
PRUint32 direction; // See nsIDOMSimpleGestureEvent for values
|
|
PRFloat64 delta; // Delta for magnify and rotate events
|
|
};
|
|
|
|
class nsTransitionEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsTransitionEvent(bool isTrusted, PRUint32 msg,
|
|
const nsString &propertyNameArg, float elapsedTimeArg)
|
|
: nsEvent(isTrusted, msg, NS_TRANSITION_EVENT),
|
|
propertyName(propertyNameArg), elapsedTime(elapsedTimeArg)
|
|
{
|
|
}
|
|
|
|
nsString propertyName;
|
|
float elapsedTime;
|
|
};
|
|
|
|
class nsAnimationEvent : public nsEvent
|
|
{
|
|
public:
|
|
nsAnimationEvent(bool isTrusted, PRUint32 msg,
|
|
const nsString &animationNameArg, float elapsedTimeArg)
|
|
: nsEvent(isTrusted, msg, NS_ANIMATION_EVENT),
|
|
animationName(animationNameArg), elapsedTime(elapsedTimeArg)
|
|
{
|
|
}
|
|
|
|
nsString animationName;
|
|
float elapsedTime;
|
|
};
|
|
|
|
class nsUIStateChangeEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsUIStateChangeEvent(bool isTrusted, PRUint32 msg, nsIWidget* w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_UISTATECHANGE_EVENT),
|
|
showAccelerators(UIStateChangeType_NoChange),
|
|
showFocusRings(UIStateChangeType_NoChange)
|
|
{
|
|
}
|
|
|
|
UIStateChangeType showAccelerators;
|
|
UIStateChangeType showFocusRings;
|
|
};
|
|
|
|
/**
|
|
* Native event pluginEvent for plugins.
|
|
*/
|
|
|
|
class nsPluginEvent : public nsGUIEvent
|
|
{
|
|
public:
|
|
nsPluginEvent(bool isTrusted, PRUint32 msg, nsIWidget *w)
|
|
: nsGUIEvent(isTrusted, msg, w, NS_PLUGIN_EVENT),
|
|
retargetToFocusedDocument(false)
|
|
{
|
|
}
|
|
|
|
// If TRUE, this event needs to be retargeted to focused document.
|
|
// Otherwise, never retargeted.
|
|
// Defaults to false.
|
|
bool retargetToFocusedDocument;
|
|
};
|
|
|
|
/**
|
|
* Event status for D&D Event
|
|
*/
|
|
enum nsDragDropEventStatus {
|
|
/// The event is a enter
|
|
nsDragDropEventStatus_eDragEntered,
|
|
/// The event is exit
|
|
nsDragDropEventStatus_eDragExited,
|
|
/// The event is drop
|
|
nsDragDropEventStatus_eDrop
|
|
};
|
|
|
|
|
|
#define NS_IS_MOUSE_EVENT(evnt) \
|
|
(((evnt)->message == NS_MOUSE_BUTTON_DOWN) || \
|
|
((evnt)->message == NS_MOUSE_BUTTON_UP) || \
|
|
((evnt)->message == NS_MOUSE_CLICK) || \
|
|
((evnt)->message == NS_MOUSE_DOUBLECLICK) || \
|
|
((evnt)->message == NS_MOUSE_ENTER) || \
|
|
((evnt)->message == NS_MOUSE_EXIT) || \
|
|
((evnt)->message == NS_MOUSE_ACTIVATE) || \
|
|
((evnt)->message == NS_MOUSE_ENTER_SYNTH) || \
|
|
((evnt)->message == NS_MOUSE_EXIT_SYNTH) || \
|
|
((evnt)->message == NS_MOUSE_MOZHITTEST) || \
|
|
((evnt)->message == NS_MOUSE_MOVE))
|
|
|
|
#define NS_IS_MOUSE_EVENT_STRUCT(evnt) \
|
|
((evnt)->eventStructType == NS_MOUSE_EVENT || \
|
|
(evnt)->eventStructType == NS_DRAG_EVENT)
|
|
|
|
#define NS_IS_MOUSE_LEFT_CLICK(evnt) \
|
|
((evnt)->eventStructType == NS_MOUSE_EVENT && \
|
|
(evnt)->message == NS_MOUSE_CLICK && \
|
|
static_cast<nsMouseEvent*>((evnt))->button == nsMouseEvent::eLeftButton)
|
|
|
|
#define NS_IS_CONTEXT_MENU_KEY(evnt) \
|
|
((evnt)->eventStructType == NS_MOUSE_EVENT && \
|
|
(evnt)->message == NS_CONTEXTMENU && \
|
|
static_cast<nsMouseEvent*>((evnt))->context == nsMouseEvent::eContextMenuKey)
|
|
|
|
#define NS_IS_DRAG_EVENT(evnt) \
|
|
(((evnt)->message == NS_DRAGDROP_ENTER) || \
|
|
((evnt)->message == NS_DRAGDROP_OVER) || \
|
|
((evnt)->message == NS_DRAGDROP_EXIT) || \
|
|
((evnt)->message == NS_DRAGDROP_DRAGDROP) || \
|
|
((evnt)->message == NS_DRAGDROP_GESTURE) || \
|
|
((evnt)->message == NS_DRAGDROP_DRAG) || \
|
|
((evnt)->message == NS_DRAGDROP_END) || \
|
|
((evnt)->message == NS_DRAGDROP_START) || \
|
|
((evnt)->message == NS_DRAGDROP_DROP) || \
|
|
((evnt)->message == NS_DRAGDROP_LEAVE_SYNTH))
|
|
|
|
#define NS_IS_KEY_EVENT(evnt) \
|
|
(((evnt)->message == NS_KEY_DOWN) || \
|
|
((evnt)->message == NS_KEY_PRESS) || \
|
|
((evnt)->message == NS_KEY_UP))
|
|
|
|
#define NS_IS_IME_EVENT(evnt) \
|
|
(((evnt)->message == NS_TEXT_TEXT) || \
|
|
((evnt)->message == NS_COMPOSITION_START) || \
|
|
((evnt)->message == NS_COMPOSITION_END) || \
|
|
((evnt)->message == NS_COMPOSITION_UPDATE))
|
|
|
|
#define NS_IS_ACTIVATION_EVENT(evnt) \
|
|
(((evnt)->message == NS_ACTIVATE) || \
|
|
((evnt)->message == NS_DEACTIVATE) || \
|
|
((evnt)->message == NS_PLUGIN_ACTIVATE) || \
|
|
((evnt)->message == NS_PLUGIN_FOCUS))
|
|
|
|
#define NS_IS_QUERY_CONTENT_EVENT(evnt) \
|
|
((evnt)->eventStructType == NS_QUERY_CONTENT_EVENT)
|
|
|
|
#define NS_IS_SELECTION_EVENT(evnt) \
|
|
(((evnt)->message == NS_SELECTION_SET))
|
|
|
|
#define NS_IS_CONTENT_COMMAND_EVENT(evnt) \
|
|
((evnt)->eventStructType == NS_CONTENT_COMMAND_EVENT)
|
|
|
|
#define NS_IS_PLUGIN_EVENT(evnt) \
|
|
(((evnt)->message == NS_PLUGIN_INPUT_EVENT) || \
|
|
((evnt)->message == NS_PLUGIN_FOCUS_EVENT))
|
|
|
|
#define NS_IS_RETARGETED_PLUGIN_EVENT(evnt) \
|
|
(NS_IS_PLUGIN_EVENT(evnt) && \
|
|
(static_cast<nsPluginEvent*>(evnt)->retargetToFocusedDocument))
|
|
|
|
#define NS_IS_NON_RETARGETED_PLUGIN_EVENT(evnt) \
|
|
(NS_IS_PLUGIN_EVENT(evnt) && \
|
|
!(static_cast<nsPluginEvent*>(evnt)->retargetToFocusedDocument))
|
|
|
|
#define NS_IS_TRUSTED_EVENT(event) \
|
|
(((event)->flags & NS_EVENT_FLAG_TRUSTED) != 0)
|
|
|
|
// Mark an event as being dispatching.
|
|
#define NS_MARK_EVENT_DISPATCH_STARTED(event) \
|
|
(event)->flags |= NS_EVENT_FLAG_DISPATCHING;
|
|
|
|
#define NS_IS_EVENT_IN_DISPATCH(event) \
|
|
(((event)->flags & NS_EVENT_FLAG_DISPATCHING) != 0)
|
|
|
|
// Mark an event as being done dispatching.
|
|
#define NS_MARK_EVENT_DISPATCH_DONE(event) \
|
|
NS_ASSERTION(NS_IS_EVENT_IN_DISPATCH(event), \
|
|
"Event never got marked for dispatch!"); \
|
|
(event)->flags &= ~NS_EVENT_FLAG_DISPATCHING; \
|
|
(event)->flags |= NS_EVENT_DISPATCHED;
|
|
|
|
// Be aware the query content events and the selection events are a part of IME
|
|
// processing. So, you shouldn't use NS_IS_IME_EVENT macro directly in most
|
|
// cases, you should use NS_IS_IME_RELATED_EVENT instead.
|
|
#define NS_IS_IME_RELATED_EVENT(evnt) \
|
|
(NS_IS_IME_EVENT(evnt) || \
|
|
(NS_IS_QUERY_CONTENT_EVENT(evnt) && \
|
|
evnt->message != NS_QUERY_SCROLL_TARGET_INFO) || \
|
|
NS_IS_SELECTION_EVENT(evnt))
|
|
|
|
/*
|
|
* Virtual key bindings for keyboard events.
|
|
* These come from nsIDOMKeyEvent.h, which is generated from MouseKeyEvent.idl.
|
|
* Really, it would be better if we phased out the NS_VK symbols altogether
|
|
* in favor of the DOM ones, but at least this way they'll be in sync.
|
|
*/
|
|
|
|
#define NS_VK_CANCEL nsIDOMKeyEvent::DOM_VK_CANCEL
|
|
#define NS_VK_HELP nsIDOMKeyEvent::DOM_VK_HELP
|
|
#define NS_VK_BACK nsIDOMKeyEvent::DOM_VK_BACK_SPACE
|
|
#define NS_VK_TAB nsIDOMKeyEvent::DOM_VK_TAB
|
|
#define NS_VK_CLEAR nsIDOMKeyEvent::DOM_VK_CLEAR
|
|
#define NS_VK_RETURN nsIDOMKeyEvent::DOM_VK_RETURN
|
|
#define NS_VK_ENTER nsIDOMKeyEvent::DOM_VK_ENTER
|
|
#define NS_VK_SHIFT nsIDOMKeyEvent::DOM_VK_SHIFT
|
|
#define NS_VK_CONTROL nsIDOMKeyEvent::DOM_VK_CONTROL
|
|
#define NS_VK_ALT nsIDOMKeyEvent::DOM_VK_ALT
|
|
#define NS_VK_PAUSE nsIDOMKeyEvent::DOM_VK_PAUSE
|
|
#define NS_VK_CAPS_LOCK nsIDOMKeyEvent::DOM_VK_CAPS_LOCK
|
|
#define NS_VK_KANA nsIDOMKeyEvent::DOM_VK_KANA
|
|
#define NS_VK_HANGUL nsIDOMKeyEvent::DOM_VK_HANGUL
|
|
#define NS_VK_JUNJA nsIDOMKeyEvent::DOM_VK_JUNJA
|
|
#define NS_VK_FINAL nsIDOMKeyEvent::DOM_VK_FINAL
|
|
#define NS_VK_HANJA nsIDOMKeyEvent::DOM_VK_HANJA
|
|
#define NS_VK_KANJI nsIDOMKeyEvent::DOM_VK_KANJI
|
|
#define NS_VK_ESCAPE nsIDOMKeyEvent::DOM_VK_ESCAPE
|
|
#define NS_VK_CONVERT nsIDOMKeyEvent::DOM_VK_CONVERT
|
|
#define NS_VK_NONCONVERT nsIDOMKeyEvent::DOM_VK_NONCONVERT
|
|
#define NS_VK_ACCEPT nsIDOMKeyEvent::DOM_VK_ACCEPT
|
|
#define NS_VK_MODECHANGE nsIDOMKeyEvent::DOM_VK_MODECHANGE
|
|
#define NS_VK_SPACE nsIDOMKeyEvent::DOM_VK_SPACE
|
|
#define NS_VK_PAGE_UP nsIDOMKeyEvent::DOM_VK_PAGE_UP
|
|
#define NS_VK_PAGE_DOWN nsIDOMKeyEvent::DOM_VK_PAGE_DOWN
|
|
#define NS_VK_END nsIDOMKeyEvent::DOM_VK_END
|
|
#define NS_VK_HOME nsIDOMKeyEvent::DOM_VK_HOME
|
|
#define NS_VK_LEFT nsIDOMKeyEvent::DOM_VK_LEFT
|
|
#define NS_VK_UP nsIDOMKeyEvent::DOM_VK_UP
|
|
#define NS_VK_RIGHT nsIDOMKeyEvent::DOM_VK_RIGHT
|
|
#define NS_VK_DOWN nsIDOMKeyEvent::DOM_VK_DOWN
|
|
#define NS_VK_SELECT nsIDOMKeyEvent::DOM_VK_SELECT
|
|
#define NS_VK_PRINT nsIDOMKeyEvent::DOM_VK_PRINT
|
|
#define NS_VK_EXECUTE nsIDOMKeyEvent::DOM_VK_EXECUTE
|
|
#define NS_VK_PRINTSCREEN nsIDOMKeyEvent::DOM_VK_PRINTSCREEN
|
|
#define NS_VK_INSERT nsIDOMKeyEvent::DOM_VK_INSERT
|
|
#define NS_VK_DELETE nsIDOMKeyEvent::DOM_VK_DELETE
|
|
|
|
// NS_VK_0 - NS_VK_9 match their ascii values
|
|
#define NS_VK_0 nsIDOMKeyEvent::DOM_VK_0
|
|
#define NS_VK_1 nsIDOMKeyEvent::DOM_VK_1
|
|
#define NS_VK_2 nsIDOMKeyEvent::DOM_VK_2
|
|
#define NS_VK_3 nsIDOMKeyEvent::DOM_VK_3
|
|
#define NS_VK_4 nsIDOMKeyEvent::DOM_VK_4
|
|
#define NS_VK_5 nsIDOMKeyEvent::DOM_VK_5
|
|
#define NS_VK_6 nsIDOMKeyEvent::DOM_VK_6
|
|
#define NS_VK_7 nsIDOMKeyEvent::DOM_VK_7
|
|
#define NS_VK_8 nsIDOMKeyEvent::DOM_VK_8
|
|
#define NS_VK_9 nsIDOMKeyEvent::DOM_VK_9
|
|
|
|
#define NS_VK_SEMICOLON nsIDOMKeyEvent::DOM_VK_SEMICOLON
|
|
#define NS_VK_EQUALS nsIDOMKeyEvent::DOM_VK_EQUALS
|
|
|
|
// NS_VK_A - NS_VK_Z match their ascii values
|
|
#define NS_VK_A nsIDOMKeyEvent::DOM_VK_A
|
|
#define NS_VK_B nsIDOMKeyEvent::DOM_VK_B
|
|
#define NS_VK_C nsIDOMKeyEvent::DOM_VK_C
|
|
#define NS_VK_D nsIDOMKeyEvent::DOM_VK_D
|
|
#define NS_VK_E nsIDOMKeyEvent::DOM_VK_E
|
|
#define NS_VK_F nsIDOMKeyEvent::DOM_VK_F
|
|
#define NS_VK_G nsIDOMKeyEvent::DOM_VK_G
|
|
#define NS_VK_H nsIDOMKeyEvent::DOM_VK_H
|
|
#define NS_VK_I nsIDOMKeyEvent::DOM_VK_I
|
|
#define NS_VK_J nsIDOMKeyEvent::DOM_VK_J
|
|
#define NS_VK_K nsIDOMKeyEvent::DOM_VK_K
|
|
#define NS_VK_L nsIDOMKeyEvent::DOM_VK_L
|
|
#define NS_VK_M nsIDOMKeyEvent::DOM_VK_M
|
|
#define NS_VK_N nsIDOMKeyEvent::DOM_VK_N
|
|
#define NS_VK_O nsIDOMKeyEvent::DOM_VK_O
|
|
#define NS_VK_P nsIDOMKeyEvent::DOM_VK_P
|
|
#define NS_VK_Q nsIDOMKeyEvent::DOM_VK_Q
|
|
#define NS_VK_R nsIDOMKeyEvent::DOM_VK_R
|
|
#define NS_VK_S nsIDOMKeyEvent::DOM_VK_S
|
|
#define NS_VK_T nsIDOMKeyEvent::DOM_VK_T
|
|
#define NS_VK_U nsIDOMKeyEvent::DOM_VK_U
|
|
#define NS_VK_V nsIDOMKeyEvent::DOM_VK_V
|
|
#define NS_VK_W nsIDOMKeyEvent::DOM_VK_W
|
|
#define NS_VK_X nsIDOMKeyEvent::DOM_VK_X
|
|
#define NS_VK_Y nsIDOMKeyEvent::DOM_VK_Y
|
|
#define NS_VK_Z nsIDOMKeyEvent::DOM_VK_Z
|
|
|
|
#define NS_VK_CONTEXT_MENU nsIDOMKeyEvent::DOM_VK_CONTEXT_MENU
|
|
#define NS_VK_SLEEP nsIDOMKeyEvent::DOM_VK_SLEEP
|
|
|
|
#define NS_VK_NUMPAD0 nsIDOMKeyEvent::DOM_VK_NUMPAD0
|
|
#define NS_VK_NUMPAD1 nsIDOMKeyEvent::DOM_VK_NUMPAD1
|
|
#define NS_VK_NUMPAD2 nsIDOMKeyEvent::DOM_VK_NUMPAD2
|
|
#define NS_VK_NUMPAD3 nsIDOMKeyEvent::DOM_VK_NUMPAD3
|
|
#define NS_VK_NUMPAD4 nsIDOMKeyEvent::DOM_VK_NUMPAD4
|
|
#define NS_VK_NUMPAD5 nsIDOMKeyEvent::DOM_VK_NUMPAD5
|
|
#define NS_VK_NUMPAD6 nsIDOMKeyEvent::DOM_VK_NUMPAD6
|
|
#define NS_VK_NUMPAD7 nsIDOMKeyEvent::DOM_VK_NUMPAD7
|
|
#define NS_VK_NUMPAD8 nsIDOMKeyEvent::DOM_VK_NUMPAD8
|
|
#define NS_VK_NUMPAD9 nsIDOMKeyEvent::DOM_VK_NUMPAD9
|
|
#define NS_VK_MULTIPLY nsIDOMKeyEvent::DOM_VK_MULTIPLY
|
|
#define NS_VK_ADD nsIDOMKeyEvent::DOM_VK_ADD
|
|
#define NS_VK_SEPARATOR nsIDOMKeyEvent::DOM_VK_SEPARATOR
|
|
#define NS_VK_SUBTRACT nsIDOMKeyEvent::DOM_VK_SUBTRACT
|
|
#define NS_VK_DECIMAL nsIDOMKeyEvent::DOM_VK_DECIMAL
|
|
#define NS_VK_DIVIDE nsIDOMKeyEvent::DOM_VK_DIVIDE
|
|
#define NS_VK_F1 nsIDOMKeyEvent::DOM_VK_F1
|
|
#define NS_VK_F2 nsIDOMKeyEvent::DOM_VK_F2
|
|
#define NS_VK_F3 nsIDOMKeyEvent::DOM_VK_F3
|
|
#define NS_VK_F4 nsIDOMKeyEvent::DOM_VK_F4
|
|
#define NS_VK_F5 nsIDOMKeyEvent::DOM_VK_F5
|
|
#define NS_VK_F6 nsIDOMKeyEvent::DOM_VK_F6
|
|
#define NS_VK_F7 nsIDOMKeyEvent::DOM_VK_F7
|
|
#define NS_VK_F8 nsIDOMKeyEvent::DOM_VK_F8
|
|
#define NS_VK_F9 nsIDOMKeyEvent::DOM_VK_F9
|
|
#define NS_VK_F10 nsIDOMKeyEvent::DOM_VK_F10
|
|
#define NS_VK_F11 nsIDOMKeyEvent::DOM_VK_F11
|
|
#define NS_VK_F12 nsIDOMKeyEvent::DOM_VK_F12
|
|
#define NS_VK_F13 nsIDOMKeyEvent::DOM_VK_F13
|
|
#define NS_VK_F14 nsIDOMKeyEvent::DOM_VK_F14
|
|
#define NS_VK_F15 nsIDOMKeyEvent::DOM_VK_F15
|
|
#define NS_VK_F16 nsIDOMKeyEvent::DOM_VK_F16
|
|
#define NS_VK_F17 nsIDOMKeyEvent::DOM_VK_F17
|
|
#define NS_VK_F18 nsIDOMKeyEvent::DOM_VK_F18
|
|
#define NS_VK_F19 nsIDOMKeyEvent::DOM_VK_F19
|
|
#define NS_VK_F20 nsIDOMKeyEvent::DOM_VK_F20
|
|
#define NS_VK_F21 nsIDOMKeyEvent::DOM_VK_F21
|
|
#define NS_VK_F22 nsIDOMKeyEvent::DOM_VK_F22
|
|
#define NS_VK_F23 nsIDOMKeyEvent::DOM_VK_F23
|
|
#define NS_VK_F24 nsIDOMKeyEvent::DOM_VK_F24
|
|
|
|
#define NS_VK_NUM_LOCK nsIDOMKeyEvent::DOM_VK_NUM_LOCK
|
|
#define NS_VK_SCROLL_LOCK nsIDOMKeyEvent::DOM_VK_SCROLL_LOCK
|
|
|
|
#define NS_VK_COMMA nsIDOMKeyEvent::DOM_VK_COMMA
|
|
#define NS_VK_PERIOD nsIDOMKeyEvent::DOM_VK_PERIOD
|
|
#define NS_VK_SLASH nsIDOMKeyEvent::DOM_VK_SLASH
|
|
#define NS_VK_BACK_QUOTE nsIDOMKeyEvent::DOM_VK_BACK_QUOTE
|
|
#define NS_VK_OPEN_BRACKET nsIDOMKeyEvent::DOM_VK_OPEN_BRACKET
|
|
#define NS_VK_BACK_SLASH nsIDOMKeyEvent::DOM_VK_BACK_SLASH
|
|
#define NS_VK_CLOSE_BRACKET nsIDOMKeyEvent::DOM_VK_CLOSE_BRACKET
|
|
#define NS_VK_QUOTE nsIDOMKeyEvent::DOM_VK_QUOTE
|
|
|
|
#define NS_VK_META nsIDOMKeyEvent::DOM_VK_META
|
|
|
|
// IME Constants -- keep in synch with nsIPrivateTextRange.h
|
|
#define NS_TEXTRANGE_CARETPOSITION 0x01
|
|
#define NS_TEXTRANGE_RAWINPUT 0x02
|
|
#define NS_TEXTRANGE_SELECTEDRAWTEXT 0x03
|
|
#define NS_TEXTRANGE_CONVERTEDTEXT 0x04
|
|
#define NS_TEXTRANGE_SELECTEDCONVERTEDTEXT 0x05
|
|
|
|
/**
|
|
* Whether the event should be handled by the frame of the mouse cursor
|
|
* position or not. When it should be handled there (e.g., the mouse events),
|
|
* this returns TRUE.
|
|
*/
|
|
inline bool NS_IsEventUsingCoordinates(nsEvent* aEvent)
|
|
{
|
|
return !NS_IS_KEY_EVENT(aEvent) && !NS_IS_IME_RELATED_EVENT(aEvent) &&
|
|
!NS_IS_CONTEXT_MENU_KEY(aEvent) && !NS_IS_ACTIVATION_EVENT(aEvent) &&
|
|
!NS_IS_PLUGIN_EVENT(aEvent) &&
|
|
!NS_IS_CONTENT_COMMAND_EVENT(aEvent) &&
|
|
aEvent->eventStructType != NS_ACCESSIBLE_EVENT;
|
|
}
|
|
|
|
/**
|
|
* Whether the event should be handled by the focused DOM window in the
|
|
* same top level window's or not. E.g., key events, IME related events
|
|
* (including the query content events, they are used in IME transaction)
|
|
* should be handled by the (last) focused window rather than the dispatched
|
|
* window.
|
|
*
|
|
* NOTE: Even if this returns TRUE, the event isn't going to be handled by the
|
|
* application level active DOM window which is on another top level window.
|
|
* So, when the event is fired on a deactive window, the event is going to be
|
|
* handled by the last focused DOM window in the last focused window.
|
|
*/
|
|
inline bool NS_IsEventTargetedAtFocusedWindow(nsEvent* aEvent)
|
|
{
|
|
return NS_IS_KEY_EVENT(aEvent) || NS_IS_IME_RELATED_EVENT(aEvent) ||
|
|
NS_IS_CONTEXT_MENU_KEY(aEvent) ||
|
|
NS_IS_CONTENT_COMMAND_EVENT(aEvent) ||
|
|
NS_IS_RETARGETED_PLUGIN_EVENT(aEvent);
|
|
}
|
|
|
|
/**
|
|
* Whether the event should be handled by the focused content or not. E.g.,
|
|
* key events, IME related events and other input events which are not handled
|
|
* by the frame of the mouse cursor position.
|
|
*
|
|
* NOTE: Even if this returns TRUE, the event isn't going to be handled by the
|
|
* application level active DOM window which is on another top level window.
|
|
* So, when the event is fired on a deactive window, the event is going to be
|
|
* handled by the last focused DOM element of the last focused DOM window in
|
|
* the last focused window.
|
|
*/
|
|
inline bool NS_IsEventTargetedAtFocusedContent(nsEvent* aEvent)
|
|
{
|
|
return NS_IS_KEY_EVENT(aEvent) || NS_IS_IME_RELATED_EVENT(aEvent) ||
|
|
NS_IS_CONTEXT_MENU_KEY(aEvent) ||
|
|
NS_IS_RETARGETED_PLUGIN_EVENT(aEvent);
|
|
}
|
|
|
|
#endif // nsGUIEvent_h__
|