summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/fwl_noteimp.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-11 11:05:53 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-11 11:05:53 -0700
commit877a547fdbd461e75c309c0f24135ba663027b81 (patch)
treeb101f967486bb458002a92947b3b8be6a7f7d34b /xfa/fwl/core/fwl_noteimp.h
parent317354363a60529e486cbf4e8fcb883d34ea989b (diff)
downloadpdfium-877a547fdbd461e75c309c0f24135ba663027b81.tar.xz
Use STL map for m_eventTargets.
Remove unused member and return value along the way. Review-Url: https://codereview.chromium.org/1940033002
Diffstat (limited to 'xfa/fwl/core/fwl_noteimp.h')
-rw-r--r--xfa/fwl/core/fwl_noteimp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fwl/core/fwl_noteimp.h b/xfa/fwl/core/fwl_noteimp.h
index 778eae6045..9116e31e08 100644
--- a/xfa/fwl/core/fwl_noteimp.h
+++ b/xfa/fwl/core/fwl_noteimp.h
@@ -7,6 +7,8 @@
#ifndef XFA_FWL_CORE_FWL_NOTEIMP_H_
#define XFA_FWL_CORE_FWL_NOTEIMP_H_
+#include <unordered_map>
+
#include "xfa/fwl/core/cfwl_event.h"
#include "xfa/fwl/core/cfwl_message.h"
#include "xfa/fwl/core/fwl_error.h"
@@ -24,6 +26,7 @@ enum FWL_KeyFlag {
};
class CFWL_CoreToolTipDP;
+class CFWL_EventTarget;
class CFWL_MsgActivate;
class CFWL_MsgDeactivate;
class CFWL_MsgDropFiles;
@@ -62,7 +65,7 @@ class CFWL_NoteDriver {
CFWL_NoteDriver();
~CFWL_NoteDriver();
- FX_BOOL SendEvent(CFWL_Event* pNote);
+ void SendEvent(CFWL_Event* pNote);
FWL_Error RegisterEventTarget(IFWL_Widget* pListener,
IFWL_Widget* pEventSource = nullptr,
uint32_t dwFilter = FWL_EVENT_ALL_MASK);
@@ -109,8 +112,7 @@ class CFWL_NoteDriver {
CFX_ArrayTemplate<CFWL_WidgetImp*> m_forms;
CFX_ArrayTemplate<CFWL_Message*> m_noteQueue;
CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue;
- CFX_MapPtrToPtr m_eventTargets;
- int32_t m_sendEventCalled;
+ std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets;
IFWL_Widget* m_pHover;
IFWL_Widget* m_pFocus;
IFWL_Widget* m_pGrab;