#import <wtf/Platform.h>
#if PLATFORM(MAC)
#if USE(APPLE_INTERNAL_SDK)
WTF_EXTERN_C_BEGIN
#import <AppKit/NSMenu_Private.h>
WTF_EXTERN_C_END
#else
typedef NS_ENUM(NSInteger, NSMenuType) {
NSMenuTypeNone = 0,
NSMenuTypeContextMenu,
};
enum {
NSPopUpMenuTypeGeneric,
NSPopUpMenuTypePopUp,
NSPopUpMenuTypePullsDown,
NSPopUpMenuTypeMainMenu,
NSPopUpMenuTypeContext,
NSPopUpMenuDefaultToPopUpControlFont = 0x10,
NSPopUpMenuPositionRelativeToRightEdge = 0x20,
NSPopUpMenuIsPopupButton = 0x40,
};
@interface NSMenu ()
+ (NSMenuType)menuTypeForEvent:(NSEvent *)event;
@end
@class QLPreviewMenuItem;
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
@interface NSMenuItem () <NSUserInterfaceItemIdentification>
#else
@interface NSMenuItem ()
#endif
+ (QLPreviewMenuItem *)standardQuickLookMenuItem;
+ (NSMenuItem *)standardShareMenuItemForItems:(NSArray *)items;
@end
#endif
typedef NSUInteger NSPopUpMenuFlags;
WTF_EXTERN_C_BEGIN
extern NSString * const NSPopUpMenuPopupButtonBounds;
extern NSString * const NSPopUpMenuPopupButtonLabelOffset;
extern NSString * const NSPopUpMenuPopupButtonSize;
extern NSString * const NSPopUpMenuPopupButtonWidget;
void _NSPopUpCarbonMenu3(NSMenu *, NSWindow *, NSView *ownerView, NSPoint screenPoint, NSInteger checkedItem, NSFont *, CGFloat minWidth, NSString *runLoopMode, NSPopUpMenuFlags, NSDictionary *options);
WTF_EXTERN_C_END
#endif // PLATFORM(MAC)