Add Browser class to controll when the application should quit.

This commit is contained in:
Cheng Zhao 2013-05-02 23:43:23 +08:00
parent 8cf1050730
commit d151d494bd
12 changed files with 138 additions and 7 deletions

15
browser/browser_mac.mm Normal file
View file

@ -0,0 +1,15 @@
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/browser.h"
#import "browser/atom_application_mac.h"
namespace atom {
void Browser::Terminate() {
[[AtomApplication sharedApplication] terminate:nil];
}
} // namespace atom