Limited build support for iOS.

Change header includes from Carbon.h to CoreGraphics.h and CFString.h
which are available on both Mac and iOS.

This change does not make PDFium's GN files work correctly for iOS
targets.

Bug: b/254289860
PiperOrigin-RevId: 482564266
Change-Id: Ideef724ce58ad18f0327fcd140d050b3a8c08522
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/99753
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfapi/font/cpdf_type1font.cpp b/core/fpdfapi/font/cpdf_type1font.cpp
index 2bdbf48..7af64d5 100644
--- a/core/fpdfapi/font/cpdf_type1font.cpp
+++ b/core/fpdfapi/font/cpdf_type1font.cpp
@@ -20,7 +20,8 @@
 #include "core/fxge/fx_font.h"
 
 #if BUILDFLAG(IS_APPLE)
-#include <Carbon/Carbon.h>
+#include <CoreFoundation/CFString.h>
+#include <CoreGraphics/CoreGraphics.h>
 #endif  // BUILDFLAG(IS_APPLE)
 
 namespace {
diff --git a/core/fxge/apple/fx_quartz_device.cpp b/core/fxge/apple/fx_quartz_device.cpp
index cb61384..fffd737 100644
--- a/core/fxge/apple/fx_quartz_device.cpp
+++ b/core/fxge/apple/fx_quartz_device.cpp
@@ -6,6 +6,8 @@
 
 #include "core/fxge/apple/fx_quartz_device.h"
 
+#include <CoreGraphics/CoreGraphics.h>
+
 #include "core/fxcrt/fx_extension.h"
 #include "core/fxge/cfx_graphstatedata.h"
 #include "core/fxge/cfx_path.h"
diff --git a/core/fxge/apple/fx_quartz_device.h b/core/fxge/apple/fx_quartz_device.h
index 9388f05..8b8db38 100644
--- a/core/fxge/apple/fx_quartz_device.h
+++ b/core/fxge/apple/fx_quartz_device.h
@@ -7,7 +7,7 @@
 #ifndef CORE_FXGE_APPLE_FX_QUARTZ_DEVICE_H_
 #define CORE_FXGE_APPLE_FX_QUARTZ_DEVICE_H_
 
-#include <Carbon/Carbon.h>
+#include <CoreGraphics/CoreGraphics.h>
 #include <stdint.h>
 
 #include "core/fxcrt/retain_ptr.h"