gecko-dev/widget/cocoa
Jonathan Watt 07bafd2423 Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida
OS print drivers/devices know nothing about page dimensions unless we tell
them. Previously, the physical page dimensions (including orientation) have
always been the same, so communicating their dimensions once at the start of
a print has been enough. In preparation for supporting different "physical"
page dimensions (in the immediate future only different page orientations) when
we save to PDF, we need to have the infrastructure to pass dimensions through
on a page-by-page basis. This patch adds that.

None of the PrintTarget subclasses do anything with this extra information yet,
but in a follow-up patch PrintTargetPDF will use this information to create
PDFs with mixed page orientations.

Differential Revision: https://phabricator.services.mozilla.com/D179423
2023-07-10 14:26:12 +00:00
..
crashtests
cursors
docs Bug 1833998 - Switch Firefox builds to macOS 13.3 SDK. r=firefox-build-system-reviewers,sergesanspaille 2023-05-25 09:48:54 +00:00
resources/MainMenu.nib
AppearanceOverride.h
AppearanceOverride.mm
CFTypeRefPtr.h
CustomCocoaEvents.h
DesktopBackgroundImage.h
DesktopBackgroundImage.mm
GfxInfo.h Bug 1812698 - Expose desktopEnvironment via nsIXULRuntime rather than nsIGfxInfo. r=stransky 2023-02-01 13:14:50 +00:00
GfxInfo.mm Bug 1828192 [Linux] Run glxtest directly from GfxInfo::GetData() in case we're missing glx test data r=emilio 2023-04-20 08:54:17 +00:00
MOZIconHelper.h Bug 1817071 - Remove unused image-region support from cocoa code. r=mstange,mac-reviewers 2023-02-18 01:16:28 +00:00
MOZIconHelper.mm Bug 1817071 - Remove unused image-region support from cocoa code. r=mstange,mac-reviewers 2023-02-18 01:16:28 +00:00
MOZMenuOpeningCoordinator.h Bug 1831760 - Use a native popup menu for positioned popups on Mac. r=dao,mstange 2023-05-18 05:51:19 +00:00
MOZMenuOpeningCoordinator.mm Bug 1831760 - Use a native popup menu for positioned popups on Mac. r=dao,mstange 2023-05-18 05:51:19 +00:00
MacThemeGeometryType.h Bug 1771792 - Remove some dead vibrancy code. r=mstange 2022-05-31 10:43:29 +00:00
MediaHardwareKeysEventSourceMac.h
MediaHardwareKeysEventSourceMac.mm
MediaHardwareKeysEventSourceMacMediaCenter.h
MediaHardwareKeysEventSourceMacMediaCenter.mm Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
MediaKeysEventSourceFactory.cpp
NativeKeyBindings.h
NativeKeyBindings.mm
NativeMenuMac.h Bug 1831760 - Use a native popup menu for positioned popups on Mac. r=dao,mstange 2023-05-18 05:51:19 +00:00
NativeMenuMac.mm Bug 1831760 - Use a native popup menu for positioned popups on Mac. r=dao,mstange 2023-05-18 05:51:19 +00:00
NativeMenuSupport.mm
OSXNotificationCenter.h
OSXNotificationCenter.mm Bug 1073717 - [Web Notifications] Add support for "silent" notifications on macOS. r=mstange 2023-01-07 01:03:52 +00:00
SDKDeclarations.h Backed out 2 changesets (bug 1773752, bug 1696513) for causing build bustages. CLOSED TREE 2022-06-11 02:35:43 +03:00
ScreenHelperCocoa.h
ScreenHelperCocoa.mm Bug 1767172 - Remove custom screen info handling from GfxInfo, use ScreenManager for that. r=jrmuizel,handyman,stransky 2022-05-06 23:37:25 +00:00
TextInputHandler.h
TextInputHandler.mm Bug 1842072 - Prevent IntCoordTyped's constructor from accepting non-integral parameters. r=botond 2023-07-08 07:45:44 +00:00
TextRecognition.mm Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio 2022-08-10 19:38:46 +00:00
VibrancyManager.h Bug 1771792 - Remove some dead vibrancy code. r=mstange 2022-05-31 10:43:29 +00:00
VibrancyManager.mm Bug 1771792 - Remove some dead vibrancy code. r=mstange 2022-05-31 10:43:29 +00:00
ViewRegion.h
ViewRegion.mm
WidgetTraceEvent.mm
components.conf Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8 2022-06-30 09:12:18 +00:00
metrics.yaml Bug 1832454: Remove the startup.is_restored_by_macos glean metric. r=chutten 2023-06-15 17:46:16 +00:00
moz.build Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
mozView.h
nsAppShell.h
nsAppShell.mm Bug 1582311 - Remove warning about nsAppShell::Exit() being called redundantly. r=spohl DONTBUILD 2023-07-06 16:28:14 +00:00
nsBidiKeyboard.h
nsBidiKeyboard.mm
nsChangeObserver.h
nsChildView.h Bug 1816447: Stop firing mouseup event after dnd performed r=masayuki 2023-07-05 07:37:12 +00:00
nsChildView.mm Bug 1816447: Stop firing mouseup event after dnd performed r=masayuki 2023-07-05 07:37:12 +00:00
nsClipboard.h Bug 1810850 - Part 4: Refactor around nsBase::ClipboardEmptyClipboard; r=cmartin,mstange 2023-06-26 21:02:40 +00:00
nsClipboard.mm Bug 1835059 - [Cocoa] Make clipboard supports all operations on kSelectionCache type; r=mstange 2023-06-27 14:29:03 +00:00
nsCocoaFeatures.h Bug 1776210 - [macOS 13] Stack underflow crashes on Wifi Monitor thread on macOS 13 (Ventura) beta r=mac-reviewers,necko-reviewers,mstange,dragana 2022-07-25 14:09:09 +00:00
nsCocoaFeatures.mm Bug 1776210 - [macOS 13] Stack underflow crashes on Wifi Monitor thread on macOS 13 (Ventura) beta r=mac-reviewers,necko-reviewers,mstange,dragana 2022-07-25 14:09:09 +00:00
nsCocoaUtils.h Bug 639707: Add telemetry to detect how often we are getting restored by macOS vs. users manually launching the application. r=mstange 2023-02-03 03:28:06 +00:00
nsCocoaUtils.mm Bug 1832454: Remove the startup.is_restored_by_macos glean metric. r=chutten 2023-06-15 17:46:16 +00:00
nsCocoaWindow.h Bug 1837007 Part 1: Make nsCocoaWindow run its own event loop when any window is in a native fullscreen transition. r=mstange 2023-06-08 20:37:42 +00:00
nsCocoaWindow.mm Bug 1837007 Part 1: Make nsCocoaWindow run its own event loop when any window is in a native fullscreen transition. r=mstange 2023-06-08 20:37:42 +00:00
nsColorPicker.h Bug 960984 - Implement the list attribute for <input type=color>. r=emilio,geckoview-reviewers,m_kato 2022-12-14 18:17:59 +00:00
nsColorPicker.mm Bug 960984 - Implement the list attribute for <input type=color>. r=emilio,geckoview-reviewers,m_kato 2022-12-14 18:17:59 +00:00
nsCursorManager.h Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE 2023-03-14 19:53:58 +02:00
nsCursorManager.mm Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsDeviceContextSpecX.h Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida 2023-07-10 14:26:12 +00:00
nsDeviceContextSpecX.mm Bug 1785046 - Part 3: Let `nsIDeviceContextSpec::EndDocument` & `nsDeviceContext::EndDocument` return `MozPromise`. r=nika,emilio,geckoview-reviewers,m_kato 2022-12-19 15:42:48 +00:00
nsDragService.h Bug 1762392 - Part 2: Put utility functions for NSPasteboardItem to nsCocoaUtils; r=spohl 2023-01-09 18:27:37 +00:00
nsDragService.mm Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
nsFilePicker.h Bug 1816740 [3/6] - convert nsIFilePicker::result* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika 2023-02-22 21:05:23 +00:00
nsFilePicker.mm Bug 1816740 [3/6] - convert nsIFilePicker::result* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika 2023-02-22 21:05:23 +00:00
nsLookAndFeel.h Bug 1794626: Create invert_colors telemetry probe and maintain its value via LookAndFeel r=mstange 2022-11-07 23:49:20 +00:00
nsLookAndFeel.mm Bug 1838460 - Remove unused moz-menubartext color. r=geckoview-reviewers,devtools-reviewers,nchevobbe,amejiamarmol 2023-07-07 15:23:10 +00:00
nsMacCursor.h Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE 2023-03-14 19:53:58 +02:00
nsMacCursor.mm Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE 2023-03-14 19:53:58 +02:00
nsMacDockSupport.h
nsMacDockSupport.mm
nsMacFinderProgress.h
nsMacFinderProgress.mm
nsMacSharingService.h
nsMacSharingService.mm Bug 1769290 - Part 26: Emit errors from JSHandleRootedTypedefChecker r=andi,geckoview-reviewers,owlish 2022-08-09 14:13:30 +00:00
nsMacUserActivityUpdater.h
nsMacUserActivityUpdater.mm Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsMacWebAppUtils.h
nsMacWebAppUtils.mm
nsMenuBarX.h Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsMenuBarX.mm Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar 2023-06-23 10:01:32 +00:00
nsMenuGroupOwnerX.h Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsMenuGroupOwnerX.mm Bug 1827856 - Remove nativeAnonymousChildList observers. r=smaug,credential-management-reviewers,devtools-reviewers,sgalich,nchevobbe 2023-04-18 14:58:34 +00:00
nsMenuItemIconX.h Bug 1817071 - Remove unused image-region support from cocoa code. r=mstange,mac-reviewers 2023-02-18 01:16:28 +00:00
nsMenuItemIconX.mm Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar 2023-06-23 10:01:32 +00:00
nsMenuItemX.h Bug 1748815 - Always run command events outside the context menu event loop. r=bradwerth 2022-06-23 15:05:39 +00:00
nsMenuItemX.mm Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar 2023-06-23 10:01:32 +00:00
nsMenuParentX.h
nsMenuUtilsX.h Bug 1748815 - Add a workaround for test_standalone_native_menu.xhtml and test_native_menus.xhtml, which expect menu items to be activated synchronously. r=bradwerth 2022-06-23 15:05:39 +00:00
nsMenuUtilsX.mm Bug 1748815 - Add a workaround for test_standalone_native_menu.xhtml and test_native_menus.xhtml, which expect menu items to be activated synchronously. r=bradwerth 2022-06-23 15:05:39 +00:00
nsMenuX.h Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange 2022-11-07 19:04:40 +00:00
nsMenuX.mm Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar 2023-06-23 10:01:32 +00:00
nsNativeThemeCocoa.h Bug 1833403 - Simplify some appearance code. r=stransky,mac-reviewers,handyman,devtools-reviewers,mstange 2023-05-24 11:13:58 +00:00
nsNativeThemeCocoa.mm Bug 1833403 - Simplify some appearance code. r=stransky,mac-reviewers,handyman,devtools-reviewers,mstange 2023-05-24 11:13:58 +00:00
nsNativeThemeColors.h Bug 1773752: Remove more workarounds for old macOS SDKs. r=mstange,media-playback-reviewers,padenot 2022-07-18 17:08:59 +00:00
nsPIWidgetCocoa.idl
nsPrintDialogX.h Bug 1769129. Remove nsIPrintSettings.isPrintSelectionRBEnabled. r=emilio 2022-05-13 15:26:07 +00:00
nsPrintDialogX.mm Bug 1805716 - Stop overwriting the print settings passed to nsIPrintDialogService::showPrintDialog with saved prefs. r=dholbert 2022-12-14 21:58:17 +00:00
nsPrintSettingsServiceX.h
nsPrintSettingsServiceX.mm Bug 1763989. Remove the PPrinting and nsPrintingProxy code. r=bobowen 2022-04-26 14:30:29 +00:00
nsPrintSettingsX.h
nsPrintSettingsX.mm Bug 1842072 - Prevent IntCoordTyped's constructor from accepting non-integral parameters. r=botond 2023-07-08 07:45:44 +00:00
nsSandboxViolationSink.h
nsSandboxViolationSink.mm
nsSound.h
nsSound.mm
nsStandaloneNativeMenu.h
nsStandaloneNativeMenu.mm
nsSystemStatusBarCocoa.h
nsSystemStatusBarCocoa.mm
nsToolkit.h
nsToolkit.mm Bug 1811487 - Clean-up popup hide / rollup APIs. r=cmartin,stransky 2023-01-24 15:43:49 +00:00
nsTouchBar.h Backed out 2 changesets (bug 1773752, bug 1696513) for causing build bustages. CLOSED TREE 2022-06-11 02:35:43 +03:00
nsTouchBar.mm Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsTouchBarInput.h Backed out 2 changesets (bug 1773752, bug 1696513) for causing build bustages. CLOSED TREE 2022-06-11 02:35:43 +03:00
nsTouchBarInput.mm
nsTouchBarInputIcon.h Bug 1817071 - Remove unused image-region support from cocoa code. r=mstange,mac-reviewers 2023-02-18 01:16:28 +00:00
nsTouchBarInputIcon.mm Bug 1817071 - Remove unused image-region support from cocoa code. r=mstange,mac-reviewers 2023-02-18 01:16:28 +00:00
nsTouchBarNativeAPIDefines.h Backed out 2 changesets (bug 1773752, bug 1696513) for causing build bustages. CLOSED TREE 2022-06-11 02:35:43 +03:00
nsTouchBarUpdater.h
nsTouchBarUpdater.mm Backed out 2 changesets (bug 1773752, bug 1696513) for causing build bustages. CLOSED TREE 2022-06-11 02:35:43 +03:00
nsUserIdleServiceX.h Bug 1836980 - Move the check for late instantiation to UserIdleService[type] specializations. r=kmag,xpcom-reviewers,geckoview-reviewers,m_kato 2023-06-07 06:27:52 +00:00
nsUserIdleServiceX.mm Bug 1768920 - Avoid polling every 5 seconds in nsUserIdleService, r=dthayer,geckoview-reviewers,owlish. 2023-01-16 19:53:33 +00:00
nsWidgetFactory.h Bug 1773770: Part 8 - Migrate Cocoa widget module to static component registration. r=mstange 2022-06-30 09:12:18 +00:00
nsWidgetFactory.mm Bug 1773770: Part 8 - Migrate Cocoa widget module to static component registration. r=mstange 2022-06-30 09:12:18 +00:00
nsWindowMap.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
nsWindowMap.mm