Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: xfa/fwl/core/cfwl_msgmouse.h

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Review feedback Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CORE_CFWL_MSGMOUSE_H_
8 #define XFA_FWL_CORE_CFWL_MSGMOUSE_H_ 8 #define XFA_FWL_CORE_CFWL_MSGMOUSE_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/cfwl_message.h" 12 #include "xfa/fwl/core/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_MsgMouse : public CFWL_Message {
28 public: 28 public:
29 CFWL_MsgMouse(); 29 CFWL_MsgMouse(CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget);
30 ~CFWL_MsgMouse() override; 30 ~CFWL_MsgMouse() 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 CFWL_MessageType GetClassID() const override;
35 34
36 FX_FLOAT m_fx; 35 FX_FLOAT m_fx;
37 FX_FLOAT m_fy; 36 FX_FLOAT m_fy;
38 uint32_t m_dwFlags; 37 uint32_t m_dwFlags;
39 FWL_MouseCommand m_dwCmd; 38 FWL_MouseCommand m_dwCmd;
40 }; 39 };
41 40
42 #endif // XFA_FWL_CORE_CFWL_MSGMOUSE_H_ 41 #endif // XFA_FWL_CORE_CFWL_MSGMOUSE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698