Add "quit" event for app.

This commit is contained in:
Cheng Zhao 2014-09-25 21:47:54 +08:00
parent dbbfef38b1
commit 909ff085ac
5 changed files with 14 additions and 0 deletions

View file

@ -91,6 +91,10 @@ void App::OnWindowAllClosed() {
Emit("window-all-closed");
}
void App::OnQuit() {
Emit("quit");
}
void App::OnOpenFile(bool* prevent_default, const std::string& file_path) {
base::ListValue args;
args.AppendString(file_path);