OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ | 5 #ifndef UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ |
6 #define UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ | 6 #define UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "ui/base/ui_base_export.h" | 10 #include "ui/base/ui_base_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // The |w_param| and |l_param| values are dependent on the type of the | 23 // The |w_param| and |l_param| values are dependent on the type of the |
24 // message. | 24 // message. |
25 // The |handled| parameter is an output parameter which when set to false | 25 // The |handled| parameter is an output parameter which when set to false |
26 // indicates that the message should be DefProc'ed. | 26 // indicates that the message should be DefProc'ed. |
27 // Returns the result of processing the message. | 27 // Returns the result of processing the message. |
28 virtual LRESULT HandleMouseMessage(unsigned int message, | 28 virtual LRESULT HandleMouseMessage(unsigned int message, |
29 WPARAM w_param, | 29 WPARAM w_param, |
30 LPARAM l_param, | 30 LPARAM l_param, |
31 bool* handled) = 0; | 31 bool* handled) = 0; |
32 | 32 |
| 33 // Handles pointer events like WM_POINTERUP, WM_POINTERDOWN, WM_POINTERUPDATE |
| 34 // events. |
| 35 // The |message| parameter identifies the message. |
| 36 // The |w_param| and |l_param| values are as per MSDN docs. |
| 37 // The |handled| parameter is an output parameter which when set to false |
| 38 // indicates that the message should be DefProc'ed. |
| 39 // Returns the result of processing the message. |
| 40 virtual LRESULT HandlePointerMessage(unsigned int message, |
| 41 WPARAM w_param, |
| 42 LPARAM l_param, |
| 43 bool* handled) = 0; |
| 44 |
33 // Handles keyboard events like WM_KEYDOWN/WM_KEYUP, etc. | 45 // Handles keyboard events like WM_KEYDOWN/WM_KEYUP, etc. |
34 // The |message| parameter identifies the message. | 46 // The |message| parameter identifies the message. |
35 // The |w_param| and |l_param| values are dependent on the type of the | 47 // The |w_param| and |l_param| values are dependent on the type of the |
36 // message. | 48 // message. |
37 // The |handled| parameter is an output parameter which when set to false | 49 // The |handled| parameter is an output parameter which when set to false |
38 // indicates that the message should be DefProc'ed. | 50 // indicates that the message should be DefProc'ed. |
39 // Returns the result of processing the message. | 51 // Returns the result of processing the message. |
40 virtual LRESULT HandleKeyboardMessage(unsigned int message, | 52 virtual LRESULT HandleKeyboardMessage(unsigned int message, |
41 WPARAM w_param, | 53 WPARAM w_param, |
42 LPARAM l_param, | 54 LPARAM l_param, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 protected: | 92 protected: |
81 WindowEventTarget(); | 93 WindowEventTarget(); |
82 virtual ~WindowEventTarget(); | 94 virtual ~WindowEventTarget(); |
83 }; | 95 }; |
84 | 96 |
85 } // namespace ui | 97 } // namespace ui |
86 | 98 |
87 #endif // UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ | 99 #endif // UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ |
88 | 100 |
89 | 101 |
OLD | NEW |