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

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

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Cleanup 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_MESSAGE_H_ 7 #ifndef XFA_FWL_CORE_CFWL_MESSAGE_H_
8 #define XFA_FWL_CORE_CFWL_MESSAGE_H_ 8 #define XFA_FWL_CORE_CFWL_MESSAGE_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxcrt/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
13 #include "core/fxcrt/fx_string.h" 13 #include "core/fxcrt/fx_string.h"
14 #include "core/fxcrt/fx_system.h" 14 #include "core/fxcrt/fx_system.h"
15 #include "xfa/fwl/core/fwl_error.h" 15 #include "xfa/fwl/core/fwl_error.h"
16 16
17 enum class CFWL_MessageType { 17 enum class CFWL_MessageType {
Tom Sepez 2016/12/07 18:48:26 nitto
dsinclair 2016/12/07 20:02:02 Done.
18 None = 0,
19 Key, 18 Key,
20 KillFocus, 19 KillFocus,
21 Mouse, 20 Mouse,
22 MouseWheel, 21 MouseWheel,
23 SetFocus 22 SetFocus
24 }; 23 };
25 24
26 class CFWL_Widget; 25 class CFWL_Widget;
27 26
28 class CFWL_Message { 27 class CFWL_Message {
29 public: 28 public:
30 CFWL_Message(); 29 explicit CFWL_Message(CFWL_MessageType type);
31 virtual ~CFWL_Message(); 30 virtual ~CFWL_Message();
32 31
33 virtual std::unique_ptr<CFWL_Message> Clone(); 32 virtual std::unique_ptr<CFWL_Message> Clone();
34 virtual CFWL_MessageType GetClassID() const; 33 CFWL_MessageType GetClassID() const { return m_type; }
35 34
36 CFWL_Widget* m_pSrcTarget; 35 CFWL_Widget* m_pSrcTarget;
37 CFWL_Widget* m_pDstTarget; 36 CFWL_Widget* m_pDstTarget;
38 uint32_t m_dwExtend; 37 uint32_t m_dwExtend;
38
39 private:
40 CFWL_MessageType m_type;
39 }; 41 };
40 42
41 43
42 #endif // XFA_FWL_CORE_CFWL_MESSAGE_H_ 44 #endif // XFA_FWL_CORE_CFWL_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698