2020-02-04 20:19:40 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_MAC_ELECTRON_APPLICATION_DELEGATE_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_MAC_ELECTRON_APPLICATION_DELEGATE_H_
|
2021-11-22 00:36:32 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "shell/browser/ui/cocoa/electron_menu_controller.h"
|
|
|
|
|
|
|
|
@interface ElectronApplicationDelegate : NSObject <NSApplicationDelegate> {
|
|
|
|
@private
|
|
|
|
base::scoped_nsobject<ElectronMenuController> menu_controller_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sets the menu that will be returned in "applicationDockMenu:".
|
|
|
|
- (void)setApplicationDockMenu:(electron::ElectronMenuModel*)model;
|
|
|
|
|
|
|
|
@end
|
2021-11-22 00:36:32 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_MAC_ELECTRON_APPLICATION_DELEGATE_H_
|