Chromium Code Reviews| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 515 void ResetTouchDownContext(); | 515 void ResetTouchDownContext(); |
| 516 | 516 |
| 517 // Helper to handle mouse events. | 517 // Helper to handle mouse events. |
| 518 // The |message|, |w_param|, |l_param| parameters identify the Windows mouse | 518 // The |message|, |w_param|, |l_param| parameters identify the Windows mouse |
| 519 // message and its parameters respectively. | 519 // message and its parameters respectively. |
| 520 // The |track_mouse| parameter indicates if we should track the mouse. | 520 // The |track_mouse| parameter indicates if we should track the mouse. |
| 521 LRESULT HandleMouseEventInternal(UINT message, | 521 LRESULT HandleMouseEventInternal(UINT message, |
| 522 WPARAM w_param, | 522 WPARAM w_param, |
| 523 LPARAM l_param, | 523 LPARAM l_param, |
| 524 bool track_mouse); | 524 bool track_mouse); |
| 525 | 525 |
|
dtapuska
2017/05/26 17:56:45
I don't care for these function names. The should
lanwei
2017/05/29 18:29:43
Done.
| |
| 526 LRESULT HandleTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); | |
| 527 | |
| 528 LRESULT HandleMouseEventForPen(UINT message, WPARAM w_param, LPARAM l_param); | |
| 529 | |
| 526 // Returns true if the mouse message passed in is an OS synthesized mouse | 530 // Returns true if the mouse message passed in is an OS synthesized mouse |
| 527 // message. | 531 // message. |
| 528 // |message| identifies the mouse message. | 532 // |message| identifies the mouse message. |
| 529 // |message_time| is the time when the message occurred. | 533 // |message_time| is the time when the message occurred. |
| 530 // |l_param| indicates the location of the mouse message. | 534 // |l_param| indicates the location of the mouse message. |
| 531 bool IsSynthesizedMouseMessage(unsigned int message, | 535 bool IsSynthesizedMouseMessage(unsigned int message, |
| 532 int message_time, | 536 int message_time, |
| 533 LPARAM l_param); | 537 LPARAM l_param); |
| 534 | 538 |
| 535 // Provides functionality to transition a frame to DWM. | 539 // Provides functionality to transition a frame to DWM. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 730 | 734 |
| 731 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 735 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 732 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 736 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 733 | 737 |
| 734 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 738 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 735 }; | 739 }; |
| 736 | 740 |
| 737 } // namespace views | 741 } // namespace views |
| 738 | 742 |
| 739 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 743 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |