haikuwebkit/Source/WebCore/PAL/pal/spi/mac
Kate Cheney 5ac971557e GetIdentifierStringForPreferredVoiceInListWithLocale() is deprecated in Monterey
<https://webkit.org/b/228066>
<rdar://problem/80577312>

Patch by David Kilzer.

Patch by Kate Cheney <katherine_cheney@apple.com> on 2021-07-29
Reviewed by David Kilzer.

Source/WebCore:

* platform/mac/PlatformSpeechSynthesizerMac.mm:
(WebCore::speechSynthesisGetDefaultVoiceIdentifierForLocale):
- Switch to use
  CopyIdentifierStringForPreferredVoiceInListWithLocale()
  in Monterey.
- Change to return RetainPtr<> to handle lifetime of
  object returned from new function.
(WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
- Change varible type to 'auto' since return type of
  speechSynthesisGetDefaultVoiceIdentifierForLocale()
  changed.

Source/WebCore/PAL:

* pal/spi/mac/SpeechSynthesisSPI.h:
* pal/spi/mac/SpeechSynthesisSPI.h:
(CopyIdentifierStringForPreferredVoiceInListWithLocale): Add.
- Define replacement function for
  GetIdentifierStringForPreferredVoiceInListWithLocale()
  in Monterey.

Source/WTF:

* wtf/PlatformHave.h:
- Add HAVE(SPEECHSYNTHESIS_MONTEREY_SPI).

Canonical link: https://commits.webkit.org/240079@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-29 19:54:30 +00:00
..
CoreUISPI.h
DataDetectorsSPI.h
HIServicesSPI.h
HIToolboxSPI.h
IOKitSPIMac.h
LookupSPI.h
MediaRemoteSPI.h
NSAppearanceSPI.h
NSApplicationSPI.h
NSCellSPI.h
NSColorWellSPI.h
NSEventSPI.h
NSFontSPI.h
NSGraphicsSPI.h
NSImageSPI.h
NSImmediateActionGestureRecognizerSPI.h
NSMenuSPI.h [macOS Monterey] Pressing Fn+E should present the emoji picker when editing 2021-07-27 02:21:15 +00:00
NSPasteboardSPI.h
NSPopoverColorWellSPI.h
NSPopoverSPI.h
NSResponderSPI.h
NSScrollViewSPI.h
NSScrollerImpSPI.h
NSScrollingInputFilterSPI.h
NSScrollingMomentumCalculatorSPI.h
NSSharingServicePickerSPI.h
NSSharingServiceSPI.h
NSSpellCheckerSPI.h
NSTextFinderSPI.h
NSTextInputContextSPI.h
NSUndoManagerSPI.h
NSViewSPI.h
NSWindowSPI.h
PIPSPI.h
QuickLookMacSPI.h Unreviewed, fix the macOS Monterey build 2021-06-25 18:08:52 +00:00
SpeechSynthesisSPI.h GetIdentifierStringForPreferredVoiceInListWithLocale() is deprecated in Monterey 2021-07-29 19:54:30 +00:00
SystemPreviewSPI.h [Model] [macOS] Add support for rendering model resources 2021-07-01 06:32:12 +00:00
TelephonyUtilitiesSPI.h