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_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 // touch input. This is fine because activation still works correctly via | 593 // touch input. This is fine because activation still works correctly via |
594 // native SetFocus calls invoked in the views code. | 594 // native SetFocus calls invoked in the views code. |
595 bool touch_down_context_; | 595 bool touch_down_context_; |
596 | 596 |
597 // Time the last touch message was received. Used to flag mouse messages | 597 // Time the last touch message was received. Used to flag mouse messages |
598 // synthesized by Windows for touch which are not flagged by the OS as | 598 // synthesized by Windows for touch which are not flagged by the OS as |
599 // synthesized mouse messages. For more information please refer to | 599 // synthesized mouse messages. For more information please refer to |
600 // the IsMouseEventFromTouch function. | 600 // the IsMouseEventFromTouch function. |
601 static long last_touch_message_time_; | 601 static long last_touch_message_time_; |
602 | 602 |
| 603 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the |
| 604 // HandleMouseEventInternal function as to why this is needed. |
| 605 long last_mouse_hwheel_time_; |
| 606 |
603 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 607 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
604 }; | 608 }; |
605 | 609 |
606 } // namespace views | 610 } // namespace views |
607 | 611 |
608 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 612 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |