Changeset 240621 in webkit


Ignore:
Timestamp:
Jan 28, 2019 4:58:13 PM (5 years ago)
Author:
ddkilzer@apple.com
Message:

Move soft-linking of ManagedConfiguration.framework out of ManagedConfigurationSPI.h
<https://webkit.org/b/193868>

Reviewed by Daniel Bates.

  • Platform/spi/ios/ManagedConfigurationSPI.h:
  • Remove soft-linking code from header.
  • Add PLATFORM(IOS_FAMILY) && !PLATFORM(IOSMAC) guard.
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView canPerformActionForWebView:withSender:]):
(-[WKContentView _defineForWebView:]):

  • Add soft-linking code formerly in ManagedConfigurationSPI.h.
  • Change MCFeatureDefinitionLookupAllowed to use soft-link function getMCFeatureDefinitionLookupAllowed() to remove the #define.
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240620 r240621  
     12019-01-28  David Kilzer  <ddkilzer@apple.com>
     2
     3        Move soft-linking of ManagedConfiguration.framework out of ManagedConfigurationSPI.h
     4        <https://webkit.org/b/193868>
     5
     6        Reviewed by Daniel Bates.
     7
     8        * Platform/spi/ios/ManagedConfigurationSPI.h:
     9        - Remove soft-linking code from header.
     10        - Add PLATFORM(IOS_FAMILY) && !PLATFORM(IOSMAC) guard.
     11
     12        * UIProcess/ios/WKContentViewInteraction.mm:
     13        (-[WKContentView canPerformActionForWebView:withSender:]):
     14        (-[WKContentView _defineForWebView:]):
     15        - Add soft-linking code formerly in ManagedConfigurationSPI.h.
     16        - Change MCFeatureDefinitionLookupAllowed to use soft-link
     17          function getMCFeatureDefinitionLookupAllowed() to remove the
     18          #define.
     19
    1202019-01-28  Per Arne Vollan  <pvollan@apple.com>
    221
  • trunk/Source/WebKit/Platform/spi/ios/ManagedConfigurationSPI.h

    r219191 r240621  
    11/*
    2  * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
     2 * Copyright (C) 2014-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    2424 */
    2525
    26 #import <Foundation/Foundation.h>
    27 #import <wtf/SoftLinking.h>
     26#if PLATFORM(IOS_FAMILY) && !PLATFORM(IOSMAC)
    2827
    2928#if USE(APPLE_INTERNAL_SDK)
     
    3938
    4039#else
     40
     41WTF_EXTERN_C_BEGIN
     42
     43extern NSString * const MCFeatureDefinitionLookupAllowed;
     44
     45WTF_EXTERN_C_END
    4146
    4247typedef enum MCRestrictedBoolType {
     
    5459#endif
    5560
    56 WTF_EXTERN_C_BEGIN
    57 
    58 extern NSString * const MCFeatureDefinitionLookupAllowed;
    59 
    60 WTF_EXTERN_C_END
    61 
    62 SOFT_LINK_PRIVATE_FRAMEWORK(ManagedConfiguration);
    63 SOFT_LINK_CLASS(ManagedConfiguration, MCProfileConnection);
    64 SOFT_LINK_CONSTANT(ManagedConfiguration, MCFeatureDefinitionLookupAllowed, NSString *)
    65 
    66 #define MCFeatureDefinitionLookupAllowed getMCFeatureDefinitionLookupAllowed()
     61#endif // PLATFORM(IOS_FAMILY) && !PLATFORM(IOSMAC)
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r240587 r240621  
    11/*
    2  * Copyright (C) 2012-2018 Apple Inc. All rights reserved.
     2 * Copyright (C) 2012-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3434#import "InputViewUpdateDeferrer.h"
    3535#import "Logging.h"
    36 #import "ManagedConfigurationSPI.h"
    3736#import "NativeWebKeyboardEvent.h"
    3837#import "NativeWebTouchEvent.h"
     
    103102#import <wtf/RetainPtr.h>
    104103#import <wtf/SetForScope.h>
    105 #import <wtf/SoftLinking.h>
    106104#import <wtf/WeakObjCPtr.h>
    107105#import <wtf/cocoa/NSURLExtras.h>
     
    133131#import "RemoteScrollingCoordinatorProxy.h"
    134132#import <WebCore/TouchAction.h>
     133#endif
     134
     135#if !PLATFORM(IOSMAC)
     136#import "ManagedConfigurationSPI.h"
     137#import <wtf/SoftLinking.h>
     138
     139SOFT_LINK_PRIVATE_FRAMEWORK(ManagedConfiguration);
     140SOFT_LINK_CLASS(ManagedConfiguration, MCProfileConnection);
     141SOFT_LINK_CONSTANT(ManagedConfiguration, MCFeatureDefinitionLookupAllowed, NSString *)
    135142#endif
    136143
     
    26732680
    26742681#if !PLATFORM(IOSMAC)
    2675         if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:MCFeatureDefinitionLookupAllowed] == MCRestrictedBoolExplicitNo)
     2682        if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:getMCFeatureDefinitionLookupAllowed()] == MCRestrictedBoolExplicitNo)
    26762683            return NO;
    26772684#endif
     
    26852692
    26862693#if !PLATFORM(IOSMAC)
    2687         if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:MCFeatureDefinitionLookupAllowed] == MCRestrictedBoolExplicitNo)
     2694        if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:getMCFeatureDefinitionLookupAllowed()] == MCRestrictedBoolExplicitNo)
    26882695            return NO;
    26892696#endif
     
    28342841{
    28352842#if !PLATFORM(IOSMAC)
    2836     if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:MCFeatureDefinitionLookupAllowed] == MCRestrictedBoolExplicitNo)
     2843    if ([[getMCProfileConnectionClass() sharedConnection] effectiveBoolValueForSetting:getMCFeatureDefinitionLookupAllowed()] == MCRestrictedBoolExplicitNo)
    28372844        return;
    28382845#endif
Note: See TracChangeset for help on using the changeset viewer.