Merge pull request #2002 from atom/app-commands-win32

Windows App Commands
This commit is contained in:
Cheng Zhao 2015-06-26 11:43:08 +08:00
commit e6f3c4c22b
5 changed files with 92 additions and 0 deletions

View file

@ -162,6 +162,10 @@ void Window::OnDevToolsClosed() {
devtools_web_contents_.Reset();
}
void Window::OnExecuteWindowsCommand(const std::string& command_name) {
Emit("app-command", command_name);
}
// static
mate::Wrappable* Window::New(v8::Isolate* isolate,
const mate::Dictionary& options) {

View file

@ -71,6 +71,7 @@ class Window : public mate::TrackableObject<Window>,
void OnDevToolsFocus() override;
void OnDevToolsOpened() override;
void OnDevToolsClosed() override;
void OnExecuteWindowsCommand(const std::string& command_name) override;
private:
// APIs for NativeWindow.