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) {

View file

@ -75,6 +75,11 @@ class Window : public mate::TrackableObject<Window>,
void OnRendererResponsive() override;
void OnExecuteWindowsCommand(const std::string& command_name) override;
#if defined(OS_WIN)
void OnWindowMessage(unsigned int message, LPARAM l_param,
WPARAM w_param) override;
#endif
// mate::Wrappable:
bool IsDestroyed() const override;