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