| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_FWL_NOTEIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_NOTEIMP_H_ | 8 #define XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| 9 | 9 |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; | 114 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; |
| 115 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; | 115 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; |
| 116 IFWL_Widget* m_pHover; | 116 IFWL_Widget* m_pHover; |
| 117 IFWL_Widget* m_pFocus; | 117 IFWL_Widget* m_pFocus; |
| 118 IFWL_Widget* m_pGrab; | 118 IFWL_Widget* m_pGrab; |
| 119 CFWL_NoteLoop* m_pNoteLoop; | 119 CFWL_NoteLoop* m_pNoteLoop; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 class CFWL_EventTarget { | 122 class CFWL_EventTarget { |
| 123 public: | 123 public: |
| 124 CFWL_EventTarget(CFWL_NoteDriver* pNoteDriver, IFWL_Widget* pListener) | 124 CFWL_EventTarget(CFWL_NoteDriver* pNoteDriver, IFWL_Widget* pListener); |
| 125 : m_pListener(pListener), m_pNoteDriver(pNoteDriver), m_bInvalid(FALSE) {} | |
| 126 ~CFWL_EventTarget(); | 125 ~CFWL_EventTarget(); |
| 126 |
| 127 int32_t SetEventSource(IFWL_Widget* pSource, | 127 int32_t SetEventSource(IFWL_Widget* pSource, |
| 128 uint32_t dwFilter = FWL_EVENT_ALL_MASK); | 128 uint32_t dwFilter = FWL_EVENT_ALL_MASK); |
| 129 FX_BOOL ProcessEvent(CFWL_Event* pEvent); | 129 FX_BOOL ProcessEvent(CFWL_Event* pEvent); |
| 130 FX_BOOL IsFilterEvent(CFWL_Event* pEvent, uint32_t dwFilter); | 130 FX_BOOL IsFilterEvent(CFWL_Event* pEvent, uint32_t dwFilter); |
| 131 FX_BOOL IsInvalid() { return m_bInvalid; } | 131 FX_BOOL IsInvalid() { return m_bInvalid; } |
| 132 void FlagInvalid() { m_bInvalid = TRUE; } | 132 void FlagInvalid() { m_bInvalid = TRUE; } |
| 133 | 133 |
| 134 protected: | 134 protected: |
| 135 CFX_MapPtrTemplate<void*, uint32_t> m_eventSources; | 135 CFX_MapPtrTemplate<void*, uint32_t> m_eventSources; |
| 136 IFWL_Widget* m_pListener; | 136 IFWL_Widget* m_pListener; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 159 IFWL_ToolTipTarget* pCurTarget; | 159 IFWL_ToolTipTarget* pCurTarget; |
| 160 CFWL_ToolTipImp* m_pToolTipImp; | 160 CFWL_ToolTipImp* m_pToolTipImp; |
| 161 CFWL_CoreToolTipDP* m_ToolTipDp; | 161 CFWL_CoreToolTipDP* m_ToolTipDp; |
| 162 CFX_ArrayTemplate<IFWL_ToolTipTarget*> m_arrWidget; | 162 CFX_ArrayTemplate<IFWL_ToolTipTarget*> m_arrWidget; |
| 163 | 163 |
| 164 private: | 164 private: |
| 165 static CFWL_ToolTipContainer* s_pInstance; | 165 static CFWL_ToolTipContainer* s_pInstance; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // XFA_FWL_CORE_FWL_NOTEIMP_H_ | 168 #endif // XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| OLD | NEW |