blob: 2be8d9ac5fdfedfbea71146529e82c666bd41064 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
// Set this as the delegate of a menu to populate with potential sharing service
// items. Handles performing share actions chosen by the user and opening the
// sharing service pref pane so that the user can enable or disable services.
@interface ShareMenuController
: NSObject<NSMenuDelegate, NSSharingServiceDelegate>
@interface ShareMenuController (ExposedForTesting)
// Whether the menu should add a "More..." item that opens the
// Sharing Extension pref pane.
+ (BOOL)shouldShowMoreItem;