From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- widget/BasicEvents.h | 1394 +++ widget/CommandList.h | 169 + widget/CompositorWidget.cpp | 65 + widget/CompositorWidget.h | 287 + widget/ContentCache.cpp | 1703 ++++ widget/ContentCache.h | 531 ++ widget/ContentEvents.h | 302 + widget/EventClassList.h | 58 + widget/EventForwards.h | 472 + widget/EventMessageList.h | 476 + widget/FontRange.h | 24 + widget/GfxDriverInfo.cpp | 1032 +++ widget/GfxDriverInfo.h | 519 ++ widget/GfxInfoBase.cpp | 1840 ++++ widget/GfxInfoBase.h | 179 + widget/GfxInfoCollector.cpp | 43 + widget/GfxInfoCollector.h | 88 + widget/GfxInfoX11.cpp | 1153 +++ widget/GfxInfoX11.h | 121 + widget/IMEData.cpp | 343 + widget/IMEData.h | 987 ++ widget/IconLoader.cpp | 181 + widget/IconLoader.h | 81 + widget/InProcessCompositorWidget.cpp | 115 + widget/InProcessCompositorWidget.h | 49 + widget/InputData.cpp | 855 ++ widget/InputData.h | 767 ++ widget/LSBUtils.cpp | 67 + widget/LSBUtils.h | 25 + widget/LookAndFeel.h | 602 ++ widget/LookAndFeelTypes.ipdlh | 94 + widget/MediaKeysEventSourceFactory.h | 24 + widget/MiscEvents.h | 142 + widget/MouseEvents.h | 703 ++ widget/NativeKeyToDOMCodeName.h | 821 ++ widget/NativeKeyToDOMKeyName.h | 1288 +++ widget/PluginWidgetProxy.cpp | 173 + widget/PluginWidgetProxy.h | 80 + widget/PrintBackgroundTask.h | 120 + widget/PuppetBidiKeyboard.cpp | 45 + widget/PuppetBidiKeyboard.h | 35 + widget/PuppetWidget.cpp | 1291 +++ widget/PuppetWidget.h | 427 + widget/RemoteLookAndFeel.cpp | 265 + widget/RemoteLookAndFeel.h | 71 + widget/Screen.cpp | 123 + widget/Screen.h | 54 + widget/ScreenManager.cpp | 245 + widget/ScreenManager.h | 61 + widget/ScrollbarDrawingMac.cpp | 327 + widget/ScrollbarDrawingMac.h | 53 + widget/SharedWidgetUtils.cpp | 273 + widget/SystemTimeConverter.h | 235 + widget/TextEventDispatcher.cpp | 925 ++ widget/TextEventDispatcher.h | 534 ++ widget/TextEventDispatcherListener.h | 95 + widget/TextEvents.h | 1390 +++ widget/TextRange.h | 287 + widget/ThemeChangeKind.h | 35 + widget/TouchEvents.h | 194 + widget/TouchResampler.cpp | 381 + widget/TouchResampler.h | 191 + widget/VsyncDispatcher.cpp | 196 + widget/VsyncDispatcher.h | 111 + widget/WidgetEventImpl.cpp | 1862 ++++ widget/WidgetMessageUtils.h | 60 + widget/WidgetTraceEvent.h | 27 + widget/WidgetUtils.cpp | 149 + widget/WidgetUtils.h | 101 + widget/WindowSurface.h | 38 + widget/WindowSurfaceX11SHM.cpp | 27 + widget/WindowSurfaceX11SHM.h | 36 + widget/android/AndroidAlerts.cpp | 146 + widget/android/AndroidAlerts.h | 47 + widget/android/AndroidBridge.cpp | 741 ++ widget/android/AndroidBridge.h | 362 + widget/android/AndroidBridgeUtilities.h | 19 + widget/android/AndroidColors.h | 28 + widget/android/AndroidCompositorWidget.cpp | 30 + widget/android/AndroidCompositorWidget.h | 40 + widget/android/AndroidContentController.cpp | 68 + widget/android/AndroidContentController.h | 51 + widget/android/AndroidUiThread.cpp | 342 + widget/android/AndroidUiThread.h | 25 + widget/android/AndroidView.h | 35 + widget/android/AndroidVsync.cpp | 140 + widget/android/AndroidVsync.h | 75 + widget/android/Base64UtilsSupport.h | 52 + widget/android/EventDispatcher.cpp | 1026 +++ widget/android/EventDispatcher.h | 104 + widget/android/GeckoBatteryManager.h | 28 + widget/android/GeckoEditableSupport.cpp | 1630 ++++ widget/android/GeckoEditableSupport.h | 287 + widget/android/GeckoNetworkManager.h | 45 + widget/android/GeckoProcessManager.cpp | 77 + widget/android/GeckoProcessManager.h | 84 + widget/android/GeckoScreenOrientation.h | 52 + widget/android/GeckoSystemStateListener.h | 31 + widget/android/GeckoTelemetryDelegate.h | 101 + widget/android/GeckoVRManager.h | 24 + widget/android/GeckoViewSupport.h | 109 + widget/android/GfxInfo.cpp | 800 ++ widget/android/GfxInfo.h | 117 + widget/android/ImageDecoderSupport.cpp | 176 + widget/android/ImageDecoderSupport.h | 30 + widget/android/MediaKeysEventSourceFactory.cpp | 17 + widget/android/PrefsHelper.h | 306 + widget/android/ScreenHelperAndroid.cpp | 129 + widget/android/ScreenHelperAndroid.h | 40 + widget/android/Telemetry.h | 86 + widget/android/WebAuthnTokenManager.h | 79 + widget/android/WebExecutorSupport.cpp | 460 + widget/android/WebExecutorSupport.h | 32 + widget/android/WindowEvent.h | 57 + .../bindings/AccessibilityEvent-classes.txt | 3 + widget/android/bindings/AndroidBuild-classes.txt | 5 + .../android/bindings/AndroidGraphics-classes.txt | 10 + .../android/bindings/AndroidInputType-classes.txt | 3 + widget/android/bindings/AndroidRect-classes.txt | 2 + widget/android/bindings/InetAddress-classes.txt | 6 + widget/android/bindings/JavaBuiltins-classes.txt | 25 + widget/android/bindings/JavaExceptions-classes.txt | 5 + widget/android/bindings/KeyEvent-classes.txt | 3 + widget/android/bindings/MediaCodec-classes.txt | 9 + widget/android/bindings/MotionEvent-classes.txt | 3 + widget/android/bindings/SurfaceTexture-classes.txt | 2 + .../android/bindings/ViewConfiguration-classes.txt | 1 + widget/android/bindings/moz.build | 53 + widget/android/components.conf | 114 + widget/android/jni/Accessors.h | 251 + widget/android/jni/Conversions.cpp | 107 + widget/android/jni/Conversions.h | 23 + widget/android/jni/GeckoBundleUtils.h | 41 + widget/android/jni/GeckoResultUtils.h | 54 + widget/android/jni/Natives.h | 1615 ++++ widget/android/jni/Refs.h | 1016 +++ widget/android/jni/Types.h | 160 + widget/android/jni/Utils.cpp | 341 + widget/android/jni/Utils.h | 148 + widget/android/jni/moz.build | 33 + widget/android/moz.build | 198 + widget/android/nsAndroidProtocolHandler.cpp | 140 + widget/android/nsAndroidProtocolHandler.h | 33 + widget/android/nsAppShell.cpp | 781 ++ widget/android/nsAppShell.h | 250 + widget/android/nsClipboard.cpp | 163 + widget/android/nsClipboard.h | 22 + widget/android/nsDeviceContextAndroid.cpp | 79 + widget/android/nsDeviceContextAndroid.h | 33 + widget/android/nsIAndroidBridge.idl | 87 + widget/android/nsLookAndFeel.cpp | 531 ++ widget/android/nsLookAndFeel.h | 49 + widget/android/nsNativeBasicThemeAndroid.cpp | 15 + widget/android/nsNativeBasicThemeAndroid.h | 20 + widget/android/nsNativeThemeAndroid.cpp | 926 ++ widget/android/nsNativeThemeAndroid.h | 66 + widget/android/nsPrintSettingsServiceAndroid.cpp | 33 + widget/android/nsPrintSettingsServiceAndroid.h | 18 + widget/android/nsUserIdleServiceAndroid.cpp | 14 + widget/android/nsUserIdleServiceAndroid.h | 35 + widget/android/nsWidgetFactory.cpp | 21 + widget/android/nsWidgetFactory.h | 22 + widget/android/nsWindow.cpp | 2619 ++++++ widget/android/nsWindow.h | 279 + widget/cocoa/CFTypeRefPtr.h | 194 + widget/cocoa/CustomCocoaEvents.h | 18 + widget/cocoa/DesktopBackgroundImage.h | 19 + widget/cocoa/DesktopBackgroundImage.mm | 68 + widget/cocoa/GfxInfo.h | 102 + widget/cocoa/GfxInfo.mm | 560 ++ widget/cocoa/IconLoaderHelperCocoa.h | 72 + widget/cocoa/IconLoaderHelperCocoa.mm | 141 + widget/cocoa/MediaHardwareKeysEventSourceMac.h | 47 + widget/cocoa/MediaHardwareKeysEventSourceMac.mm | 183 + .../MediaHardwareKeysEventSourceMacMediaCenter.h | 60 + .../MediaHardwareKeysEventSourceMacMediaCenter.mm | 172 + widget/cocoa/MediaKeysEventSourceFactory.cpp | 23 + widget/cocoa/NativeKeyBindings.h | 45 + widget/cocoa/NativeKeyBindings.mm | 261 + widget/cocoa/OSXNotificationCenter.h | 60 + widget/cocoa/OSXNotificationCenter.mm | 572 ++ widget/cocoa/ScreenHelperCocoa.h | 34 + widget/cocoa/ScreenHelperCocoa.mm | 156 + widget/cocoa/SwipeTracker.h | 100 + widget/cocoa/SwipeTracker.mm | 201 + widget/cocoa/TextInputHandler.h | 1287 +++ widget/cocoa/TextInputHandler.mm | 5061 ++++++++++ widget/cocoa/VibrancyManager.h | 96 + widget/cocoa/VibrancyManager.mm | 152 + widget/cocoa/ViewRegion.h | 54 + widget/cocoa/ViewRegion.mm | 66 + widget/cocoa/WidgetTraceEvent.mm | 79 + widget/cocoa/components.conf | 17 + widget/cocoa/crashtests/373122-1-inner.html | 39 + widget/cocoa/crashtests/373122-1.html | 9 + widget/cocoa/crashtests/397209-1.html | 7 + widget/cocoa/crashtests/403296-1.xhtml | 10 + widget/cocoa/crashtests/419737-1.html | 8 + widget/cocoa/crashtests/435223-1.html | 8 + widget/cocoa/crashtests/444260-1.xhtml | 3 + widget/cocoa/crashtests/444864-1.html | 6 + widget/cocoa/crashtests/449111-1.html | 4 + widget/cocoa/crashtests/460349-1.xhtml | 4 + widget/cocoa/crashtests/460387-1.html | 2 + widget/cocoa/crashtests/464589-1.html | 20 + widget/cocoa/crashtests/crashtests.list | 11 + widget/cocoa/cursors/arrowN.png | Bin 0 -> 253 bytes widget/cocoa/cursors/arrowN@2x.png | Bin 0 -> 614 bytes widget/cocoa/cursors/arrowS.png | Bin 0 -> 250 bytes widget/cocoa/cursors/arrowS@2x.png | Bin 0 -> 609 bytes widget/cocoa/cursors/cell.png | Bin 0 -> 264 bytes widget/cocoa/cursors/cell@2x.png | Bin 0 -> 639 bytes widget/cocoa/cursors/colResize.png | Bin 0 -> 320 bytes widget/cocoa/cursors/colResize@2x.png | Bin 0 -> 825 bytes widget/cocoa/cursors/help.png | Bin 0 -> 713 bytes widget/cocoa/cursors/help@2x.png | Bin 0 -> 1679 bytes widget/cocoa/cursors/move.png | Bin 0 -> 281 bytes widget/cocoa/cursors/move@2x.png | Bin 0 -> 619 bytes widget/cocoa/cursors/rowResize.png | Bin 0 -> 329 bytes widget/cocoa/cursors/rowResize@2x.png | Bin 0 -> 843 bytes widget/cocoa/cursors/sizeNE.png | Bin 0 -> 274 bytes widget/cocoa/cursors/sizeNE@2x.png | Bin 0 -> 775 bytes widget/cocoa/cursors/sizeNESW.png | Bin 0 -> 295 bytes widget/cocoa/cursors/sizeNESW@2x.png | Bin 0 -> 948 bytes widget/cocoa/cursors/sizeNS.png | Bin 0 -> 279 bytes widget/cocoa/cursors/sizeNS@2x.png | Bin 0 -> 658 bytes widget/cocoa/cursors/sizeNW.png | Bin 0 -> 274 bytes widget/cocoa/cursors/sizeNW@2x.png | Bin 0 -> 771 bytes widget/cocoa/cursors/sizeNWSE.png | Bin 0 -> 288 bytes widget/cocoa/cursors/sizeNWSE@2x.png | Bin 0 -> 947 bytes widget/cocoa/cursors/sizeSE.png | Bin 0 -> 264 bytes widget/cocoa/cursors/sizeSE@2x.png | Bin 0 -> 783 bytes widget/cocoa/cursors/sizeSW.png | Bin 0 -> 268 bytes widget/cocoa/cursors/sizeSW@2x.png | Bin 0 -> 783 bytes widget/cocoa/cursors/vtIBeam.png | Bin 0 -> 104 bytes widget/cocoa/cursors/vtIBeam@2x.png | Bin 0 -> 331 bytes widget/cocoa/cursors/zoomIn.png | Bin 0 -> 648 bytes widget/cocoa/cursors/zoomIn@2x.png | Bin 0 -> 1702 bytes widget/cocoa/cursors/zoomOut.png | Bin 0 -> 641 bytes widget/cocoa/cursors/zoomOut@2x.png | Bin 0 -> 1693 bytes widget/cocoa/docs/index.md | 11 + widget/cocoa/docs/macos-apis.md | 187 + widget/cocoa/docs/sdks.md | 240 + widget/cocoa/moz.build | 179 + widget/cocoa/mozView.h | 62 + widget/cocoa/nsAppShell.h | 68 + widget/cocoa/nsAppShell.mm | 908 ++ widget/cocoa/nsBidiKeyboard.h | 23 + widget/cocoa/nsBidiKeyboard.mm | 38 + widget/cocoa/nsChangeObserver.h | 53 + widget/cocoa/nsChildView.h | 599 ++ widget/cocoa/nsChildView.mm | 5118 +++++++++++ widget/cocoa/nsClipboard.h | 57 + widget/cocoa/nsClipboard.mm | 768 ++ widget/cocoa/nsCocoaDebugUtils.h | 115 + widget/cocoa/nsCocoaDebugUtils.mm | 236 + widget/cocoa/nsCocoaFeatures.h | 55 + widget/cocoa/nsCocoaFeatures.mm | 196 + widget/cocoa/nsCocoaUtils.h | 492 + widget/cocoa/nsCocoaUtils.mm | 1456 +++ widget/cocoa/nsCocoaWindow.h | 422 + widget/cocoa/nsCocoaWindow.mm | 3994 ++++++++ widget/cocoa/nsColorPicker.h | 44 + widget/cocoa/nsColorPicker.mm | 156 + widget/cocoa/nsCursorManager.h | 68 + widget/cocoa/nsCursorManager.mm | 318 + widget/cocoa/nsDeviceContextSpecX.h | 50 + widget/cocoa/nsDeviceContextSpecX.mm | 303 + widget/cocoa/nsDragService.h | 70 + widget/cocoa/nsDragService.mm | 655 ++ widget/cocoa/nsFilePicker.h | 72 + widget/cocoa/nsFilePicker.mm | 638 ++ widget/cocoa/nsLookAndFeel.h | 93 + widget/cocoa/nsLookAndFeel.mm | 777 ++ widget/cocoa/nsMacCursor.h | 128 + widget/cocoa/nsMacCursor.mm | 367 + widget/cocoa/nsMacDockSupport.h | 35 + widget/cocoa/nsMacDockSupport.mm | 198 + widget/cocoa/nsMacFinderProgress.h | 24 + widget/cocoa/nsMacFinderProgress.mm | 87 + widget/cocoa/nsMacSharingService.h | 22 + widget/cocoa/nsMacSharingService.mm | 202 + widget/cocoa/nsMacWebAppUtils.h | 22 + widget/cocoa/nsMacWebAppUtils.mm | 90 + widget/cocoa/nsMenuBarX.h | 148 + widget/cocoa/nsMenuBarX.mm | 1007 ++ widget/cocoa/nsMenuBaseX.h | 76 + widget/cocoa/nsMenuGroupOwnerX.h | 59 + widget/cocoa/nsMenuGroupOwnerX.mm | 191 + widget/cocoa/nsMenuItemIconX.h | 63 + widget/cocoa/nsMenuItemIconX.mm | 228 + widget/cocoa/nsMenuItemX.h | 82 + widget/cocoa/nsMenuItemX.mm | 360 + widget/cocoa/nsMenuUtilsX.h | 30 + widget/cocoa/nsMenuUtilsX.mm | 217 + widget/cocoa/nsMenuX.h | 98 + widget/cocoa/nsMenuX.mm | 933 ++ widget/cocoa/nsNativeBasicThemeCocoa.cpp | 109 + widget/cocoa/nsNativeBasicThemeCocoa.h | 51 + widget/cocoa/nsNativeThemeCocoa.h | 490 + widget/cocoa/nsNativeThemeCocoa.mm | 3941 ++++++++ widget/cocoa/nsNativeThemeColors.h | 66 + widget/cocoa/nsPIWidgetCocoa.idl | 37 + widget/cocoa/nsPrintDialogX.h | 61 + widget/cocoa/nsPrintDialogX.mm | 546 ++ widget/cocoa/nsPrintSettingsServiceX.h | 33 + widget/cocoa/nsPrintSettingsServiceX.mm | 78 + widget/cocoa/nsPrintSettingsX.h | 102 + widget/cocoa/nsPrintSettingsX.mm | 354 + widget/cocoa/nsSandboxViolationSink.h | 36 + widget/cocoa/nsSandboxViolationSink.mm | 107 + widget/cocoa/nsSound.h | 25 + widget/cocoa/nsSound.mm | 69 + widget/cocoa/nsStandaloneNativeMenu.h | 44 + widget/cocoa/nsStandaloneNativeMenu.mm | 191 + widget/cocoa/nsSystemStatusBarCocoa.h | 38 + widget/cocoa/nsSystemStatusBarCocoa.mm | 72 + widget/cocoa/nsToolkit.h | 49 + widget/cocoa/nsToolkit.mm | 250 + widget/cocoa/nsTouchBar.h | 136 + widget/cocoa/nsTouchBar.mm | 604 ++ widget/cocoa/nsTouchBarInput.h | 90 + widget/cocoa/nsTouchBarInput.mm | 245 + widget/cocoa/nsTouchBarInputIcon.h | 71 + widget/cocoa/nsTouchBarInputIcon.mm | 138 + widget/cocoa/nsTouchBarNativeAPIDefines.h | 80 + widget/cocoa/nsTouchBarUpdater.h | 23 + widget/cocoa/nsTouchBarUpdater.mm | 116 + widget/cocoa/nsUserIdleServiceX.h | 31 + widget/cocoa/nsUserIdleServiceX.mm | 60 + widget/cocoa/nsWidgetFactory.mm | 213 + widget/cocoa/nsWindowMap.h | 60 + widget/cocoa/nsWindowMap.mm | 280 + widget/cocoa/resources/MainMenu.nib/classes.nib | 4 + widget/cocoa/resources/MainMenu.nib/info.nib | 21 + .../cocoa/resources/MainMenu.nib/keyedobjects.nib | Bin 0 -> 1877 bytes widget/crashtests/1128214.html | 19 + widget/crashtests/303901-1.html | 29 + widget/crashtests/303901-2.html | 20 + widget/crashtests/380359-1.xhtml | 8 + widget/crashtests/crashtests.list | 4 + widget/generic/PCompositorWidget.ipdl | 28 + widget/generic/PlatformWidgetTypes.ipdlh | 21 + widget/gtk/CompositorWidgetChild.cpp | 42 + widget/gtk/CompositorWidgetChild.h | 39 + widget/gtk/CompositorWidgetParent.cpp | 44 + widget/gtk/CompositorWidgetParent.h | 38 + widget/gtk/DMABufLibWrapper.cpp | 300 + widget/gtk/DMABufLibWrapper.h | 168 + widget/gtk/DMABufSurface.cpp | 1002 ++ widget/gtk/DMABufSurface.h | 290 + widget/gtk/GRefPtr.h | 32 + widget/gtk/GtkCompositorWidget.cpp | 147 + widget/gtk/GtkCompositorWidget.h | 103 + widget/gtk/IMContextWrapper.cpp | 3169 +++++++ widget/gtk/IMContextWrapper.h | 685 ++ widget/gtk/InProcessGtkCompositorWidget.cpp | 45 + widget/gtk/InProcessGtkCompositorWidget.h | 30 + widget/gtk/MPRISInterfaceDescription.h | 91 + widget/gtk/MPRISServiceHandler.cpp | 851 ++ widget/gtk/MPRISServiceHandler.h | 188 + widget/gtk/MediaKeysEventSourceFactory.cpp | 14 + widget/gtk/MozContainer.cpp | 376 + widget/gtk/MozContainer.h | 90 + widget/gtk/MozContainerWayland.cpp | 514 ++ widget/gtk/MozContainerWayland.h | 83 + widget/gtk/NativeKeyBindings.cpp | 346 + widget/gtk/NativeKeyBindings.h | 44 + widget/gtk/PCompositorWidget.ipdl | 30 + widget/gtk/PlatformWidgetTypes.ipdlh | 31 + widget/gtk/ScreenHelperGTK.cpp | 195 + widget/gtk/ScreenHelperGTK.h | 45 + widget/gtk/TaskbarProgress.cpp | 108 + widget/gtk/TaskbarProgress.h | 33 + widget/gtk/WakeLockListener.cpp | 500 + widget/gtk/WakeLockListener.h | 55 + widget/gtk/WaylandVsyncSource.cpp | 214 + widget/gtk/WaylandVsyncSource.h | 96 + widget/gtk/WidgetStyleCache.cpp | 1464 +++ widget/gtk/WidgetStyleCache.h | 59 + widget/gtk/WidgetTraceEvent.cpp | 68 + widget/gtk/WidgetUtilsGtk.cpp | 52 + widget/gtk/WidgetUtilsGtk.h | 26 + widget/gtk/WindowSurfaceProvider.cpp | 131 + widget/gtk/WindowSurfaceProvider.h | 81 + widget/gtk/WindowSurfaceWayland.cpp | 1116 +++ widget/gtk/WindowSurfaceWayland.h | 269 + widget/gtk/WindowSurfaceX11.cpp | 50 + widget/gtk/WindowSurfaceX11.h | 40 + widget/gtk/WindowSurfaceX11Image.cpp | 263 + widget/gtk/WindowSurfaceX11Image.h | 48 + widget/gtk/WindowSurfaceXRender.cpp | 75 + widget/gtk/WindowSurfaceXRender.h | 37 + widget/gtk/compat-gtk3/gdk/gdkversionmacros.h | 32 + widget/gtk/compat/gdk/gdkdnd.h | 29 + widget/gtk/compat/gdk/gdkkeysyms.h | 266 + widget/gtk/compat/gdk/gdkvisual.h | 15 + widget/gtk/compat/gdk/gdkwindow.h | 27 + widget/gtk/compat/gdk/gdkx.h | 46 + widget/gtk/compat/glib/gmem.h | 48 + widget/gtk/compat/gtk/gtkwidget.h | 43 + widget/gtk/compat/gtk/gtkwindow.h | 26 + widget/gtk/components.conf | 166 + widget/gtk/crashtests/540078-1.xhtml | 1 + widget/gtk/crashtests/673390-1.html | 1 + widget/gtk/crashtests/crashtests.list | 2 + widget/gtk/gtk3drawing.cpp | 3214 +++++++ widget/gtk/gtkdrawing.h | 634 ++ widget/gtk/maiRedundantObjectFactory.c | 81 + widget/gtk/maiRedundantObjectFactory.h | 30 + widget/gtk/moz.build | 178 + widget/gtk/mozgtk/gtk2/moz.build | 40 + widget/gtk/mozgtk/gtk3/moz.build | 38 + widget/gtk/mozgtk/moz.build | 7 + widget/gtk/mozgtk/mozgtk.c | 676 ++ widget/gtk/mozgtk/stub/moz.build | 16 + widget/gtk/mozwayland/moz.build | 16 + widget/gtk/mozwayland/mozwayland.c | 201 + widget/gtk/mozwayland/mozwayland.h | 134 + widget/gtk/nsAppShell.cpp | 253 + widget/gtk/nsAppShell.h | 34 + widget/gtk/nsApplicationChooser.cpp | 131 + widget/gtk/nsApplicationChooser.h | 32 + widget/gtk/nsBidiKeyboard.cpp | 52 + widget/gtk/nsBidiKeyboard.h | 25 + widget/gtk/nsClipboard.cpp | 822 ++ widget/gtk/nsClipboard.h | 90 + widget/gtk/nsClipboardWayland.cpp | 915 ++ widget/gtk/nsClipboardWayland.h | 162 + widget/gtk/nsClipboardX11.cpp | 340 + widget/gtk/nsClipboardX11.h | 73 + widget/gtk/nsColorPicker.cpp | 242 + widget/gtk/nsColorPicker.h | 72 + widget/gtk/nsDeviceContextSpecG.cpp | 341 + widget/gtk/nsDeviceContextSpecG.h | 62 + widget/gtk/nsDragService.cpp | 2122 +++++ widget/gtk/nsDragService.h | 210 + widget/gtk/nsFilePicker.cpp | 646 ++ widget/gtk/nsFilePicker.h | 87 + widget/gtk/nsGTKToolkit.h | 53 + widget/gtk/nsGtkCursors.h | 416 + widget/gtk/nsGtkKeyUtils.cpp | 2377 +++++ widget/gtk/nsGtkKeyUtils.h | 467 + widget/gtk/nsGtkUtils.h | 23 + widget/gtk/nsIImageToPixbuf.h | 38 + widget/gtk/nsImageToPixbuf.cpp | 108 + widget/gtk/nsImageToPixbuf.h | 47 + widget/gtk/nsLookAndFeel.cpp | 1536 ++++ widget/gtk/nsLookAndFeel.h | 131 + widget/gtk/nsNativeBasicThemeGTK.cpp | 125 + widget/gtk/nsNativeBasicThemeGTK.h | 44 + widget/gtk/nsNativeThemeGTK.cpp | 2019 ++++ widget/gtk/nsNativeThemeGTK.h | 116 + widget/gtk/nsPrintDialogGTK.cpp | 1054 +++ widget/gtk/nsPrintDialogGTK.h | 37 + widget/gtk/nsPrintSettingsGTK.cpp | 685 ++ widget/gtk/nsPrintSettingsGTK.h | 145 + widget/gtk/nsPrintSettingsServiceGTK.cpp | 78 + widget/gtk/nsPrintSettingsServiceGTK.h | 33 + widget/gtk/nsSound.cpp | 398 + widget/gtk/nsSound.h | 33 + widget/gtk/nsToolkit.cpp | 31 + widget/gtk/nsUserIdleServiceGTK.cpp | 115 + widget/gtk/nsUserIdleServiceGTK.h | 50 + widget/gtk/nsWaylandDisplay.cpp | 309 + widget/gtk/nsWaylandDisplay.h | 130 + widget/gtk/nsWidgetFactory.cpp | 74 + widget/gtk/nsWidgetFactory.h | 22 + widget/gtk/nsWindow.cpp | 8420 +++++++++++++++++ widget/gtk/nsWindow.h | 719 ++ widget/gtk/wayland/gbm.h | 480 + .../gtk-primary-selection-client-protocol.h | 580 ++ .../gtk/wayland/gtk-primary-selection-protocol.c | 115 + .../idle-inhibit-unstable-v1-client-protocol.h | 228 + .../wayland/idle-inhibit-unstable-v1-protocol.c | 60 + .../linux-dmabuf-unstable-v1-client-protocol.h | 650 ++ .../wayland/linux-dmabuf-unstable-v1-protocol.c | 81 + widget/gtk/wayland/moz.build | 35 + ...primary-selection-unstable-v1-client-protocol.h | 578 ++ .../primary-selection-unstable-v1-protocol.c | 115 + widget/gtk/wayland/va_drmcommon.h | 156 + .../xdg-output-unstable-v1-client-protocol.h | 392 + .../gtk/wayland/xdg-output-unstable-v1-protocol.c | 74 + widget/headless/HeadlessClipboard.cpp | 112 + widget/headless/HeadlessClipboard.h | 33 + widget/headless/HeadlessClipboardData.cpp | 19 + widget/headless/HeadlessClipboardData.h | 34 + widget/headless/HeadlessCompositorWidget.cpp | 43 + widget/headless/HeadlessCompositorWidget.h | 53 + widget/headless/HeadlessKeyBindings.cpp | 34 + widget/headless/HeadlessKeyBindings.h | 35 + widget/headless/HeadlessKeyBindingsCocoa.mm | 47 + widget/headless/HeadlessLookAndFeel.h | 65 + widget/headless/HeadlessLookAndFeelGTK.cpp | 359 + widget/headless/HeadlessScreenHelper.cpp | 44 + widget/headless/HeadlessScreenHelper.h | 27 + widget/headless/HeadlessSound.cpp | 36 + widget/headless/HeadlessSound.h | 31 + widget/headless/HeadlessThemeGTK.cpp | 417 + widget/headless/HeadlessThemeGTK.h | 61 + widget/headless/HeadlessWidget.cpp | 503 + widget/headless/HeadlessWidget.h | 187 + widget/headless/HeadlessWidgetTypes.ipdlh | 18 + widget/headless/moz.build | 49 + widget/headless/tests/.eslintrc.js | 5 + widget/headless/tests/headless.html | 6 + widget/headless/tests/headless_button.html | 6 + widget/headless/tests/moz.build | 7 + widget/headless/tests/test_headless.js | 215 + widget/headless/tests/test_headless_clipboard.js | 46 + widget/headless/tests/xpcshell.ini | 10 + widget/moz.build | 363 + widget/nsAppShellSingleton.h | 62 + widget/nsAutoRollup.cpp | 50 + widget/nsAutoRollup.h | 54 + widget/nsBaseAppShell.cpp | 305 + widget/nsBaseAppShell.h | 136 + widget/nsBaseClipboard.cpp | 117 + widget/nsBaseClipboard.h | 44 + widget/nsBaseDragService.cpp | 951 ++ widget/nsBaseDragService.h | 216 + widget/nsBaseFilePicker.cpp | 408 + widget/nsBaseFilePicker.h | 68 + widget/nsBaseScreen.cpp | 46 + widget/nsBaseScreen.h | 41 + widget/nsBaseWidget.cpp | 3290 +++++++ widget/nsBaseWidget.h | 744 ++ widget/nsCUPSShim.cpp | 64 + widget/nsCUPSShim.h | 85 + widget/nsClipboardHelper.cpp | 124 + widget/nsClipboardHelper.h | 30 + widget/nsClipboardProxy.cpp | 140 + widget/nsClipboardProxy.h | 48 + widget/nsColorPickerProxy.cpp | 53 + widget/nsColorPickerProxy.h | 33 + widget/nsContentProcessWidgetFactory.cpp | 65 + widget/nsDeviceContextSpecProxy.cpp | 182 + widget/nsDeviceContextSpecProxy.h | 65 + widget/nsDragServiceProxy.cpp | 95 + widget/nsDragServiceProxy.h | 27 + widget/nsFilePickerProxy.cpp | 276 + widget/nsFilePickerProxy.h | 84 + widget/nsGUIEventIPC.h | 1455 +++ widget/nsHTMLFormatConverter.cpp | 183 + widget/nsHTMLFormatConverter.h | 32 + widget/nsIAppShell.idl | 76 + widget/nsIApplicationChooser.idl | 40 + widget/nsIBaseWindow.idl | 218 + widget/nsIBidiKeyboard.idl | 32 + widget/nsIClipboard.idl | 90 + widget/nsIClipboardHelper.idl | 36 + widget/nsIClipboardOwner.idl | 29 + widget/nsIColorPicker.idl | 72 + widget/nsIDeviceContextSpec.h | 93 + widget/nsIDisplayInfo.idl | 14 + widget/nsIDragService.idl | 200 + widget/nsIDragSession.idl | 125 + widget/nsIFilePicker.idl | 215 + widget/nsIFormatConverter.idl | 50 + widget/nsIGfxInfo.idl | 314 + widget/nsIGfxInfoDebug.idl | 24 + widget/nsIGtkTaskbarProgress.idl | 22 + widget/nsIJumpListBuilder.idl | 159 + widget/nsIJumpListItem.idl | 137 + widget/nsIKeyEventInPluginCallback.h | 42 + widget/nsIMacDockSupport.idl | 39 + widget/nsIMacFinderProgress.idl | 43 + widget/nsIMacSharingService.idl | 30 + widget/nsIMacWebAppUtils.idl | 35 + widget/nsINativeMenuService.h | 39 + widget/nsIPaper.idl | 42 + widget/nsIPaperMargin.idl | 16 + widget/nsIPluginWidget.h | 44 + widget/nsIPrintDialogService.h | 70 + widget/nsIPrintSession.idl | 39 + widget/nsIPrintSettings.idl | 317 + widget/nsIPrintSettingsService.idl | 148 + widget/nsIPrintSettingsWin.idl | 56 + widget/nsIPrinter.idl | 74 + widget/nsIPrinterList.idl | 61 + widget/nsIRollupListener.h | 72 + widget/nsIScreen.idl | 66 + widget/nsIScreenManager.idl | 27 + widget/nsISharePicker.idl | 32 + widget/nsISound.idl | 40 + widget/nsIStandaloneNativeMenu.idl | 56 + widget/nsISystemStatusBar.idl | 36 + widget/nsITaskbarOverlayIconController.idl | 39 + widget/nsITaskbarPreview.idl | 71 + widget/nsITaskbarPreviewButton.idl | 63 + widget/nsITaskbarPreviewController.idl | 103 + widget/nsITaskbarProgress.idl | 58 + widget/nsITaskbarTabPreview.idl | 63 + widget/nsITaskbarWindowPreview.idl | 70 + widget/nsITouchBarHelper.idl | 55 + widget/nsITouchBarInput.idl | 78 + widget/nsITouchBarUpdater.idl | 42 + widget/nsITransferable.idl | 204 + widget/nsIUserIdleService.idl | 86 + widget/nsIUserIdleServiceInternal.idl | 18 + widget/nsIWidget.h | 2157 +++++ widget/nsIWidgetListener.cpp | 90 + widget/nsIWidgetListener.h | 196 + widget/nsIWinTaskbar.idl | 178 + widget/nsIWindowsUIUtils.idl | 35 + widget/nsNativeBasicTheme.cpp | 1599 ++++ widget/nsNativeBasicTheme.h | 334 + widget/nsNativeTheme.cpp | 677 ++ widget/nsNativeTheme.h | 199 + widget/nsPaper.cpp | 87 + widget/nsPaper.h | 128 + widget/nsPaperMargin.cpp | 32 + widget/nsPaperMargin.h | 29 + widget/nsPrimitiveHelpers.cpp | 197 + widget/nsPrimitiveHelpers.h | 54 + widget/nsPrintSession.cpp | 33 + widget/nsPrintSession.h | 39 + widget/nsPrintSettingsImpl.cpp | 854 ++ widget/nsPrintSettingsImpl.h | 123 + widget/nsPrintSettingsService.cpp | 1021 +++ widget/nsPrintSettingsService.h | 90 + widget/nsPrinterBase.cpp | 212 + widget/nsPrinterBase.h | 112 + widget/nsPrinterCUPS.cpp | 375 + widget/nsPrinterCUPS.h | 146 + widget/nsPrinterListBase.cpp | 160 + widget/nsPrinterListBase.h | 92 + widget/nsPrinterListCUPS.cpp | 201 + widget/nsPrinterListCUPS.h | 32 + widget/nsShmImage.cpp | 326 + widget/nsShmImage.h | 75 + widget/nsSoundProxy.cpp | 49 + widget/nsSoundProxy.h | 22 + widget/nsTransferable.cpp | 531 ++ widget/nsTransferable.h | 89 + widget/nsUserIdleService.cpp | 883 ++ widget/nsUserIdleService.h | 227 + widget/nsWidgetInitData.h | 149 + widget/nsWidgetsCID.h | 339 + widget/nsXPLookAndFeel.cpp | 1127 +++ widget/nsXPLookAndFeel.h | 131 + widget/reftests/664925.xhtml | 1 + .../reftests/meter-fallback-default-style-ref.html | 57 + widget/reftests/meter-fallback-default-style.html | 20 + widget/reftests/meter-native-style-ref.html | 19 + widget/reftests/meter-native-style.html | 18 + .../reftests/meter-vertical-native-style-ref.html | 14 + widget/reftests/meter-vertical-native-style.html | 13 + .../progressbar-fallback-default-style-ref.html | 33 + .../progressbar-fallback-default-style.html | 20 + widget/reftests/reftest.list | 9 + widget/reftests/scaled-scrollbar.html | 6 + widget/reftests/scrollbar-buttons.html | 4 + widget/tests/.eslintrc.js | 5 + widget/tests/TestChromeMargin.cpp | 130 + widget/tests/browser/browser.ini | 2 + .../tests/browser/browser_test_clipboardcache.js | 145 + widget/tests/bug586713_window.xhtml | 50 + widget/tests/chrome.ini | 107 + widget/tests/empty_window.xhtml | 4 + widget/tests/file_bug596600.html | 4 + .../file_input_events_on_deactive_window.html | 5 + widget/tests/file_secure_input.html | 1 + widget/tests/gtest/TestTimeConverter.cpp | 265 + widget/tests/gtest/TestTouchResampler.cpp | 941 ++ widget/tests/gtest/moz.build | 16 + widget/tests/mochitest.ini | 18 + widget/tests/moz.build | 125 + widget/tests/native_menus_window.xhtml | 282 + widget/tests/native_mouse_mac_window.xhtml | 770 ++ widget/tests/standalone_native_menu_window.xhtml | 332 + widget/tests/system_font_changes.xhtml | 63 + widget/tests/taskbar_previews.xhtml | 118 + ...AltGr_key_events_in_web_content_on_windows.html | 106 + widget/tests/test_actionhint.html | 85 + widget/tests/test_alwaysontop_focus.xhtml | 39 + widget/tests/test_assign_event_data.html | 759 ++ widget/tests/test_autocapitalize.html | 65 + widget/tests/test_bug1123480.xhtml | 147 + widget/tests/test_bug343416.xhtml | 191 + widget/tests/test_bug413277.html | 35 + widget/tests/test_bug428405.xhtml | 167 + widget/tests/test_bug429954.xhtml | 43 + widget/tests/test_bug444800.xhtml | 98 + widget/tests/test_bug466599.xhtml | 103 + widget/tests/test_bug478536.xhtml | 33 + widget/tests/test_bug485118.xhtml | 72 + widget/tests/test_bug517396.xhtml | 54 + widget/tests/test_bug522217.xhtml | 35 + widget/tests/test_bug538242.xhtml | 55 + widget/tests/test_bug565392.html | 64 + widget/tests/test_bug586713.xhtml | 29 + widget/tests/test_bug593307.xhtml | 40 + widget/tests/test_bug596600.xhtml | 168 + widget/tests/test_bug673301.xhtml | 35 + widget/tests/test_bug760802.xhtml | 85 + widget/tests/test_clipboard.xhtml | 72 + .../tests/test_composition_text_querycontent.xhtml | 35 + widget/tests/test_imestate.html | 1458 +++ .../test_input_events_on_deactive_window.xhtml | 235 + widget/tests/test_key_event_counts.xhtml | 90 + widget/tests/test_keycodes.xhtml | 5628 ++++++++++++ .../tests/test_keypress_event_with_alt_on_mac.html | 109 + .../test_mouse_event_with_control_on_mac.html | 114 + widget/tests/test_mouse_scroll.xhtml | 35 + widget/tests/test_native_key_bindings_mac.html | 336 + widget/tests/test_native_menus.xhtml | 29 + widget/tests/test_native_mouse_mac.xhtml | 29 + widget/tests/test_panel_mouse_coords.xhtml | 78 + widget/tests/test_picker_no_crash.html | 36 + widget/tests/test_platform_colors.xhtml | 106 + widget/tests/test_plugin_scroll_consistency.html | 59 + widget/tests/test_position_on_resize.xhtml | 90 + widget/tests/test_scrollbar_colors.html | 120 + widget/tests/test_secure_input.html | 141 + widget/tests/test_sizemode_events.xhtml | 105 + widget/tests/test_standalone_native_menu.xhtml | 29 + widget/tests/test_system_font_changes.xhtml | 28 + widget/tests/test_system_status_bar.xhtml | 53 + widget/tests/test_taskbar_progress.xhtml | 119 + widget/tests/test_transferable_overflow.xhtml | 152 + widget/tests/test_wheeltransaction.xhtml | 27 + widget/tests/unit/test_macsharingservice.js | 29 + widget/tests/unit/test_macwebapputils.js | 34 + widget/tests/unit/test_taskbar_jumplistitems.js | 328 + widget/tests/unit/xpcshell.ini | 9 + widget/tests/utils.js | 27 + widget/tests/window_bug429954.xhtml | 44 + widget/tests/window_bug478536.xhtml | 211 + widget/tests/window_bug522217.xhtml | 80 + widget/tests/window_bug538242.xhtml | 3 + widget/tests/window_bug593307_centerscreen.xhtml | 26 + widget/tests/window_bug593307_offscreen.xhtml | 33 + .../window_composition_text_querycontent.xhtml | 9632 ++++++++++++++++++++ widget/tests/window_imestate_iframes.html | 360 + widget/tests/window_mouse_scroll_win.html | 1518 +++ widget/tests/window_mouse_scroll_win_2.html | 6 + widget/tests/window_picker_no_crash_child.html | 10 + widget/tests/window_state_windows.xhtml | 82 + widget/tests/window_wheeltransaction.xhtml | 1569 ++++ widget/uikit/GfxInfo.cpp | 174 + widget/uikit/GfxInfo.h | 75 + widget/uikit/moz.build | 22 + widget/uikit/nsAppShell.h | 56 + widget/uikit/nsAppShell.mm | 241 + widget/uikit/nsLookAndFeel.h | 39 + widget/uikit/nsLookAndFeel.mm | 414 + widget/uikit/nsScreenManager.h | 60 + widget/uikit/nsScreenManager.mm | 98 + widget/uikit/nsWidgetFactory.mm | 49 + widget/uikit/nsWindow.h | 109 + widget/uikit/nsWindow.mm | 754 ++ widget/windows/AudioSession.cpp | 443 + widget/windows/AudioSession.h | 28 + widget/windows/CompositorWidgetChild.cpp | 109 + widget/windows/CompositorWidgetChild.h | 60 + widget/windows/CompositorWidgetParent.cpp | 222 + widget/windows/CompositorWidgetParent.h | 84 + widget/windows/DirectManipulationOwner.cpp | 718 ++ widget/windows/DirectManipulationOwner.h | 50 + widget/windows/GfxInfo.cpp | 2058 +++++ widget/windows/GfxInfo.h | 114 + widget/windows/IEnumFE.cpp | 139 + widget/windows/IEnumFE.h | 88 + widget/windows/IMMHandler.cpp | 2384 +++++ widget/windows/IMMHandler.h | 436 + widget/windows/IconLoaderHelperWin.cpp | 79 + widget/windows/IconLoaderHelperWin.h | 70 + widget/windows/InProcessWinCompositorWidget.cpp | 356 + widget/windows/InProcessWinCompositorWidget.h | 101 + widget/windows/InkCollector.cpp | 245 + widget/windows/InkCollector.h | 101 + widget/windows/InputDeviceUtils.cpp | 61 + widget/windows/InputDeviceUtils.h | 26 + widget/windows/JumpListBuilder.cpp | 635 ++ widget/windows/JumpListBuilder.h | 69 + widget/windows/JumpListItem.cpp | 575 ++ widget/windows/JumpListItem.h | 131 + widget/windows/KeyboardLayout.cpp | 5418 +++++++++++ widget/windows/KeyboardLayout.h | 1125 +++ widget/windows/LSPAnnotator.cpp | 135 + widget/windows/MediaKeysEventSourceFactory.cpp | 20 + widget/windows/OSKInputPaneManager.cpp | 101 + widget/windows/OSKInputPaneManager.h | 24 + widget/windows/PCompositorWidget.ipdl | 45 + widget/windows/PlatformWidgetTypes.ipdlh | 34 + widget/windows/RemoteBackbuffer.cpp | 675 ++ widget/windows/RemoteBackbuffer.h | 92 + widget/windows/ScreenHelperWin.cpp | 89 + widget/windows/ScreenHelperWin.h | 26 + widget/windows/ScrollbarUtil.cpp | 217 + widget/windows/ScrollbarUtil.h | 41 + widget/windows/ShellHeaderOnlyUtils.h | 178 + widget/windows/SystemStatusBar.cpp | 302 + widget/windows/SystemStatusBar.h | 32 + widget/windows/TSFTextStore.cpp | 7398 +++++++++++++++ widget/windows/TSFTextStore.h | 1053 +++ widget/windows/TaskbarPreview.cpp | 409 + widget/windows/TaskbarPreview.h | 132 + widget/windows/TaskbarPreviewButton.cpp | 137 + widget/windows/TaskbarPreviewButton.h | 47 + widget/windows/TaskbarTabPreview.cpp | 345 + widget/windows/TaskbarTabPreview.h | 70 + widget/windows/TaskbarWindowPreview.cpp | 323 + widget/windows/TaskbarWindowPreview.h | 85 + widget/windows/ToastNotification.cpp | 204 + widget/windows/ToastNotification.h | 50 + widget/windows/ToastNotificationHandler.cpp | 622 ++ widget/windows/ToastNotificationHandler.h | 108 + widget/windows/UrlmonHeaderOnlyUtils.h | 76 + widget/windows/WidgetTraceEvent.cpp | 119 + widget/windows/WinCompositorWidget.cpp | 105 + widget/windows/WinCompositorWidget.h | 99 + widget/windows/WinCompositorWindowThread.cpp | 212 + widget/windows/WinCompositorWindowThread.h | 66 + widget/windows/WinContentSystemParameters.cpp | 213 + widget/windows/WinContentSystemParameters.h | 72 + widget/windows/WinHeaderOnlyUtils.h | 742 ++ widget/windows/WinIMEHandler.cpp | 1180 +++ widget/windows/WinIMEHandler.h | 245 + widget/windows/WinMessages.h | 104 + widget/windows/WinModifierKeyState.h | 59 + widget/windows/WinMouseScrollHandler.cpp | 1702 ++++ widget/windows/WinMouseScrollHandler.h | 576 ++ widget/windows/WinNativeEventData.h | 50 + widget/windows/WinPointerEvents.cpp | 190 + widget/windows/WinPointerEvents.h | 174 + widget/windows/WinTaskbar.cpp | 437 + widget/windows/WinTaskbar.h | 45 + widget/windows/WinTextEventDispatcherListener.cpp | 68 + widget/windows/WinTextEventDispatcherListener.h | 50 + widget/windows/WinUtils.cpp | 2272 +++++ widget/windows/WinUtils.h | 657 ++ widget/windows/WindowHook.cpp | 113 + widget/windows/WindowHook.h | 76 + widget/windows/WindowsConsole.cpp | 51 + widget/windows/WindowsConsole.h | 16 + widget/windows/WindowsEMF.cpp | 94 + widget/windows/WindowsEMF.h | 106 + widget/windows/WindowsSMTCProvider.cpp | 731 ++ widget/windows/WindowsSMTCProvider.h | 129 + widget/windows/WindowsUIUtils.cpp | 461 + widget/windows/WindowsUIUtils.h | 34 + widget/windows/components.conf | 219 + widget/windows/moz.build | 192 + widget/windows/nsAppShell.cpp | 781 ++ widget/windows/nsAppShell.h | 61 + widget/windows/nsBidiKeyboard.cpp | 169 + widget/windows/nsBidiKeyboard.h | 34 + widget/windows/nsClipboard.cpp | 1071 +++ widget/windows/nsClipboard.h | 96 + widget/windows/nsColorPicker.cpp | 208 + widget/windows/nsColorPicker.h | 54 + widget/windows/nsDataObj.cpp | 2231 +++++ widget/windows/nsDataObj.h | 308 + widget/windows/nsDataObjCollection.cpp | 370 + widget/windows/nsDataObjCollection.h | 92 + widget/windows/nsDeviceContextSpecWin.cpp | 656 ++ widget/windows/nsDeviceContextSpecWin.h | 109 + widget/windows/nsDragService.cpp | 613 ++ widget/windows/nsDragService.h | 67 + widget/windows/nsFilePicker.cpp | 622 ++ widget/windows/nsFilePicker.h | 109 + widget/windows/nsLookAndFeel.cpp | 976 ++ widget/windows/nsLookAndFeel.h | 138 + widget/windows/nsNativeBasicThemeWin.cpp | 299 + widget/windows/nsNativeBasicThemeWin.h | 58 + widget/windows/nsNativeDragSource.cpp | 98 + widget/windows/nsNativeDragSource.h | 68 + widget/windows/nsNativeDragTarget.cpp | 479 + widget/windows/nsNativeDragTarget.h | 103 + widget/windows/nsNativeThemeWin.cpp | 4013 ++++++++ widget/windows/nsNativeThemeWin.h | 164 + widget/windows/nsPrintDialogUtil.cpp | 371 + widget/windows/nsPrintDialogUtil.h | 10 + widget/windows/nsPrintDialogWin.cpp | 180 + widget/windows/nsPrintDialogWin.h | 41 + widget/windows/nsPrintSettingsServiceWin.cpp | 127 + widget/windows/nsPrintSettingsServiceWin.h | 30 + widget/windows/nsPrintSettingsWin.cpp | 536 ++ widget/windows/nsPrintSettingsWin.h | 53 + widget/windows/nsPrinterWin.cpp | 371 + widget/windows/nsPrinterWin.h | 42 + widget/windows/nsSharePicker.cpp | 81 + widget/windows/nsSharePicker.h | 29 + widget/windows/nsSound.cpp | 330 + widget/windows/nsSound.h | 47 + widget/windows/nsToolkit.cpp | 69 + widget/windows/nsToolkit.h | 47 + widget/windows/nsUXThemeConstants.h | 255 + widget/windows/nsUXThemeData.cpp | 410 + widget/windows/nsUXThemeData.h | 133 + widget/windows/nsUserIdleServiceWin.cpp | 22 + widget/windows/nsUserIdleServiceWin.h | 43 + widget/windows/nsWidgetFactory.cpp | 60 + widget/windows/nsWidgetFactory.h | 22 + widget/windows/nsWinGesture.cpp | 388 + widget/windows/nsWinGesture.h | 91 + widget/windows/nsWindow.cpp | 8663 ++++++++++++++++++ widget/windows/nsWindow.h | 747 ++ widget/windows/nsWindowBase.cpp | 224 + widget/windows/nsWindowBase.h | 139 + widget/windows/nsWindowDbg.cpp | 60 + widget/windows/nsWindowDbg.h | 62 + widget/windows/nsWindowDefs.h | 137 + widget/windows/nsWindowGfx.cpp | 693 ++ widget/windows/nsWindowGfx.h | 35 + widget/windows/nsdefs.h | 47 + widget/windows/res/aliasb.cur | Bin 0 -> 326 bytes widget/windows/res/cell.cur | Bin 0 -> 326 bytes widget/windows/res/col_resize.cur | Bin 0 -> 326 bytes widget/windows/res/copy.cur | Bin 0 -> 326 bytes widget/windows/res/grab.cur | Bin 0 -> 326 bytes widget/windows/res/grabbing.cur | Bin 0 -> 326 bytes widget/windows/res/none.cur | Bin 0 -> 326 bytes widget/windows/res/row_resize.cur | Bin 0 -> 326 bytes widget/windows/res/select.cur | Bin 0 -> 326 bytes widget/windows/res/vertical_text.cur | Bin 0 -> 326 bytes widget/windows/res/zoom_in.cur | Bin 0 -> 326 bytes widget/windows/res/zoom_out.cur | Bin 0 -> 326 bytes widget/windows/resource.h | 16 + widget/windows/tests/TestUriValidation.cpp | 135 + widget/windows/tests/TestUrisToValidate.h | 471 + widget/windows/tests/TestWinDND.cpp | 696 ++ widget/windows/tests/moz.build | 28 + widget/windows/touchinjection_sdk80.h | 117 + widget/windows/widget.rc | 30 + widget/x11/keysym2ucs.c | 866 ++ widget/x11/keysym2ucs.h | 28 + widget/x11/moz.build | 16 + 930 files changed, 272250 insertions(+) create mode 100644 widget/BasicEvents.h create mode 100644 widget/CommandList.h create mode 100644 widget/CompositorWidget.cpp create mode 100644 widget/CompositorWidget.h create mode 100644 widget/ContentCache.cpp create mode 100644 widget/ContentCache.h create mode 100644 widget/ContentEvents.h create mode 100644 widget/EventClassList.h create mode 100644 widget/EventForwards.h create mode 100644 widget/EventMessageList.h create mode 100644 widget/FontRange.h create mode 100644 widget/GfxDriverInfo.cpp create mode 100644 widget/GfxDriverInfo.h create mode 100644 widget/GfxInfoBase.cpp create mode 100644 widget/GfxInfoBase.h create mode 100644 widget/GfxInfoCollector.cpp create mode 100644 widget/GfxInfoCollector.h create mode 100644 widget/GfxInfoX11.cpp create mode 100644 widget/GfxInfoX11.h create mode 100644 widget/IMEData.cpp create mode 100644 widget/IMEData.h create mode 100644 widget/IconLoader.cpp create mode 100644 widget/IconLoader.h create mode 100644 widget/InProcessCompositorWidget.cpp create mode 100644 widget/InProcessCompositorWidget.h create mode 100644 widget/InputData.cpp create mode 100644 widget/InputData.h create mode 100644 widget/LSBUtils.cpp create mode 100644 widget/LSBUtils.h create mode 100644 widget/LookAndFeel.h create mode 100644 widget/LookAndFeelTypes.ipdlh create mode 100644 widget/MediaKeysEventSourceFactory.h create mode 100644 widget/MiscEvents.h create mode 100644 widget/MouseEvents.h create mode 100644 widget/NativeKeyToDOMCodeName.h create mode 100644 widget/NativeKeyToDOMKeyName.h create mode 100644 widget/PluginWidgetProxy.cpp create mode 100644 widget/PluginWidgetProxy.h create mode 100644 widget/PrintBackgroundTask.h create mode 100644 widget/PuppetBidiKeyboard.cpp create mode 100644 widget/PuppetBidiKeyboard.h create mode 100644 widget/PuppetWidget.cpp create mode 100644 widget/PuppetWidget.h create mode 100644 widget/RemoteLookAndFeel.cpp create mode 100644 widget/RemoteLookAndFeel.h create mode 100644 widget/Screen.cpp create mode 100644 widget/Screen.h create mode 100644 widget/ScreenManager.cpp create mode 100644 widget/ScreenManager.h create mode 100644 widget/ScrollbarDrawingMac.cpp create mode 100644 widget/ScrollbarDrawingMac.h create mode 100644 widget/SharedWidgetUtils.cpp create mode 100644 widget/SystemTimeConverter.h create mode 100644 widget/TextEventDispatcher.cpp create mode 100644 widget/TextEventDispatcher.h create mode 100644 widget/TextEventDispatcherListener.h create mode 100644 widget/TextEvents.h create mode 100644 widget/TextRange.h create mode 100644 widget/ThemeChangeKind.h create mode 100644 widget/TouchEvents.h create mode 100644 widget/TouchResampler.cpp create mode 100644 widget/TouchResampler.h create mode 100644 widget/VsyncDispatcher.cpp create mode 100644 widget/VsyncDispatcher.h create mode 100644 widget/WidgetEventImpl.cpp create mode 100644 widget/WidgetMessageUtils.h create mode 100644 widget/WidgetTraceEvent.h create mode 100644 widget/WidgetUtils.cpp create mode 100644 widget/WidgetUtils.h create mode 100644 widget/WindowSurface.h create mode 100644 widget/WindowSurfaceX11SHM.cpp create mode 100644 widget/WindowSurfaceX11SHM.h create mode 100644 widget/android/AndroidAlerts.cpp create mode 100644 widget/android/AndroidAlerts.h create mode 100644 widget/android/AndroidBridge.cpp create mode 100644 widget/android/AndroidBridge.h create mode 100644 widget/android/AndroidBridgeUtilities.h create mode 100644 widget/android/AndroidColors.h create mode 100644 widget/android/AndroidCompositorWidget.cpp create mode 100644 widget/android/AndroidCompositorWidget.h create mode 100644 widget/android/AndroidContentController.cpp create mode 100644 widget/android/AndroidContentController.h create mode 100644 widget/android/AndroidUiThread.cpp create mode 100644 widget/android/AndroidUiThread.h create mode 100644 widget/android/AndroidView.h create mode 100644 widget/android/AndroidVsync.cpp create mode 100644 widget/android/AndroidVsync.h create mode 100644 widget/android/Base64UtilsSupport.h create mode 100644 widget/android/EventDispatcher.cpp create mode 100644 widget/android/EventDispatcher.h create mode 100644 widget/android/GeckoBatteryManager.h create mode 100644 widget/android/GeckoEditableSupport.cpp create mode 100644 widget/android/GeckoEditableSupport.h create mode 100644 widget/android/GeckoNetworkManager.h create mode 100644 widget/android/GeckoProcessManager.cpp create mode 100644 widget/android/GeckoProcessManager.h create mode 100644 widget/android/GeckoScreenOrientation.h create mode 100644 widget/android/GeckoSystemStateListener.h create mode 100644 widget/android/GeckoTelemetryDelegate.h create mode 100644 widget/android/GeckoVRManager.h create mode 100644 widget/android/GeckoViewSupport.h create mode 100644 widget/android/GfxInfo.cpp create mode 100644 widget/android/GfxInfo.h create mode 100644 widget/android/ImageDecoderSupport.cpp create mode 100644 widget/android/ImageDecoderSupport.h create mode 100644 widget/android/MediaKeysEventSourceFactory.cpp create mode 100644 widget/android/PrefsHelper.h create mode 100644 widget/android/ScreenHelperAndroid.cpp create mode 100644 widget/android/ScreenHelperAndroid.h create mode 100644 widget/android/Telemetry.h create mode 100644 widget/android/WebAuthnTokenManager.h create mode 100644 widget/android/WebExecutorSupport.cpp create mode 100644 widget/android/WebExecutorSupport.h create mode 100644 widget/android/WindowEvent.h create mode 100644 widget/android/bindings/AccessibilityEvent-classes.txt create mode 100644 widget/android/bindings/AndroidBuild-classes.txt create mode 100644 widget/android/bindings/AndroidGraphics-classes.txt create mode 100644 widget/android/bindings/AndroidInputType-classes.txt create mode 100644 widget/android/bindings/AndroidRect-classes.txt create mode 100644 widget/android/bindings/InetAddress-classes.txt create mode 100644 widget/android/bindings/JavaBuiltins-classes.txt create mode 100644 widget/android/bindings/JavaExceptions-classes.txt create mode 100644 widget/android/bindings/KeyEvent-classes.txt create mode 100644 widget/android/bindings/MediaCodec-classes.txt create mode 100644 widget/android/bindings/MotionEvent-classes.txt create mode 100644 widget/android/bindings/SurfaceTexture-classes.txt create mode 100644 widget/android/bindings/ViewConfiguration-classes.txt create mode 100644 widget/android/bindings/moz.build create mode 100644 widget/android/components.conf create mode 100644 widget/android/jni/Accessors.h create mode 100644 widget/android/jni/Conversions.cpp create mode 100644 widget/android/jni/Conversions.h create mode 100644 widget/android/jni/GeckoBundleUtils.h create mode 100644 widget/android/jni/GeckoResultUtils.h create mode 100644 widget/android/jni/Natives.h create mode 100644 widget/android/jni/Refs.h create mode 100644 widget/android/jni/Types.h create mode 100644 widget/android/jni/Utils.cpp create mode 100644 widget/android/jni/Utils.h create mode 100644 widget/android/jni/moz.build create mode 100644 widget/android/moz.build create mode 100644 widget/android/nsAndroidProtocolHandler.cpp create mode 100644 widget/android/nsAndroidProtocolHandler.h create mode 100644 widget/android/nsAppShell.cpp create mode 100644 widget/android/nsAppShell.h create mode 100644 widget/android/nsClipboard.cpp create mode 100644 widget/android/nsClipboard.h create mode 100644 widget/android/nsDeviceContextAndroid.cpp create mode 100644 widget/android/nsDeviceContextAndroid.h create mode 100644 widget/android/nsIAndroidBridge.idl create mode 100644 widget/android/nsLookAndFeel.cpp create mode 100644 widget/android/nsLookAndFeel.h create mode 100644 widget/android/nsNativeBasicThemeAndroid.cpp create mode 100644 widget/android/nsNativeBasicThemeAndroid.h create mode 100644 widget/android/nsNativeThemeAndroid.cpp create mode 100644 widget/android/nsNativeThemeAndroid.h create mode 100644 widget/android/nsPrintSettingsServiceAndroid.cpp create mode 100644 widget/android/nsPrintSettingsServiceAndroid.h create mode 100644 widget/android/nsUserIdleServiceAndroid.cpp create mode 100644 widget/android/nsUserIdleServiceAndroid.h create mode 100644 widget/android/nsWidgetFactory.cpp create mode 100644 widget/android/nsWidgetFactory.h create mode 100644 widget/android/nsWindow.cpp create mode 100644 widget/android/nsWindow.h create mode 100644 widget/cocoa/CFTypeRefPtr.h create mode 100644 widget/cocoa/CustomCocoaEvents.h create mode 100644 widget/cocoa/DesktopBackgroundImage.h create mode 100644 widget/cocoa/DesktopBackgroundImage.mm create mode 100644 widget/cocoa/GfxInfo.h create mode 100644 widget/cocoa/GfxInfo.mm create mode 100644 widget/cocoa/IconLoaderHelperCocoa.h create mode 100644 widget/cocoa/IconLoaderHelperCocoa.mm create mode 100644 widget/cocoa/MediaHardwareKeysEventSourceMac.h create mode 100644 widget/cocoa/MediaHardwareKeysEventSourceMac.mm create mode 100644 widget/cocoa/MediaHardwareKeysEventSourceMacMediaCenter.h create mode 100644 widget/cocoa/MediaHardwareKeysEventSourceMacMediaCenter.mm create mode 100644 widget/cocoa/MediaKeysEventSourceFactory.cpp create mode 100644 widget/cocoa/NativeKeyBindings.h create mode 100644 widget/cocoa/NativeKeyBindings.mm create mode 100644 widget/cocoa/OSXNotificationCenter.h create mode 100644 widget/cocoa/OSXNotificationCenter.mm create mode 100644 widget/cocoa/ScreenHelperCocoa.h create mode 100644 widget/cocoa/ScreenHelperCocoa.mm create mode 100644 widget/cocoa/SwipeTracker.h create mode 100644 widget/cocoa/SwipeTracker.mm create mode 100644 widget/cocoa/TextInputHandler.h create mode 100644 widget/cocoa/TextInputHandler.mm create mode 100644 widget/cocoa/VibrancyManager.h create mode 100644 widget/cocoa/VibrancyManager.mm create mode 100644 widget/cocoa/ViewRegion.h create mode 100644 widget/cocoa/ViewRegion.mm create mode 100644 widget/cocoa/WidgetTraceEvent.mm create mode 100644 widget/cocoa/components.conf create mode 100644 widget/cocoa/crashtests/373122-1-inner.html create mode 100644 widget/cocoa/crashtests/373122-1.html create mode 100644 widget/cocoa/crashtests/397209-1.html create mode 100644 widget/cocoa/crashtests/403296-1.xhtml create mode 100644 widget/cocoa/crashtests/419737-1.html create mode 100644 widget/cocoa/crashtests/435223-1.html create mode 100644 widget/cocoa/crashtests/444260-1.xhtml create mode 100644 widget/cocoa/crashtests/444864-1.html create mode 100644 widget/cocoa/crashtests/449111-1.html create mode 100644 widget/cocoa/crashtests/460349-1.xhtml create mode 100644 widget/cocoa/crashtests/460387-1.html create mode 100644 widget/cocoa/crashtests/464589-1.html create mode 100644 widget/cocoa/crashtests/crashtests.list create mode 100644 widget/cocoa/cursors/arrowN.png create mode 100644 widget/cocoa/cursors/arrowN@2x.png create mode 100644 widget/cocoa/cursors/arrowS.png create mode 100644 widget/cocoa/cursors/arrowS@2x.png create mode 100644 widget/cocoa/cursors/cell.png create mode 100644 widget/cocoa/cursors/cell@2x.png create mode 100644 widget/cocoa/cursors/colResize.png create mode 100644 widget/cocoa/cursors/colResize@2x.png create mode 100644 widget/cocoa/cursors/help.png create mode 100644 widget/cocoa/cursors/help@2x.png create mode 100644 widget/cocoa/cursors/move.png create mode 100644 widget/cocoa/cursors/move@2x.png create mode 100644 widget/cocoa/cursors/rowResize.png create mode 100644 widget/cocoa/cursors/rowResize@2x.png create mode 100644 widget/cocoa/cursors/sizeNE.png create mode 100644 widget/cocoa/cursors/sizeNE@2x.png create mode 100644 widget/cocoa/cursors/sizeNESW.png create mode 100644 widget/cocoa/cursors/sizeNESW@2x.png create mode 100644 widget/cocoa/cursors/sizeNS.png create mode 100644 widget/cocoa/cursors/sizeNS@2x.png create mode 100644 widget/cocoa/cursors/sizeNW.png create mode 100644 widget/cocoa/cursors/sizeNW@2x.png create mode 100644 widget/cocoa/cursors/sizeNWSE.png create mode 100644 widget/cocoa/cursors/sizeNWSE@2x.png create mode 100644 widget/cocoa/cursors/sizeSE.png create mode 100644 widget/cocoa/cursors/sizeSE@2x.png create mode 100644 widget/cocoa/cursors/sizeSW.png create mode 100644 widget/cocoa/cursors/sizeSW@2x.png create mode 100644 widget/cocoa/cursors/vtIBeam.png create mode 100644 widget/cocoa/cursors/vtIBeam@2x.png create mode 100644 widget/cocoa/cursors/zoomIn.png create mode 100644 widget/cocoa/cursors/zoomIn@2x.png create mode 100644 widget/cocoa/cursors/zoomOut.png create mode 100644 widget/cocoa/cursors/zoomOut@2x.png create mode 100644 widget/cocoa/docs/index.md create mode 100644 widget/cocoa/docs/macos-apis.md create mode 100644 widget/cocoa/docs/sdks.md create mode 100644 widget/cocoa/moz.build create mode 100644 widget/cocoa/mozView.h create mode 100644 widget/cocoa/nsAppShell.h create mode 100644 widget/cocoa/nsAppShell.mm create mode 100644 widget/cocoa/nsBidiKeyboard.h create mode 100644 widget/cocoa/nsBidiKeyboard.mm create mode 100644 widget/cocoa/nsChangeObserver.h create mode 100644 widget/cocoa/nsChildView.h create mode 100644 widget/cocoa/nsChildView.mm create mode 100644 widget/cocoa/nsClipboard.h create mode 100644 widget/cocoa/nsClipboard.mm create mode 100644 widget/cocoa/nsCocoaDebugUtils.h create mode 100644 widget/cocoa/nsCocoaDebugUtils.mm create mode 100644 widget/cocoa/nsCocoaFeatures.h create mode 100644 widget/cocoa/nsCocoaFeatures.mm create mode 100644 widget/cocoa/nsCocoaUtils.h create mode 100644 widget/cocoa/nsCocoaUtils.mm create mode 100644 widget/cocoa/nsCocoaWindow.h create mode 100644 widget/cocoa/nsCocoaWindow.mm create mode 100644 widget/cocoa/nsColorPicker.h create mode 100644 widget/cocoa/nsColorPicker.mm create mode 100644 widget/cocoa/nsCursorManager.h create mode 100644 widget/cocoa/nsCursorManager.mm create mode 100644 widget/cocoa/nsDeviceContextSpecX.h create mode 100644 widget/cocoa/nsDeviceContextSpecX.mm create mode 100644 widget/cocoa/nsDragService.h create mode 100644 widget/cocoa/nsDragService.mm create mode 100644 widget/cocoa/nsFilePicker.h create mode 100644 widget/cocoa/nsFilePicker.mm create mode 100644 widget/cocoa/nsLookAndFeel.h create mode 100644 widget/cocoa/nsLookAndFeel.mm create mode 100644 widget/cocoa/nsMacCursor.h create mode 100644 widget/cocoa/nsMacCursor.mm create mode 100644 widget/cocoa/nsMacDockSupport.h create mode 100644 widget/cocoa/nsMacDockSupport.mm create mode 100644 widget/cocoa/nsMacFinderProgress.h create mode 100644 widget/cocoa/nsMacFinderProgress.mm create mode 100644 widget/cocoa/nsMacSharingService.h create mode 100644 widget/cocoa/nsMacSharingService.mm create mode 100644 widget/cocoa/nsMacWebAppUtils.h create mode 100644 widget/cocoa/nsMacWebAppUtils.mm create mode 100644 widget/cocoa/nsMenuBarX.h create mode 100644 widget/cocoa/nsMenuBarX.mm create mode 100644 widget/cocoa/nsMenuBaseX.h create mode 100644 widget/cocoa/nsMenuGroupOwnerX.h create mode 100644 widget/cocoa/nsMenuGroupOwnerX.mm create mode 100644 widget/cocoa/nsMenuItemIconX.h create mode 100644 widget/cocoa/nsMenuItemIconX.mm create mode 100644 widget/cocoa/nsMenuItemX.h create mode 100644 widget/cocoa/nsMenuItemX.mm create mode 100644 widget/cocoa/nsMenuUtilsX.h create mode 100644 widget/cocoa/nsMenuUtilsX.mm create mode 100644 widget/cocoa/nsMenuX.h create mode 100644 widget/cocoa/nsMenuX.mm create mode 100644 widget/cocoa/nsNativeBasicThemeCocoa.cpp create mode 100644 widget/cocoa/nsNativeBasicThemeCocoa.h create mode 100644 widget/cocoa/nsNativeThemeCocoa.h create mode 100644 widget/cocoa/nsNativeThemeCocoa.mm create mode 100644 widget/cocoa/nsNativeThemeColors.h create mode 100644 widget/cocoa/nsPIWidgetCocoa.idl create mode 100644 widget/cocoa/nsPrintDialogX.h create mode 100644 widget/cocoa/nsPrintDialogX.mm create mode 100644 widget/cocoa/nsPrintSettingsServiceX.h create mode 100644 widget/cocoa/nsPrintSettingsServiceX.mm create mode 100644 widget/cocoa/nsPrintSettingsX.h create mode 100644 widget/cocoa/nsPrintSettingsX.mm create mode 100644 widget/cocoa/nsSandboxViolationSink.h create mode 100644 widget/cocoa/nsSandboxViolationSink.mm create mode 100644 widget/cocoa/nsSound.h create mode 100644 widget/cocoa/nsSound.mm create mode 100644 widget/cocoa/nsStandaloneNativeMenu.h create mode 100644 widget/cocoa/nsStandaloneNativeMenu.mm create mode 100644 widget/cocoa/nsSystemStatusBarCocoa.h create mode 100644 widget/cocoa/nsSystemStatusBarCocoa.mm create mode 100644 widget/cocoa/nsToolkit.h create mode 100644 widget/cocoa/nsToolkit.mm create mode 100644 widget/cocoa/nsTouchBar.h create mode 100644 widget/cocoa/nsTouchBar.mm create mode 100644 widget/cocoa/nsTouchBarInput.h create mode 100644 widget/cocoa/nsTouchBarInput.mm create mode 100644 widget/cocoa/nsTouchBarInputIcon.h create mode 100644 widget/cocoa/nsTouchBarInputIcon.mm create mode 100644 widget/cocoa/nsTouchBarNativeAPIDefines.h create mode 100644 widget/cocoa/nsTouchBarUpdater.h create mode 100644 widget/cocoa/nsTouchBarUpdater.mm create mode 100644 widget/cocoa/nsUserIdleServiceX.h create mode 100644 widget/cocoa/nsUserIdleServiceX.mm create mode 100644 widget/cocoa/nsWidgetFactory.mm create mode 100644 widget/cocoa/nsWindowMap.h create mode 100644 widget/cocoa/nsWindowMap.mm create mode 100644 widget/cocoa/resources/MainMenu.nib/classes.nib create mode 100644 widget/cocoa/resources/MainMenu.nib/info.nib create mode 100644 widget/cocoa/resources/MainMenu.nib/keyedobjects.nib create mode 100644 widget/crashtests/1128214.html create mode 100644 widget/crashtests/303901-1.html create mode 100644 widget/crashtests/303901-2.html create mode 100644 widget/crashtests/380359-1.xhtml create mode 100644 widget/crashtests/crashtests.list create mode 100644 widget/generic/PCompositorWidget.ipdl create mode 100644 widget/generic/PlatformWidgetTypes.ipdlh create mode 100644 widget/gtk/CompositorWidgetChild.cpp create mode 100644 widget/gtk/CompositorWidgetChild.h create mode 100644 widget/gtk/CompositorWidgetParent.cpp create mode 100644 widget/gtk/CompositorWidgetParent.h create mode 100644 widget/gtk/DMABufLibWrapper.cpp create mode 100644 widget/gtk/DMABufLibWrapper.h create mode 100644 widget/gtk/DMABufSurface.cpp create mode 100644 widget/gtk/DMABufSurface.h create mode 100644 widget/gtk/GRefPtr.h create mode 100644 widget/gtk/GtkCompositorWidget.cpp create mode 100644 widget/gtk/GtkCompositorWidget.h create mode 100644 widget/gtk/IMContextWrapper.cpp create mode 100644 widget/gtk/IMContextWrapper.h create mode 100644 widget/gtk/InProcessGtkCompositorWidget.cpp create mode 100644 widget/gtk/InProcessGtkCompositorWidget.h create mode 100644 widget/gtk/MPRISInterfaceDescription.h create mode 100644 widget/gtk/MPRISServiceHandler.cpp create mode 100644 widget/gtk/MPRISServiceHandler.h create mode 100644 widget/gtk/MediaKeysEventSourceFactory.cpp create mode 100644 widget/gtk/MozContainer.cpp create mode 100644 widget/gtk/MozContainer.h create mode 100644 widget/gtk/MozContainerWayland.cpp create mode 100644 widget/gtk/MozContainerWayland.h create mode 100644 widget/gtk/NativeKeyBindings.cpp create mode 100644 widget/gtk/NativeKeyBindings.h create mode 100644 widget/gtk/PCompositorWidget.ipdl create mode 100644 widget/gtk/PlatformWidgetTypes.ipdlh create mode 100644 widget/gtk/ScreenHelperGTK.cpp create mode 100644 widget/gtk/ScreenHelperGTK.h create mode 100644 widget/gtk/TaskbarProgress.cpp create mode 100644 widget/gtk/TaskbarProgress.h create mode 100644 widget/gtk/WakeLockListener.cpp create mode 100644 widget/gtk/WakeLockListener.h create mode 100644 widget/gtk/WaylandVsyncSource.cpp create mode 100644 widget/gtk/WaylandVsyncSource.h create mode 100644 widget/gtk/WidgetStyleCache.cpp create mode 100644 widget/gtk/WidgetStyleCache.h create mode 100644 widget/gtk/WidgetTraceEvent.cpp create mode 100644 widget/gtk/WidgetUtilsGtk.cpp create mode 100644 widget/gtk/WidgetUtilsGtk.h create mode 100644 widget/gtk/WindowSurfaceProvider.cpp create mode 100644 widget/gtk/WindowSurfaceProvider.h create mode 100644 widget/gtk/WindowSurfaceWayland.cpp create mode 100644 widget/gtk/WindowSurfaceWayland.h create mode 100644 widget/gtk/WindowSurfaceX11.cpp create mode 100644 widget/gtk/WindowSurfaceX11.h create mode 100644 widget/gtk/WindowSurfaceX11Image.cpp create mode 100644 widget/gtk/WindowSurfaceX11Image.h create mode 100644 widget/gtk/WindowSurfaceXRender.cpp create mode 100644 widget/gtk/WindowSurfaceXRender.h create mode 100644 widget/gtk/compat-gtk3/gdk/gdkversionmacros.h create mode 100644 widget/gtk/compat/gdk/gdkdnd.h create mode 100644 widget/gtk/compat/gdk/gdkkeysyms.h create mode 100644 widget/gtk/compat/gdk/gdkvisual.h create mode 100644 widget/gtk/compat/gdk/gdkwindow.h create mode 100644 widget/gtk/compat/gdk/gdkx.h create mode 100644 widget/gtk/compat/glib/gmem.h create mode 100644 widget/gtk/compat/gtk/gtkwidget.h create mode 100644 widget/gtk/compat/gtk/gtkwindow.h create mode 100644 widget/gtk/components.conf create mode 100644 widget/gtk/crashtests/540078-1.xhtml create mode 100644 widget/gtk/crashtests/673390-1.html create mode 100644 widget/gtk/crashtests/crashtests.list create mode 100644 widget/gtk/gtk3drawing.cpp create mode 100644 widget/gtk/gtkdrawing.h create mode 100644 widget/gtk/maiRedundantObjectFactory.c create mode 100644 widget/gtk/maiRedundantObjectFactory.h create mode 100644 widget/gtk/moz.build create mode 100644 widget/gtk/mozgtk/gtk2/moz.build create mode 100644 widget/gtk/mozgtk/gtk3/moz.build create mode 100644 widget/gtk/mozgtk/moz.build create mode 100644 widget/gtk/mozgtk/mozgtk.c create mode 100644 widget/gtk/mozgtk/stub/moz.build create mode 100644 widget/gtk/mozwayland/moz.build create mode 100644 widget/gtk/mozwayland/mozwayland.c create mode 100644 widget/gtk/mozwayland/mozwayland.h create mode 100644 widget/gtk/nsAppShell.cpp create mode 100644 widget/gtk/nsAppShell.h create mode 100644 widget/gtk/nsApplicationChooser.cpp create mode 100644 widget/gtk/nsApplicationChooser.h create mode 100644 widget/gtk/nsBidiKeyboard.cpp create mode 100644 widget/gtk/nsBidiKeyboard.h create mode 100644 widget/gtk/nsClipboard.cpp create mode 100644 widget/gtk/nsClipboard.h create mode 100644 widget/gtk/nsClipboardWayland.cpp create mode 100644 widget/gtk/nsClipboardWayland.h create mode 100644 widget/gtk/nsClipboardX11.cpp create mode 100644 widget/gtk/nsClipboardX11.h create mode 100644 widget/gtk/nsColorPicker.cpp create mode 100644 widget/gtk/nsColorPicker.h create mode 100644 widget/gtk/nsDeviceContextSpecG.cpp create mode 100644 widget/gtk/nsDeviceContextSpecG.h create mode 100644 widget/gtk/nsDragService.cpp create mode 100644 widget/gtk/nsDragService.h create mode 100644 widget/gtk/nsFilePicker.cpp create mode 100644 widget/gtk/nsFilePicker.h create mode 100644 widget/gtk/nsGTKToolkit.h create mode 100644 widget/gtk/nsGtkCursors.h create mode 100644 widget/gtk/nsGtkKeyUtils.cpp create mode 100644 widget/gtk/nsGtkKeyUtils.h create mode 100644 widget/gtk/nsGtkUtils.h create mode 100644 widget/gtk/nsIImageToPixbuf.h create mode 100644 widget/gtk/nsImageToPixbuf.cpp create mode 100644 widget/gtk/nsImageToPixbuf.h create mode 100644 widget/gtk/nsLookAndFeel.cpp create mode 100644 widget/gtk/nsLookAndFeel.h create mode 100644 widget/gtk/nsNativeBasicThemeGTK.cpp create mode 100644 widget/gtk/nsNativeBasicThemeGTK.h create mode 100644 widget/gtk/nsNativeThemeGTK.cpp create mode 100644 widget/gtk/nsNativeThemeGTK.h create mode 100644 widget/gtk/nsPrintDialogGTK.cpp create mode 100644 widget/gtk/nsPrintDialogGTK.h create mode 100644 widget/gtk/nsPrintSettingsGTK.cpp create mode 100644 widget/gtk/nsPrintSettingsGTK.h create mode 100644 widget/gtk/nsPrintSettingsServiceGTK.cpp create mode 100644 widget/gtk/nsPrintSettingsServiceGTK.h create mode 100644 widget/gtk/nsSound.cpp create mode 100644 widget/gtk/nsSound.h create mode 100644 widget/gtk/nsToolkit.cpp create mode 100644 widget/gtk/nsUserIdleServiceGTK.cpp create mode 100644 widget/gtk/nsUserIdleServiceGTK.h create mode 100644 widget/gtk/nsWaylandDisplay.cpp create mode 100644 widget/gtk/nsWaylandDisplay.h create mode 100644 widget/gtk/nsWidgetFactory.cpp create mode 100644 widget/gtk/nsWidgetFactory.h create mode 100644 widget/gtk/nsWindow.cpp create mode 100644 widget/gtk/nsWindow.h create mode 100644 widget/gtk/wayland/gbm.h create mode 100644 widget/gtk/wayland/gtk-primary-selection-client-protocol.h create mode 100644 widget/gtk/wayland/gtk-primary-selection-protocol.c create mode 100644 widget/gtk/wayland/idle-inhibit-unstable-v1-client-protocol.h create mode 100644 widget/gtk/wayland/idle-inhibit-unstable-v1-protocol.c create mode 100644 widget/gtk/wayland/linux-dmabuf-unstable-v1-client-protocol.h create mode 100644 widget/gtk/wayland/linux-dmabuf-unstable-v1-protocol.c create mode 100644 widget/gtk/wayland/moz.build create mode 100644 widget/gtk/wayland/primary-selection-unstable-v1-client-protocol.h create mode 100644 widget/gtk/wayland/primary-selection-unstable-v1-protocol.c create mode 100644 widget/gtk/wayland/va_drmcommon.h create mode 100644 widget/gtk/wayland/xdg-output-unstable-v1-client-protocol.h create mode 100644 widget/gtk/wayland/xdg-output-unstable-v1-protocol.c create mode 100644 widget/headless/HeadlessClipboard.cpp create mode 100644 widget/headless/HeadlessClipboard.h create mode 100644 widget/headless/HeadlessClipboardData.cpp create mode 100644 widget/headless/HeadlessClipboardData.h create mode 100644 widget/headless/HeadlessCompositorWidget.cpp create mode 100644 widget/headless/HeadlessCompositorWidget.h create mode 100644 widget/headless/HeadlessKeyBindings.cpp create mode 100644 widget/headless/HeadlessKeyBindings.h create mode 100644 widget/headless/HeadlessKeyBindingsCocoa.mm create mode 100644 widget/headless/HeadlessLookAndFeel.h create mode 100644 widget/headless/HeadlessLookAndFeelGTK.cpp create mode 100644 widget/headless/HeadlessScreenHelper.cpp create mode 100644 widget/headless/HeadlessScreenHelper.h create mode 100644 widget/headless/HeadlessSound.cpp create mode 100644 widget/headless/HeadlessSound.h create mode 100644 widget/headless/HeadlessThemeGTK.cpp create mode 100644 widget/headless/HeadlessThemeGTK.h create mode 100644 widget/headless/HeadlessWidget.cpp create mode 100644 widget/headless/HeadlessWidget.h create mode 100644 widget/headless/HeadlessWidgetTypes.ipdlh create mode 100644 widget/headless/moz.build create mode 100644 widget/headless/tests/.eslintrc.js create mode 100644 widget/headless/tests/headless.html create mode 100644 widget/headless/tests/headless_button.html create mode 100644 widget/headless/tests/moz.build create mode 100644 widget/headless/tests/test_headless.js create mode 100644 widget/headless/tests/test_headless_clipboard.js create mode 100644 widget/headless/tests/xpcshell.ini create mode 100644 widget/moz.build create mode 100644 widget/nsAppShellSingleton.h create mode 100644 widget/nsAutoRollup.cpp create mode 100644 widget/nsAutoRollup.h create mode 100644 widget/nsBaseAppShell.cpp create mode 100644 widget/nsBaseAppShell.h create mode 100644 widget/nsBaseClipboard.cpp create mode 100644 widget/nsBaseClipboard.h create mode 100644 widget/nsBaseDragService.cpp create mode 100644 widget/nsBaseDragService.h create mode 100644 widget/nsBaseFilePicker.cpp create mode 100644 widget/nsBaseFilePicker.h create mode 100644 widget/nsBaseScreen.cpp create mode 100644 widget/nsBaseScreen.h create mode 100644 widget/nsBaseWidget.cpp create mode 100644 widget/nsBaseWidget.h create mode 100644 widget/nsCUPSShim.cpp create mode 100644 widget/nsCUPSShim.h create mode 100644 widget/nsClipboardHelper.cpp create mode 100644 widget/nsClipboardHelper.h create mode 100644 widget/nsClipboardProxy.cpp create mode 100644 widget/nsClipboardProxy.h create mode 100644 widget/nsColorPickerProxy.cpp create mode 100644 widget/nsColorPickerProxy.h create mode 100644 widget/nsContentProcessWidgetFactory.cpp create mode 100644 widget/nsDeviceContextSpecProxy.cpp create mode 100644 widget/nsDeviceContextSpecProxy.h create mode 100644 widget/nsDragServiceProxy.cpp create mode 100644 widget/nsDragServiceProxy.h create mode 100644 widget/nsFilePickerProxy.cpp create mode 100644 widget/nsFilePickerProxy.h create mode 100644 widget/nsGUIEventIPC.h create mode 100644 widget/nsHTMLFormatConverter.cpp create mode 100644 widget/nsHTMLFormatConverter.h create mode 100644 widget/nsIAppShell.idl create mode 100644 widget/nsIApplicationChooser.idl create mode 100644 widget/nsIBaseWindow.idl create mode 100644 widget/nsIBidiKeyboard.idl create mode 100644 widget/nsIClipboard.idl create mode 100644 widget/nsIClipboardHelper.idl create mode 100644 widget/nsIClipboardOwner.idl create mode 100644 widget/nsIColorPicker.idl create mode 100644 widget/nsIDeviceContextSpec.h create mode 100644 widget/nsIDisplayInfo.idl create mode 100644 widget/nsIDragService.idl create mode 100644 widget/nsIDragSession.idl create mode 100644 widget/nsIFilePicker.idl create mode 100644 widget/nsIFormatConverter.idl create mode 100644 widget/nsIGfxInfo.idl create mode 100644 widget/nsIGfxInfoDebug.idl create mode 100644 widget/nsIGtkTaskbarProgress.idl create mode 100644 widget/nsIJumpListBuilder.idl create mode 100644 widget/nsIJumpListItem.idl create mode 100644 widget/nsIKeyEventInPluginCallback.h create mode 100644 widget/nsIMacDockSupport.idl create mode 100644 widget/nsIMacFinderProgress.idl create mode 100644 widget/nsIMacSharingService.idl create mode 100644 widget/nsIMacWebAppUtils.idl create mode 100644 widget/nsINativeMenuService.h create mode 100644 widget/nsIPaper.idl create mode 100644 widget/nsIPaperMargin.idl create mode 100644 widget/nsIPluginWidget.h create mode 100644 widget/nsIPrintDialogService.h create mode 100644 widget/nsIPrintSession.idl create mode 100644 widget/nsIPrintSettings.idl create mode 100644 widget/nsIPrintSettingsService.idl create mode 100644 widget/nsIPrintSettingsWin.idl create mode 100644 widget/nsIPrinter.idl create mode 100644 widget/nsIPrinterList.idl create mode 100644 widget/nsIRollupListener.h create mode 100644 widget/nsIScreen.idl create mode 100644 widget/nsIScreenManager.idl create mode 100644 widget/nsISharePicker.idl create mode 100644 widget/nsISound.idl create mode 100644 widget/nsIStandaloneNativeMenu.idl create mode 100644 widget/nsISystemStatusBar.idl create mode 100644 widget/nsITaskbarOverlayIconController.idl create mode 100644 widget/nsITaskbarPreview.idl create mode 100644 widget/nsITaskbarPreviewButton.idl create mode 100644 widget/nsITaskbarPreviewController.idl create mode 100644 widget/nsITaskbarProgress.idl create mode 100644 widget/nsITaskbarTabPreview.idl create mode 100644 widget/nsITaskbarWindowPreview.idl create mode 100644 widget/nsITouchBarHelper.idl create mode 100644 widget/nsITouchBarInput.idl create mode 100644 widget/nsITouchBarUpdater.idl create mode 100644 widget/nsITransferable.idl create mode 100644 widget/nsIUserIdleService.idl create mode 100644 widget/nsIUserIdleServiceInternal.idl create mode 100644 widget/nsIWidget.h create mode 100644 widget/nsIWidgetListener.cpp create mode 100644 widget/nsIWidgetListener.h create mode 100644 widget/nsIWinTaskbar.idl create mode 100644 widget/nsIWindowsUIUtils.idl create mode 100644 widget/nsNativeBasicTheme.cpp create mode 100644 widget/nsNativeBasicTheme.h create mode 100644 widget/nsNativeTheme.cpp create mode 100644 widget/nsNativeTheme.h create mode 100644 widget/nsPaper.cpp create mode 100644 widget/nsPaper.h create mode 100644 widget/nsPaperMargin.cpp create mode 100644 widget/nsPaperMargin.h create mode 100644 widget/nsPrimitiveHelpers.cpp create mode 100644 widget/nsPrimitiveHelpers.h create mode 100644 widget/nsPrintSession.cpp create mode 100644 widget/nsPrintSession.h create mode 100644 widget/nsPrintSettingsImpl.cpp create mode 100644 widget/nsPrintSettingsImpl.h create mode 100644 widget/nsPrintSettingsService.cpp create mode 100644 widget/nsPrintSettingsService.h create mode 100644 widget/nsPrinterBase.cpp create mode 100644 widget/nsPrinterBase.h create mode 100644 widget/nsPrinterCUPS.cpp create mode 100644 widget/nsPrinterCUPS.h create mode 100644 widget/nsPrinterListBase.cpp create mode 100644 widget/nsPrinterListBase.h create mode 100644 widget/nsPrinterListCUPS.cpp create mode 100644 widget/nsPrinterListCUPS.h create mode 100644 widget/nsShmImage.cpp create mode 100644 widget/nsShmImage.h create mode 100644 widget/nsSoundProxy.cpp create mode 100644 widget/nsSoundProxy.h create mode 100644 widget/nsTransferable.cpp create mode 100644 widget/nsTransferable.h create mode 100644 widget/nsUserIdleService.cpp create mode 100644 widget/nsUserIdleService.h create mode 100644 widget/nsWidgetInitData.h create mode 100644 widget/nsWidgetsCID.h create mode 100644 widget/nsXPLookAndFeel.cpp create mode 100644 widget/nsXPLookAndFeel.h create mode 100644 widget/reftests/664925.xhtml create mode 100644 widget/reftests/meter-fallback-default-style-ref.html create mode 100644 widget/reftests/meter-fallback-default-style.html create mode 100644 widget/reftests/meter-native-style-ref.html create mode 100644 widget/reftests/meter-native-style.html create mode 100644 widget/reftests/meter-vertical-native-style-ref.html create mode 100644 widget/reftests/meter-vertical-native-style.html create mode 100644 widget/reftests/progressbar-fallback-default-style-ref.html create mode 100644 widget/reftests/progressbar-fallback-default-style.html create mode 100644 widget/reftests/reftest.list create mode 100644 widget/reftests/scaled-scrollbar.html create mode 100644 widget/reftests/scrollbar-buttons.html create mode 100644 widget/tests/.eslintrc.js create mode 100644 widget/tests/TestChromeMargin.cpp create mode 100644 widget/tests/browser/browser.ini create mode 100644 widget/tests/browser/browser_test_clipboardcache.js create mode 100644 widget/tests/bug586713_window.xhtml create mode 100644 widget/tests/chrome.ini create mode 100644 widget/tests/empty_window.xhtml create mode 100644 widget/tests/file_bug596600.html create mode 100644 widget/tests/file_input_events_on_deactive_window.html create mode 100644 widget/tests/file_secure_input.html create mode 100644 widget/tests/gtest/TestTimeConverter.cpp create mode 100644 widget/tests/gtest/TestTouchResampler.cpp create mode 100644 widget/tests/gtest/moz.build create mode 100644 widget/tests/mochitest.ini create mode 100644 widget/tests/moz.build create mode 100644 widget/tests/native_menus_window.xhtml create mode 100644 widget/tests/native_mouse_mac_window.xhtml create mode 100644 widget/tests/standalone_native_menu_window.xhtml create mode 100644 widget/tests/system_font_changes.xhtml create mode 100644 widget/tests/taskbar_previews.xhtml create mode 100644 widget/tests/test_AltGr_key_events_in_web_content_on_windows.html create mode 100644 widget/tests/test_actionhint.html create mode 100644 widget/tests/test_alwaysontop_focus.xhtml create mode 100644 widget/tests/test_assign_event_data.html create mode 100644 widget/tests/test_autocapitalize.html create mode 100644 widget/tests/test_bug1123480.xhtml create mode 100644 widget/tests/test_bug343416.xhtml create mode 100644 widget/tests/test_bug413277.html create mode 100644 widget/tests/test_bug428405.xhtml create mode 100644 widget/tests/test_bug429954.xhtml create mode 100644 widget/tests/test_bug444800.xhtml create mode 100644 widget/tests/test_bug466599.xhtml create mode 100644 widget/tests/test_bug478536.xhtml create mode 100644 widget/tests/test_bug485118.xhtml create mode 100644 widget/tests/test_bug517396.xhtml create mode 100644 widget/tests/test_bug522217.xhtml create mode 100644 widget/tests/test_bug538242.xhtml create mode 100644 widget/tests/test_bug565392.html create mode 100644 widget/tests/test_bug586713.xhtml create mode 100644 widget/tests/test_bug593307.xhtml create mode 100644 widget/tests/test_bug596600.xhtml create mode 100644 widget/tests/test_bug673301.xhtml create mode 100644 widget/tests/test_bug760802.xhtml create mode 100644 widget/tests/test_clipboard.xhtml create mode 100644 widget/tests/test_composition_text_querycontent.xhtml create mode 100644 widget/tests/test_imestate.html create mode 100644 widget/tests/test_input_events_on_deactive_window.xhtml create mode 100644 widget/tests/test_key_event_counts.xhtml create mode 100644 widget/tests/test_keycodes.xhtml create mode 100644 widget/tests/test_keypress_event_with_alt_on_mac.html create mode 100644 widget/tests/test_mouse_event_with_control_on_mac.html create mode 100644 widget/tests/test_mouse_scroll.xhtml create mode 100644 widget/tests/test_native_key_bindings_mac.html create mode 100644 widget/tests/test_native_menus.xhtml create mode 100644 widget/tests/test_native_mouse_mac.xhtml create mode 100644 widget/tests/test_panel_mouse_coords.xhtml create mode 100644 widget/tests/test_picker_no_crash.html create mode 100644 widget/tests/test_platform_colors.xhtml create mode 100644 widget/tests/test_plugin_scroll_consistency.html create mode 100644 widget/tests/test_position_on_resize.xhtml create mode 100644 widget/tests/test_scrollbar_colors.html create mode 100644 widget/tests/test_secure_input.html create mode 100644 widget/tests/test_sizemode_events.xhtml create mode 100644 widget/tests/test_standalone_native_menu.xhtml create mode 100644 widget/tests/test_system_font_changes.xhtml create mode 100644 widget/tests/test_system_status_bar.xhtml create mode 100644 widget/tests/test_taskbar_progress.xhtml create mode 100644 widget/tests/test_transferable_overflow.xhtml create mode 100644 widget/tests/test_wheeltransaction.xhtml create mode 100644 widget/tests/unit/test_macsharingservice.js create mode 100644 widget/tests/unit/test_macwebapputils.js create mode 100644 widget/tests/unit/test_taskbar_jumplistitems.js create mode 100644 widget/tests/unit/xpcshell.ini create mode 100644 widget/tests/utils.js create mode 100644 widget/tests/window_bug429954.xhtml create mode 100644 widget/tests/window_bug478536.xhtml create mode 100644 widget/tests/window_bug522217.xhtml create mode 100644 widget/tests/window_bug538242.xhtml create mode 100644 widget/tests/window_bug593307_centerscreen.xhtml create mode 100644 widget/tests/window_bug593307_offscreen.xhtml create mode 100644 widget/tests/window_composition_text_querycontent.xhtml create mode 100644 widget/tests/window_imestate_iframes.html create mode 100644 widget/tests/window_mouse_scroll_win.html create mode 100644 widget/tests/window_mouse_scroll_win_2.html create mode 100644 widget/tests/window_picker_no_crash_child.html create mode 100644 widget/tests/window_state_windows.xhtml create mode 100644 widget/tests/window_wheeltransaction.xhtml create mode 100644 widget/uikit/GfxInfo.cpp create mode 100644 widget/uikit/GfxInfo.h create mode 100644 widget/uikit/moz.build create mode 100644 widget/uikit/nsAppShell.h create mode 100644 widget/uikit/nsAppShell.mm create mode 100644 widget/uikit/nsLookAndFeel.h create mode 100644 widget/uikit/nsLookAndFeel.mm create mode 100644 widget/uikit/nsScreenManager.h create mode 100644 widget/uikit/nsScreenManager.mm create mode 100644 widget/uikit/nsWidgetFactory.mm create mode 100644 widget/uikit/nsWindow.h create mode 100644 widget/uikit/nsWindow.mm create mode 100644 widget/windows/AudioSession.cpp create mode 100644 widget/windows/AudioSession.h create mode 100644 widget/windows/CompositorWidgetChild.cpp create mode 100644 widget/windows/CompositorWidgetChild.h create mode 100644 widget/windows/CompositorWidgetParent.cpp create mode 100644 widget/windows/CompositorWidgetParent.h create mode 100644 widget/windows/DirectManipulationOwner.cpp create mode 100644 widget/windows/DirectManipulationOwner.h create mode 100644 widget/windows/GfxInfo.cpp create mode 100644 widget/windows/GfxInfo.h create mode 100644 widget/windows/IEnumFE.cpp create mode 100644 widget/windows/IEnumFE.h create mode 100644 widget/windows/IMMHandler.cpp create mode 100644 widget/windows/IMMHandler.h create mode 100644 widget/windows/IconLoaderHelperWin.cpp create mode 100644 widget/windows/IconLoaderHelperWin.h create mode 100644 widget/windows/InProcessWinCompositorWidget.cpp create mode 100644 widget/windows/InProcessWinCompositorWidget.h create mode 100644 widget/windows/InkCollector.cpp create mode 100644 widget/windows/InkCollector.h create mode 100644 widget/windows/InputDeviceUtils.cpp create mode 100644 widget/windows/InputDeviceUtils.h create mode 100644 widget/windows/JumpListBuilder.cpp create mode 100644 widget/windows/JumpListBuilder.h create mode 100644 widget/windows/JumpListItem.cpp create mode 100644 widget/windows/JumpListItem.h create mode 100644 widget/windows/KeyboardLayout.cpp create mode 100644 widget/windows/KeyboardLayout.h create mode 100644 widget/windows/LSPAnnotator.cpp create mode 100644 widget/windows/MediaKeysEventSourceFactory.cpp create mode 100644 widget/windows/OSKInputPaneManager.cpp create mode 100644 widget/windows/OSKInputPaneManager.h create mode 100644 widget/windows/PCompositorWidget.ipdl create mode 100644 widget/windows/PlatformWidgetTypes.ipdlh create mode 100644 widget/windows/RemoteBackbuffer.cpp create mode 100644 widget/windows/RemoteBackbuffer.h create mode 100644 widget/windows/ScreenHelperWin.cpp create mode 100644 widget/windows/ScreenHelperWin.h create mode 100644 widget/windows/ScrollbarUtil.cpp create mode 100644 widget/windows/ScrollbarUtil.h create mode 100644 widget/windows/ShellHeaderOnlyUtils.h create mode 100644 widget/windows/SystemStatusBar.cpp create mode 100644 widget/windows/SystemStatusBar.h create mode 100644 widget/windows/TSFTextStore.cpp create mode 100644 widget/windows/TSFTextStore.h create mode 100644 widget/windows/TaskbarPreview.cpp create mode 100644 widget/windows/TaskbarPreview.h create mode 100644 widget/windows/TaskbarPreviewButton.cpp create mode 100644 widget/windows/TaskbarPreviewButton.h create mode 100644 widget/windows/TaskbarTabPreview.cpp create mode 100644 widget/windows/TaskbarTabPreview.h create mode 100644 widget/windows/TaskbarWindowPreview.cpp create mode 100644 widget/windows/TaskbarWindowPreview.h create mode 100644 widget/windows/ToastNotification.cpp create mode 100644 widget/windows/ToastNotification.h create mode 100644 widget/windows/ToastNotificationHandler.cpp create mode 100644 widget/windows/ToastNotificationHandler.h create mode 100644 widget/windows/UrlmonHeaderOnlyUtils.h create mode 100644 widget/windows/WidgetTraceEvent.cpp create mode 100644 widget/windows/WinCompositorWidget.cpp create mode 100644 widget/windows/WinCompositorWidget.h create mode 100644 widget/windows/WinCompositorWindowThread.cpp create mode 100644 widget/windows/WinCompositorWindowThread.h create mode 100644 widget/windows/WinContentSystemParameters.cpp create mode 100644 widget/windows/WinContentSystemParameters.h create mode 100644 widget/windows/WinHeaderOnlyUtils.h create mode 100644 widget/windows/WinIMEHandler.cpp create mode 100644 widget/windows/WinIMEHandler.h create mode 100644 widget/windows/WinMessages.h create mode 100644 widget/windows/WinModifierKeyState.h create mode 100644 widget/windows/WinMouseScrollHandler.cpp create mode 100644 widget/windows/WinMouseScrollHandler.h create mode 100644 widget/windows/WinNativeEventData.h create mode 100644 widget/windows/WinPointerEvents.cpp create mode 100644 widget/windows/WinPointerEvents.h create mode 100644 widget/windows/WinTaskbar.cpp create mode 100644 widget/windows/WinTaskbar.h create mode 100644 widget/windows/WinTextEventDispatcherListener.cpp create mode 100644 widget/windows/WinTextEventDispatcherListener.h create mode 100644 widget/windows/WinUtils.cpp create mode 100644 widget/windows/WinUtils.h create mode 100644 widget/windows/WindowHook.cpp create mode 100644 widget/windows/WindowHook.h create mode 100644 widget/windows/WindowsConsole.cpp create mode 100644 widget/windows/WindowsConsole.h create mode 100644 widget/windows/WindowsEMF.cpp create mode 100644 widget/windows/WindowsEMF.h create mode 100644 widget/windows/WindowsSMTCProvider.cpp create mode 100644 widget/windows/WindowsSMTCProvider.h create mode 100644 widget/windows/WindowsUIUtils.cpp create mode 100644 widget/windows/WindowsUIUtils.h create mode 100644 widget/windows/components.conf create mode 100644 widget/windows/moz.build create mode 100644 widget/windows/nsAppShell.cpp create mode 100644 widget/windows/nsAppShell.h create mode 100644 widget/windows/nsBidiKeyboard.cpp create mode 100644 widget/windows/nsBidiKeyboard.h create mode 100644 widget/windows/nsClipboard.cpp create mode 100644 widget/windows/nsClipboard.h create mode 100644 widget/windows/nsColorPicker.cpp create mode 100644 widget/windows/nsColorPicker.h create mode 100644 widget/windows/nsDataObj.cpp create mode 100644 widget/windows/nsDataObj.h create mode 100644 widget/windows/nsDataObjCollection.cpp create mode 100644 widget/windows/nsDataObjCollection.h create mode 100644 widget/windows/nsDeviceContextSpecWin.cpp create mode 100644 widget/windows/nsDeviceContextSpecWin.h create mode 100644 widget/windows/nsDragService.cpp create mode 100644 widget/windows/nsDragService.h create mode 100644 widget/windows/nsFilePicker.cpp create mode 100644 widget/windows/nsFilePicker.h create mode 100644 widget/windows/nsLookAndFeel.cpp create mode 100644 widget/windows/nsLookAndFeel.h create mode 100644 widget/windows/nsNativeBasicThemeWin.cpp create mode 100644 widget/windows/nsNativeBasicThemeWin.h create mode 100644 widget/windows/nsNativeDragSource.cpp create mode 100644 widget/windows/nsNativeDragSource.h create mode 100644 widget/windows/nsNativeDragTarget.cpp create mode 100644 widget/windows/nsNativeDragTarget.h create mode 100644 widget/windows/nsNativeThemeWin.cpp create mode 100644 widget/windows/nsNativeThemeWin.h create mode 100644 widget/windows/nsPrintDialogUtil.cpp create mode 100644 widget/windows/nsPrintDialogUtil.h create mode 100644 widget/windows/nsPrintDialogWin.cpp create mode 100644 widget/windows/nsPrintDialogWin.h create mode 100644 widget/windows/nsPrintSettingsServiceWin.cpp create mode 100644 widget/windows/nsPrintSettingsServiceWin.h create mode 100644 widget/windows/nsPrintSettingsWin.cpp create mode 100644 widget/windows/nsPrintSettingsWin.h create mode 100644 widget/windows/nsPrinterWin.cpp create mode 100644 widget/windows/nsPrinterWin.h create mode 100644 widget/windows/nsSharePicker.cpp create mode 100644 widget/windows/nsSharePicker.h create mode 100644 widget/windows/nsSound.cpp create mode 100644 widget/windows/nsSound.h create mode 100644 widget/windows/nsToolkit.cpp create mode 100644 widget/windows/nsToolkit.h create mode 100644 widget/windows/nsUXThemeConstants.h create mode 100644 widget/windows/nsUXThemeData.cpp create mode 100644 widget/windows/nsUXThemeData.h create mode 100644 widget/windows/nsUserIdleServiceWin.cpp create mode 100644 widget/windows/nsUserIdleServiceWin.h create mode 100644 widget/windows/nsWidgetFactory.cpp create mode 100644 widget/windows/nsWidgetFactory.h create mode 100644 widget/windows/nsWinGesture.cpp create mode 100644 widget/windows/nsWinGesture.h create mode 100644 widget/windows/nsWindow.cpp create mode 100644 widget/windows/nsWindow.h create mode 100644 widget/windows/nsWindowBase.cpp create mode 100644 widget/windows/nsWindowBase.h create mode 100644 widget/windows/nsWindowDbg.cpp create mode 100644 widget/windows/nsWindowDbg.h create mode 100644 widget/windows/nsWindowDefs.h create mode 100644 widget/windows/nsWindowGfx.cpp create mode 100644 widget/windows/nsWindowGfx.h create mode 100644 widget/windows/nsdefs.h create mode 100644 widget/windows/res/aliasb.cur create mode 100644 widget/windows/res/cell.cur create mode 100644 widget/windows/res/col_resize.cur create mode 100644 widget/windows/res/copy.cur create mode 100644 widget/windows/res/grab.cur create mode 100644 widget/windows/res/grabbing.cur create mode 100644 widget/windows/res/none.cur create mode 100644 widget/windows/res/row_resize.cur create mode 100644 widget/windows/res/select.cur create mode 100644 widget/windows/res/vertical_text.cur create mode 100644 widget/windows/res/zoom_in.cur create mode 100644 widget/windows/res/zoom_out.cur create mode 100644 widget/windows/resource.h create mode 100644 widget/windows/tests/TestUriValidation.cpp create mode 100644 widget/windows/tests/TestUrisToValidate.h create mode 100644 widget/windows/tests/TestWinDND.cpp create mode 100644 widget/windows/tests/moz.build create mode 100644 widget/windows/touchinjection_sdk80.h create mode 100644 widget/windows/widget.rc create mode 100644 widget/x11/keysym2ucs.c create mode 100644 widget/x11/keysym2ucs.h create mode 100644 widget/x11/moz.build (limited to 'widget') diff --git a/widget/BasicEvents.h b/widget/BasicEvents.h new file mode 100644 index 0000000000..eb66579e10 --- /dev/null +++ b/widget/BasicEvents.h @@ -0,0 +1,1394 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_BasicEvents_h__ +#define mozilla_BasicEvents_h__ + +#include +#include + +#include "mozilla/EventForwards.h" +#include "mozilla/TimeStamp.h" +#include "mozilla/dom/EventTarget.h" +#include "mozilla/layers/LayersTypes.h" +#include "nsCOMPtr.h" +#include "nsAtom.h" +#include "nsISupportsImpl.h" +#include "nsIWidget.h" +#include "nsString.h" +#include "Units.h" + +#ifdef DEBUG +# include "nsXULAppAPI.h" +#endif // #ifdef DEBUG + +class nsIPrincipal; + +namespace IPC { +template +struct ParamTraits; +} // namespace IPC + +namespace mozilla { + +class EventTargetChainItem; + +enum class CrossProcessForwarding { + // eStop prevents the event to be sent to remote process. + eStop, + // eAllow keeps current state of the event whether it's sent to remote + // process. In other words, eAllow does NOT mean that making the event + // sent to remote process when IsCrossProcessForwardingStopped() returns + // true. + eAllow, +}; + +/****************************************************************************** + * mozilla::BaseEventFlags + * + * BaseEventFlags must be a POD struct for safe to use memcpy (including + * in ParamTraits). So don't make virtual methods, constructor, + * destructor and operators. + * This is necessary for VC which is NOT C++0x compiler. + ******************************************************************************/ + +struct BaseEventFlags { + public: + // If mIsTrusted is true, the event is a trusted event. Otherwise, it's + // an untrusted event. + bool mIsTrusted : 1; + // If mInBubblingPhase is true, the event is in bubbling phase or target + // phase. + bool mInBubblingPhase : 1; + // If mInCapturePhase is true, the event is in capture phase or target phase. + bool mInCapturePhase : 1; + // If mInSystemGroup is true, the event is being dispatched in system group. + bool mInSystemGroup : 1; + // If mCancelable is true, the event can be consumed. I.e., calling + // dom::Event::PreventDefault() can prevent the default action. + bool mCancelable : 1; + // If mBubbles is true, the event can bubble. Otherwise, cannot be handled + // in bubbling phase. + bool mBubbles : 1; + // If mPropagationStopped is true, dom::Event::StopPropagation() or + // dom::Event::StopImmediatePropagation() has been called. + bool mPropagationStopped : 1; + // If mImmediatePropagationStopped is true, + // dom::Event::StopImmediatePropagation() has been called. + // Note that mPropagationStopped must be true when this is true. + bool mImmediatePropagationStopped : 1; + // If mDefaultPrevented is true, the event has been consumed. + // E.g., dom::Event::PreventDefault() has been called or + // the default action has been performed. + bool mDefaultPrevented : 1; + // If mDefaultPreventedByContent is true, the event has been + // consumed by content. + // Note that mDefaultPrevented must be true when this is true. + bool mDefaultPreventedByContent : 1; + // If mDefaultPreventedByChrome is true, the event has been + // consumed by chrome. + // Note that mDefaultPrevented must be true when this is true. + bool mDefaultPreventedByChrome : 1; + // mMultipleActionsPrevented may be used when default handling don't want to + // be prevented, but only one of the event targets should handle the event. + // For example, when a