1 // Copyright 2023 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_MAC_LAUNCH_SERVICES_SPI_H_ 6 #define BASE_MAC_LAUNCH_SERVICES_SPI_H_ 7 8 #import <AppKit/AppKit.h> 9 #include <CoreFoundation/CoreFoundation.h> 10 #import <Foundation/Foundation.h> 11 12 // Private SPIs for using LaunchServices. Largely derived from usage of these 13 // in open source WebKit code [1] and some inspection of the LaunchServices 14 // binary, as well as AppKit's __NSWorkspaceOpenConfigurationGetLSOpenOptions. 15 // 16 // [1] 17 // https://github.com/WebKit/webkit/blob/main/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h 18 19 extern "C" { 20 21 extern const CFStringRef _kLSOpenOptionBackgroundLaunchKey; 22 23 } // extern "C" 24 25 @interface NSWorkspaceOpenConfiguration (SPI) 26 @property(atomic, readwrite, setter=_setAdditionalLSOpenOptions:) 27 NSDictionary* _additionalLSOpenOptions; 28 @end 29 30 #endif // BASE_MAC_LAUNCH_SERVICES_SPI_H_ 31