| 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 _FWL_NOTE_IMP_H | 7 #ifndef _FWL_NOTE_IMP_H |
| 8 #define _FWL_NOTE_IMP_H | 8 #define _FWL_NOTE_IMP_H |
| 9 class CFWL_Target; | 9 class CFWL_Target; |
| 10 class CFWL_WidgetImp; | 10 class CFWL_WidgetImp; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 IFWL_Widget* m_pFocus; | 97 IFWL_Widget* m_pFocus; |
| 98 IFWL_Widget* m_pGrab; | 98 IFWL_Widget* m_pGrab; |
| 99 CFWL_NoteLoop* m_pNoteLoop; | 99 CFWL_NoteLoop* m_pNoteLoop; |
| 100 FWLMessageHookCallback m_hook; | 100 FWLMessageHookCallback m_hook; |
| 101 void* m_hookInfo; | 101 void* m_hookInfo; |
| 102 }; | 102 }; |
| 103 typedef CFX_MapPtrTemplate<void*, FX_DWORD> CFWL_EventSource; | 103 typedef CFX_MapPtrTemplate<void*, FX_DWORD> CFWL_EventSource; |
| 104 class CFWL_EventTarget { | 104 class CFWL_EventTarget { |
| 105 public: | 105 public: |
| 106 CFWL_EventTarget(CFWL_NoteDriver* pNoteDriver, IFWL_Widget* pListener) | 106 CFWL_EventTarget(CFWL_NoteDriver* pNoteDriver, IFWL_Widget* pListener) |
| 107 : m_pNoteDriver(pNoteDriver), m_pListener(pListener), m_bInvalid(FALSE) {} | 107 : m_pListener(pListener), m_pNoteDriver(pNoteDriver), m_bInvalid(FALSE) {} |
| 108 ~CFWL_EventTarget(); | 108 ~CFWL_EventTarget(); |
| 109 int32_t SetEventSource(IFWL_Widget* pSource, | 109 int32_t SetEventSource(IFWL_Widget* pSource, |
| 110 FX_DWORD dwFilter = FWL_EVENT_ALL_MASK); | 110 FX_DWORD dwFilter = FWL_EVENT_ALL_MASK); |
| 111 FX_BOOL ProcessEvent(CFWL_Event* pEvent); | 111 FX_BOOL ProcessEvent(CFWL_Event* pEvent); |
| 112 FX_BOOL IsFilterEvent(CFWL_Event* pEvent, FX_DWORD dwFilter); | 112 FX_BOOL IsFilterEvent(CFWL_Event* pEvent, FX_DWORD dwFilter); |
| 113 FX_BOOL IsInvalid() { return m_bInvalid; } | 113 FX_BOOL IsInvalid() { return m_bInvalid; } |
| 114 void FlagInvalid() { m_bInvalid = TRUE; } | 114 void FlagInvalid() { m_bInvalid = TRUE; } |
| 115 | 115 |
| 116 protected: | 116 protected: |
| 117 CFWL_EventSource m_eventSources; | 117 CFWL_EventSource m_eventSources; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 142 | 142 |
| 143 IFWL_ToolTipTarget* pCurTarget; | 143 IFWL_ToolTipTarget* pCurTarget; |
| 144 CFWL_ToolTipImp* m_pToolTipImp; | 144 CFWL_ToolTipImp* m_pToolTipImp; |
| 145 CFWL_CoreToopTipDP* m_ToolTipDp; | 145 CFWL_CoreToopTipDP* m_ToolTipDp; |
| 146 CFX_PtrArray m_arrWidget; | 146 CFX_PtrArray m_arrWidget; |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 static CFWL_ToolTipContainer* s_pInstance; | 149 static CFWL_ToolTipContainer* s_pInstance; |
| 150 }; | 150 }; |
| 151 #endif | 151 #endif |
| OLD | NEW |