OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 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 CHROME_BROWSER_UI_COCOA_SHARE_MENU_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_SHARE_MENU_CONTROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 // Set this as the delegate of a menu to populate with potential sharing service |
| 11 // items. Handles performing share actions chosen by the user and opening the |
| 12 // sharing service pref pane so that the user can enable or disable services. |
| 13 @interface ShareMenuController |
| 14 : NSObject<NSMenuDelegate, NSSharingServiceDelegate> |
| 15 @end |
| 16 |
| 17 @interface ShareMenuController (ExposedForTesting) |
| 18 // Whether the menu should add a "More..." item that opens the |
| 19 // Sharing Extension pref pane. |
| 20 + (BOOL)shouldShowMoreItem; |
| 21 @end |
| 22 |
| 23 #endif // CHROME_BROWSER_UI_COCOA_SHARE_MENU_CONTROLLER_H_ |
OLD | NEW |