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

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

Issue 2515243003: Remove FwlEventMask (Closed)
Patch Set: 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
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/cfwl_eventtarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EVENTTARGET_H_ 7 #ifndef XFA_FWL_CORE_CFWL_EVENTTARGET_H_
8 #define XFA_FWL_CORE_CFWL_EVENTTARGET_H_ 8 #define XFA_FWL_CORE_CFWL_EVENTTARGET_H_
9 9
10 #include <set>
11
10 #include "core/fxcrt/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
11 #include "xfa/fwl/core/cfwl_event.h" 13 #include "xfa/fwl/core/cfwl_event.h"
12 14
13 class CFWL_Event; 15 class CFWL_Event;
14 class IFWL_Widget; 16 class IFWL_Widget;
15 17
16 class CFWL_EventTarget { 18 class CFWL_EventTarget {
17 public: 19 public:
18 explicit CFWL_EventTarget(IFWL_Widget* pListener); 20 explicit CFWL_EventTarget(IFWL_Widget* pListener);
19 ~CFWL_EventTarget(); 21 ~CFWL_EventTarget();
20 22
21 int32_t SetEventSource(IFWL_Widget* pSource, 23 void SetEventSource(IFWL_Widget* pSource);
22 uint32_t dwFilter = FWL_EVENT_ALL_MASK);
23 bool ProcessEvent(CFWL_Event* pEvent); 24 bool ProcessEvent(CFWL_Event* pEvent);
24 25
25 bool IsInvalid() const { return m_bInvalid; } 26 bool IsInvalid() const { return m_bInvalid; }
26 void FlagInvalid() { m_bInvalid = true; } 27 void FlagInvalid() { m_bInvalid = true; }
27 28
28 private: 29 private:
29 bool IsFilterEvent(CFWL_Event* pEvent, uint32_t dwFilter) const; 30 std::set<IFWL_Widget*> m_widgets;
30
31 CFX_MapPtrTemplate<void*, uint32_t> m_eventSources;
32 IFWL_Widget* m_pListener; 31 IFWL_Widget* m_pListener;
33 bool m_bInvalid; 32 bool m_bInvalid;
34 }; 33 };
35 34
36 #endif // XFA_FWL_CORE_CFWL_EVENTTARGET_H_ 35 #endif // XFA_FWL_CORE_CFWL_EVENTTARGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/cfwl_eventtarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698