Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ui / base / win / window_event_target.h
index c7bb670..e8e7d83 100644 (file)
@@ -23,42 +23,57 @@ class UI_BASE_EXPORT WindowEventTarget {
   // The |message| parameter identifies the message.
   // The |w_param| and |l_param| values are dependent on the type of the
   // message.
+  // The |handled| parameter is an output parameter which when set to false
+  // indicates that the message should be DefProc'ed.
   // Returns the result of processing the message.
   virtual LRESULT HandleMouseMessage(unsigned int message,
                                      WPARAM w_param,
-                                     LPARAM l_param) = 0;
+                                     LPARAM l_param,
+                                     bool* handled) = 0;
 
   // Handles keyboard events like WM_KEYDOWN/WM_KEYUP, etc.
   // The |message| parameter identifies the message.
   // The |w_param| and |l_param| values are dependent on the type of the
   // message.
+  // The |handled| parameter is an output parameter which when set to false
+  // indicates that the message should be DefProc'ed.
   // Returns the result of processing the message.
   virtual LRESULT HandleKeyboardMessage(unsigned int message,
                                         WPARAM w_param,
-                                        LPARAM l_param) = 0;
+                                        LPARAM l_param,
+                                        bool* handled) = 0;
 
   // Handles WM_TOUCH events.
   // The |message| parameter identifies the message.
   // The |w_param| and |l_param| values are as per MSDN docs.
+  // The |handled| parameter is an output parameter which when set to false
+  // indicates that the message should be DefProc'ed.
   // Returns the result of processing the message.
   virtual LRESULT HandleTouchMessage(unsigned int message,
                                      WPARAM w_param,
-                                     LPARAM l_param) = 0;
+                                     LPARAM l_param,
+                                     bool* handled) = 0;
 
   // Handles scroll messages like WM_VSCROLL and WM_HSCROLL.
   // The |message| parameter identifies the scroll message.
   // The |w_param| and |l_param| values are dependent on the type of scroll.
+  // The |handled| parameter is an output parameter which when set to false
+  // indicates that the message should be DefProc'ed.
   virtual LRESULT HandleScrollMessage(unsigned int message,
                                       WPARAM w_param,
-                                      LPARAM l_param) = 0;
+                                      LPARAM l_param,
+                                      bool* handled) = 0;
 
   // Handles the WM_NCHITTEST message
   // The |message| parameter identifies the message.
   // The |w_param| and |l_param| values are as per MSDN docs.
+  // The |handled| parameter is an output parameter which when set to false
+  // indicates that the message should be DefProc'ed.
   // Returns the result of processing the message.
   virtual LRESULT HandleNcHitTestMessage(unsigned int message,
                                          WPARAM w_param,
-                                         LPARAM l_param) = 0;
+                                         LPARAM l_param,
+                                         bool* handled) = 0;
  protected:
   WindowEventTarget();
   virtual ~WindowEventTarget();