⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243940 in webkit


Ignore:
Timestamp:
Apr 5, 2019, 11:21:40 AM (7 years ago)
Author:
eric.carlson@apple.com
Message:

Stop including <AudioToolbox/AudioSession.h>
https://bugs.webkit.org/show_bug.cgi?id=196648
<rdar://problem/39665771>

Reviewed by Jer Noble.

  • WebView/WebPreferencesPrivate.h:
Location:
trunk/Source/WebKitLegacy/mac
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r243919 r243940  
     12019-04-05  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Stop including <AudioToolbox/AudioSession.h>
     4        https://bugs.webkit.org/show_bug.cgi?id=196648
     5        <rdar://problem/39665771>
     6
     7        Reviewed by Jer Noble.
     8
     9        * WebView/WebPreferencesPrivate.h:
     10
    1112019-04-04  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm

    r243666 r243940  
    5353
    5454using namespace WebCore;
    55 
    56 #if HAVE(AUDIO_TOOLBOX_AUDIO_SESSION)
    57 #import <AudioToolbox/AudioSession.h>
    58 #endif
    5955
    6056#if PLATFORM(IOS_FAMILY)
     
    23902386        // which need to be translated into AudioSession::CategoryType:
    23912387        switch (override) {
    2392         case kAudioSessionCategory_AmbientSound:
     2388        case WebKitAudioSessionCategoryAmbientSound:
    23932389            override = AudioSession::AmbientSound;
    23942390            break;
    2395         case kAudioSessionCategory_SoloAmbientSound:
     2391        case WebKitAudioSessionCategorySoloAmbientSound:
    23962392            override = AudioSession::SoloAmbientSound;
    23972393            break;
    2398         case kAudioSessionCategory_MediaPlayback:
     2394        case WebKitAudioSessionCategoryMediaPlayback:
    23992395            override = AudioSession::MediaPlayback;
    24002396            break;
    2401         case kAudioSessionCategory_RecordAudio:
     2397        case WebKitAudioSessionCategoryRecordAudio:
    24022398            override = AudioSession::RecordAudio;
    24032399            break;
    2404         case kAudioSessionCategory_PlayAndRecord:
     2400        case WebKitAudioSessionCategoryPlayAndRecord:
    24052401            override = AudioSession::PlayAndRecord;
    24062402            break;
    2407         case kAudioSessionCategory_AudioProcessing:
     2403        case WebKitAudioSessionCategoryAudioProcessing:
    24082404            override = AudioSession::AudioProcessing;
    24092405            break;
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h

    r243666 r243940  
    6262    WebKitFrameFlatteningFullyEnabled
    6363} WebKitFrameFlattening;
     64
     65typedef enum : unsigned {
     66    WebKitAudioSessionCategoryAmbientSound = 'ambi',
     67    WebKitAudioSessionCategorySoloAmbientSound = 'solo',
     68    WebKitAudioSessionCategoryMediaPlayback = 'medi',
     69    WebKitAudioSessionCategoryRecordAudio = 'reca',
     70    WebKitAudioSessionCategoryPlayAndRecord = 'plar',
     71    WebKitAudioSessionCategoryAudioProcessing = 'proc',
     72} WebKitAudioSessionCategory;
    6473
    6574extern NSString *WebPreferencesChangedNotification WEBKIT_DEPRECATED_MAC(10_3, 10_14);
Note: See TracChangeset for help on using the changeset viewer.