]> khamidou — GitHub mirrors - electron.git/commitdiff
added a postmsg handler.
authorKarim Hamidou <khamidou@gmail.com>
Thu, 11 Feb 2016 02:11:50 +0000 (18:11 -0800)
committerKarim Hamidou <khamidou@gmail.com>
Thu, 11 Feb 2016 02:11:50 +0000 (18:11 -0800)
atom/browser/native_window_views_win.cc
atom/browser/ui/win/atom_desktop_window_tree_host_win.cc
atom/browser/ui/win/atom_desktop_window_tree_host_win.h

index e5ed1975f80f918eb37257f8b244f4cdf3eafc88..09de12fc219869725d83194bbfb6cc446bb5c238 100644 (file)
@@ -106,6 +106,15 @@ bool NativeWindowViews::PreHandleMSG(
   }
 }
 
+bool NativeWindowViews::PostHandleMSG(
+    UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) {
+  NotifyWindowMessage(message, w_param, l_param);
+
+  switch (message) {
+    default:
+      return false;
+  }
+}
 void NativeWindowViews::HandleSizeEvent(WPARAM w_param, LPARAM l_param) {
   // Here we handle the WM_SIZE event in order to figure out what is the current
   // window state and notify the user accordingly.
index 84a6d9aa3e50ced33616fb4b78e124f39461cd0e..cd5f8f46447d279df274f330260cee14856c20b1 100644 (file)
@@ -25,4 +25,9 @@ bool AtomDesktopWindowTreeHostWin::PreHandleMSG(
   return delegate_->PreHandleMSG(message, w_param, l_param, result);
 }
 
+bool PostHandleMSG(
+      UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) {
+  return delegate_->PostHandleMSG(message, w_param, l_param, result);
+}
+
 }  // namespace atom
index 47e4cb6aed2a962bfdd2a92edaca74b452d15c4d..bd7cf755e9e7444bb6df0cffaddb9026abf6e136 100644 (file)
@@ -28,6 +28,9 @@ class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
   bool PreHandleMSG(
       UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
 
+  bool PostHandleMSG(
+      UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
+
  private:
   MessageHandlerDelegate* delegate_;  // weak ref