Add 'will-finish-launching' event for app.

This commit is contained in:
Cheng Zhao 2013-06-03 15:31:46 +08:00
parent e4d2368908
commit bf409efc46
7 changed files with 16 additions and 0 deletions

View file

@ -36,6 +36,10 @@ void App::OnOpenFile(bool* prevent_default, const std::string& file_path) {
*prevent_default = Emit("open-file", &args);
}
void App::OnWillFinishLaunching() {
Emit("will-finish-launching");
}
void App::OnFinishLaunching() {
Emit("finish-launching");
}

View file

@ -28,6 +28,7 @@ class App : public EventEmitter,
virtual void OnWindowAllClosed() OVERRIDE;
virtual void OnOpenFile(bool* prevent_default,
const std::string& file_path) OVERRIDE;
virtual void OnWillFinishLaunching() OVERRIDE;
virtual void OnFinishLaunching() OVERRIDE;
private: