gecko-dev/widget/cocoa
Emilio Cobos Álvarez 8724285359 Bug 1757402 - Add basic native context menu support on GTK. r=stransky
I had this written somewhere in a branch, but given bug 1419151, I
cleaned it up a bit and turned it into an actual patch that works.

Behind a pref for now, because at the very least it needs:

 * Support for some testing-only functions.
 * Support for custom icons (for web extensions and so on).

The key point is that this adds the relevant code to map a XUL menu to a
GMenuModel, which we could then export via
`g_dbus_connection_export_menu_model()`, which seems like a much simpler
approach to support stuff like bug 1419151.

See the MenuModel class in NativeMenuGtk as for how is this done.

Differential Revision: https://phabricator.services.mozilla.com/D139845
2022-02-28 14:53:24 +00:00
..
crashtests
cursors
docs Bug 1748904 - Fix use of now-obsolete eval_rst directives in docs r=firefox-source-docs-reviewers,ahal DONTBUILD 2022-01-06 20:21:24 +00:00
resources/MainMenu.nib
AppearanceOverride.h Bug 1736078 - Remove widget.macos.support-dark-appearance. r=mstange 2021-10-15 18:53:53 +00:00
AppearanceOverride.mm Bug 1736078 - Remove widget.macos.support-dark-appearance. r=mstange 2021-10-15 18:53:53 +00:00
CFTypeRefPtr.h
components.conf
CustomCocoaEvents.h
DesktopBackgroundImage.h
DesktopBackgroundImage.mm
GfxInfo.h
GfxInfo.mm Bug 1724794 - Remove Software WebRender allow/blocklist plumbing. r=gfx-reviewers,jrmuizel 2021-08-11 14:07:02 +00:00
MacThemeGeometryType.h
MediaHardwareKeysEventSourceMac.h
MediaHardwareKeysEventSourceMac.mm
MediaHardwareKeysEventSourceMacMediaCenter.h
MediaHardwareKeysEventSourceMacMediaCenter.mm
MediaKeysEventSourceFactory.cpp
moz.build Bug 1757402 - Add basic native context menu support on GTK. r=stransky 2022-02-28 14:53:24 +00:00
MOZIconHelper.h
MOZIconHelper.mm
MOZMenuOpeningCoordinator.h Bug 1746955 - Make macOS context menus respect the color-scheme CSS property. r=mac-reviewers,mstange 2021-12-29 21:52:02 +00:00
MOZMenuOpeningCoordinator.mm Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
mozView.h
NativeKeyBindings.h Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
NativeKeyBindings.mm Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
NativeMenuMac.h Bug 1757402 - Add basic native context menu support on GTK. r=stransky 2022-02-28 14:53:24 +00:00
NativeMenuMac.mm Bug 1757402 - Add basic native context menu support on GTK. r=stransky 2022-02-28 14:53:24 +00:00
NativeMenuSupport.mm Bug 1719939 - remove proton pref from static pref list and its last C++ consumer, r=mstange 2021-12-22 21:41:41 +00:00
nsAppShell.h Bug 1722261 - Use ProfilingStack inside ThreadRegistrationData - r=canaltinova 2021-08-24 04:47:15 +00:00
nsAppShell.mm Bug 1754519 - Add missing profiler_thread_sleep annotations, r=gerald,necko-reviewers,kershaw. 2022-02-11 15:19:46 +00:00
nsBidiKeyboard.h
nsBidiKeyboard.mm
nsChangeObserver.h
nsChildView.h Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
nsChildView.mm Bug 1756241 - Fix drag coordinates on macOS after D139243. r=mac-reviewers,bradwerth 2022-02-22 19:06:59 +00:00
nsClipboard.h
nsClipboard.mm Backed out changeset 00f6bd7aa727 (bug 1755481) for causing multiple clipboard related failures CLOSED TREE 2022-02-16 12:14:58 +02:00
nsCocoaFeatures.h Bug 1722833 - Add nsCocoaFeatures::OnMontereyOrLater(). r=mac-reviewers,spohl 2021-10-18 21:29:42 +00:00
nsCocoaFeatures.mm Bug 1722833 - Add nsCocoaFeatures::OnMontereyOrLater(). r=mac-reviewers,spohl 2021-10-18 21:29:42 +00:00
nsCocoaUtils.h Bug 1722758 - Patch 4 - Encode additional characters in the URL required for NSURL compatiblity r=mac-reviewers,mstange 2021-08-20 18:54:04 +00:00
nsCocoaUtils.mm Bug 1722758 - Patch 4 - Encode additional characters in the URL required for NSURL compatiblity r=mac-reviewers,mstange 2021-08-20 18:54:04 +00:00
nsCocoaWindow.h Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
nsCocoaWindow.mm Bug 1191862 - part 1: Make nsIWidget::NativeKeyBindingsType independent from nsIWidget and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
nsColorPicker.h
nsColorPicker.mm
nsCursorManager.h
nsCursorManager.mm Bug 1739352 - Make sure to set mCurrentMacCursor if needed. r=mstange 2021-11-10 10:20:45 +00:00
nsDeviceContextSpecX.h
nsDeviceContextSpecX.mm
nsDragService.h
nsDragService.mm Bug 1663508: Collect information about threads that are used during drag sessions on macOS (nightly-only). r=mstange 2022-01-11 21:24:04 +00:00
nsFilePicker.h
nsFilePicker.mm
nsLookAndFeel.h Bug 1633860: Place window control buttons on the right side on macOS when using an RTL system locale, regardless of the Firefox locale. r=mstange,emilio,harry 2021-09-22 18:51:20 +00:00
nsLookAndFeel.mm Bug 1754547 - Generalize moz-os-version into moz-platform. r=dao,preferences-reviewers,Gijs 2022-02-10 15:50:31 +00:00
nsMacCursor.h
nsMacCursor.mm
nsMacDockSupport.h
nsMacDockSupport.mm Bug 1728580: Support replacing of an existing Dock icon during pinning on macOS if the first icon is pointing to an app inside a DMG. r=mstange 2021-09-02 16:48:38 +00:00
nsMacFinderProgress.h
nsMacFinderProgress.mm
nsMacSharingService.h
nsMacSharingService.mm Bug 1525788 - Support sending Handoff. r=mstange,Gijs 2021-11-02 18:08:08 +00:00
nsMacUserActivityUpdater.h Bug 1525788 - Support sending Handoff. r=mstange,Gijs 2021-11-02 18:08:08 +00:00
nsMacUserActivityUpdater.mm Bug 1740513 - Don't attempt macOS Handoff in headless mode. r=mstange 2021-11-24 23:10:35 +00:00
nsMacWebAppUtils.h
nsMacWebAppUtils.mm
nsMenuBarX.h
nsMenuBarX.mm Bug 1755779 - Rebuild the menus when there is a locale change; r=mstange 2022-02-23 14:44:07 +00:00
nsMenuGroupOwnerX.h Bug 1755779 - Rebuild the menus when there is a locale change; r=mstange 2022-02-23 14:44:07 +00:00
nsMenuGroupOwnerX.mm Bug 1755779 - Rebuild the menus when there is a locale change; r=mstange 2022-02-23 14:44:07 +00:00
nsMenuItemIconX.h
nsMenuItemIconX.mm
nsMenuItemX.h
nsMenuItemX.mm
nsMenuParentX.h
nsMenuUtilsX.h
nsMenuUtilsX.mm
nsMenuX.h Bug 1539884 - Part 35: Mark relevant nsMenuX methods to CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:25 +00:00
nsMenuX.mm Bug 1539884 - Part 35: Mark relevant nsMenuX methods to CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:25 +00:00
nsNativeThemeCocoa.h Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-31 17:00:21 +00:00
nsNativeThemeCocoa.mm Bug 1749531 - Allow to override native theme scrollbar styles. r=mstange 2022-01-25 21:31:44 +00:00
nsNativeThemeColors.h Bug 1746955 - Make macOS context menus respect the color-scheme CSS property. r=mac-reviewers,mstange 2021-12-29 21:52:02 +00:00
nsPIWidgetCocoa.idl
nsPrintDialogX.h
nsPrintDialogX.mm
nsPrintSettingsServiceX.h
nsPrintSettingsServiceX.mm
nsPrintSettingsX.h
nsPrintSettingsX.mm Bug 1740421. Fix print-to-PDF on Mac OS X 10.12 (e.g. printing with no printers installed). r=jfkthame 2021-11-29 14:19:19 +00:00
nsSandboxViolationSink.h
nsSandboxViolationSink.mm
nsSound.h
nsSound.mm
nsStandaloneNativeMenu.h Bug 1737620 - Fix misc errors in unified builds. r=mstange 2021-10-28 14:31:54 +00:00
nsStandaloneNativeMenu.mm
nsSystemStatusBarCocoa.h
nsSystemStatusBarCocoa.mm
nsToolkit.h
nsToolkit.mm
nsTouchBar.h
nsTouchBar.mm
nsTouchBarInput.h
nsTouchBarInput.mm
nsTouchBarInputIcon.h
nsTouchBarInputIcon.mm Bug 1737620 - Fix misc errors in unified builds. r=mstange 2021-10-28 14:31:54 +00:00
nsTouchBarNativeAPIDefines.h
nsTouchBarUpdater.h
nsTouchBarUpdater.mm
nsUserIdleServiceX.h
nsUserIdleServiceX.mm
nsWidgetFactory.mm Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen 2022-01-12 20:52:58 +00:00
nsWindowMap.h
nsWindowMap.mm
OSXNotificationCenter.h
OSXNotificationCenter.mm
ScreenHelperCocoa.h
ScreenHelperCocoa.mm Bug 1700370 - Don't use ScreenManager after shutdown phase is started. r=gsvelto 2021-12-09 12:13:28 +00:00
SDKDeclarations.h Backed out 5 changesets (bug 1745492) for reftest failures on image-10bits-rendering-720-video.html CLOSED TREE 2022-02-23 21:15:58 +02:00
TextInputHandler.h
TextInputHandler.mm Bug 1746104 - part 5-4: Make widget code handle no selection case at getting selection change notifications r=m_kato,geckoview-reviewers 2022-02-07 22:33:38 +00:00
VibrancyManager.h
VibrancyManager.mm
ViewRegion.h
ViewRegion.mm
WidgetTraceEvent.mm