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

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

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: better macros Created 4 years, 6 months 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/fwl_formimp.cpp ('k') | xfa/fwl/core/fwl_noteimp.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 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
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
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_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_formimp.cpp ('k') | xfa/fwl/core/fwl_noteimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698