OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 WPARAM w_param, | 227 WPARAM w_param, |
228 LPARAM l_param, | 228 LPARAM l_param, |
229 LRESULT* result) = 0; | 229 LRESULT* result) = 0; |
230 | 230 |
231 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling | 231 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling |
232 // has run and after DefWindowProc. | 232 // has run and after DefWindowProc. |
233 virtual void PostHandleMSG(UINT message, | 233 virtual void PostHandleMSG(UINT message, |
234 WPARAM w_param, | 234 WPARAM w_param, |
235 LPARAM l_param) = 0; | 235 LPARAM l_param) = 0; |
236 | 236 |
| 237 // Called when a scroll event is received. Returns true if the event was |
| 238 // handled by the delegate. |
| 239 virtual bool HandleScrollEvent(const ui::ScrollEvent& event) = 0; |
| 240 |
237 protected: | 241 protected: |
238 virtual ~HWNDMessageHandlerDelegate() {} | 242 virtual ~HWNDMessageHandlerDelegate() {} |
239 }; | 243 }; |
240 | 244 |
241 } // namespace views | 245 } // namespace views |
242 | 246 |
243 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 247 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |