Added browser-window event 'message'

This commit is contained in:
Omri Litov 2015-10-27 03:12:01 +02:00
parent 65ece4b1ca
commit edbebf84b9
7 changed files with 38 additions and 0 deletions

View file

@ -189,6 +189,12 @@ void Window::OnExecuteWindowsCommand(const std::string& command_name) {
Emit("app-command", command_name);
}
#if defined(OS_WIN)
void Window::OnWindowMessage(UINT message, LPARAM l_param, WPARAM w_param) {
Emit("message", message, l_param, w_param);
}
#endif
// static
mate::Wrappable* Window::New(v8::Isolate* isolate,
const mate::Dictionary& options) {