Added browser-window event 'message'
This commit is contained in:
parent
65ece4b1ca
commit
edbebf84b9
7 changed files with 38 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue