Merge pull request #1491 from atom/minimal-mac-menu

Remove native actions in Mac default menu
This commit is contained in:
Cheng Zhao 2015-04-25 21:00:26 +08:00
commit ca5ee0fc81
4 changed files with 27 additions and 3069 deletions

View file

@ -18,6 +18,4 @@
// CrAppControlProtocol:
- (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
- (IBAction)closeAllWindows:(id)sender;
@end

View file

@ -36,10 +36,6 @@
andEventID:kAEGetURL];
}
- (IBAction)closeAllWindows:(id)sender {
atom::Browser::Get()->Quit();
}
- (void)handleURLEvent:(NSAppleEventDescriptor*)event
withReplyEvent:(NSAppleEventDescriptor*)replyEvent {
NSString* url = [

View file

@ -184,16 +184,6 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
return [super constrainFrameRect:frameRect toScreen:screen];
}
- (IBAction)reload:(id)sender {
content::WebContents* web_contents = shell_->GetWebContents();
content::NavigationController::LoadURLParams params(web_contents->GetURL());
web_contents->GetController().LoadURLWithParams(params);
}
- (IBAction)showDevTools:(id)sender {
shell_->OpenDevTools(true);
}
- (id)accessibilityAttributeValue:(NSString*)attribute {
if (![attribute isEqualToString:@"AXChildren"])
return [super accessibilityAttributeValue:attribute];

File diff suppressed because it is too large Load diff