OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_CORE_CFWL_MSGMOUSE_H_ | 7 #ifndef XFA_FWL_CFWL_MESSAGEMOUSE_H_ |
8 #define XFA_FWL_CORE_CFWL_MSGMOUSE_H_ | 8 #define XFA_FWL_CFWL_MESSAGEMOUSE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/fwl/core/cfwl_message.h" | 12 #include "xfa/fwl/cfwl_message.h" |
13 | 13 |
14 enum class FWL_MouseCommand { | 14 enum class FWL_MouseCommand { |
15 LeftButtonDown, | 15 LeftButtonDown, |
16 LeftButtonUp, | 16 LeftButtonUp, |
17 LeftButtonDblClk, | 17 LeftButtonDblClk, |
18 RightButtonDown, | 18 RightButtonDown, |
19 RightButtonUp, | 19 RightButtonUp, |
20 RightButtonDblClk, | 20 RightButtonDblClk, |
21 Move, | 21 Move, |
22 Enter, | 22 Enter, |
23 Leave, | 23 Leave, |
24 Hover | 24 Hover |
25 }; | 25 }; |
26 | 26 |
27 class CFWL_MsgMouse : public CFWL_Message { | 27 class CFWL_MessageMouse : public CFWL_Message { |
28 public: | 28 public: |
29 CFWL_MsgMouse(CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget); | 29 CFWL_MessageMouse(CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget); |
30 ~CFWL_MsgMouse() override; | 30 ~CFWL_MessageMouse() override; |
31 | 31 |
32 // CFWL_Message | 32 // CFWL_Message |
33 std::unique_ptr<CFWL_Message> Clone() override; | 33 std::unique_ptr<CFWL_Message> Clone() override; |
34 | 34 |
35 FX_FLOAT m_fx; | 35 FX_FLOAT m_fx; |
36 FX_FLOAT m_fy; | 36 FX_FLOAT m_fy; |
37 uint32_t m_dwFlags; | 37 uint32_t m_dwFlags; |
38 FWL_MouseCommand m_dwCmd; | 38 FWL_MouseCommand m_dwCmd; |
39 }; | 39 }; |
40 | 40 |
41 #endif // XFA_FWL_CORE_CFWL_MSGMOUSE_H_ | 41 #endif // XFA_FWL_CFWL_MESSAGEMOUSE_H_ |
OLD | NEW |