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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Handles the WM_NCHITTEST message | 67 // Handles the WM_NCHITTEST message |
68 // The |message| parameter identifies the message. | 68 // The |message| parameter identifies the message. |
69 // The |w_param| and |l_param| values are as per MSDN docs. | 69 // The |w_param| and |l_param| values are as per MSDN docs. |
70 // The |handled| parameter is an output parameter which when set to false | 70 // The |handled| parameter is an output parameter which when set to false |
71 // indicates that the message should be DefProc'ed. | 71 // indicates that the message should be DefProc'ed. |
72 // Returns the result of processing the message. | 72 // Returns the result of processing the message. |
73 virtual LRESULT HandleNcHitTestMessage(unsigned int message, | 73 virtual LRESULT HandleNcHitTestMessage(unsigned int message, |
74 WPARAM w_param, | 74 WPARAM w_param, |
75 LPARAM l_param, | 75 LPARAM l_param, |
76 bool* handled) = 0; | 76 bool* handled) = 0; |
77 | |
78 // Handles the WM_SYSCOMMAND message | |
79 // The |message| parameter identifies the message. | |
80 // The |w_param| and |l_param| values are as per MSDN docs. | |
81 // The |handled| parameter is an output parameter which when set to false | |
82 // indicates that the message should be DefProc'ed. | |
83 // Returns the result of processing the message. | |
84 virtual LRESULT HandleSysCommand(unsigned int message, | |
85 WPARAM w_param, | |
86 LPARAM l_param, | |
87 bool* handled) = 0; | |
88 protected: | 77 protected: |
89 WindowEventTarget(); | 78 WindowEventTarget(); |
90 virtual ~WindowEventTarget(); | 79 virtual ~WindowEventTarget(); |
91 }; | 80 }; |
92 | 81 |
93 } // namespace ui | 82 } // namespace ui |
94 | 83 |
95 #endif // UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ | 84 #endif // UI_BASE_WIN_WINDOW_EVENT_TARGET_H_ |
96 | 85 |
97 | 86 |
OLD | NEW |