Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome/browser/ui/cocoa/share_menu_controller.h

Issue 2950403002: [Mac] Add system share menu
Patch Set: CL comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698