| 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_CFWL_NOTEDRIVER_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ |
| 8 #define XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ | 8 #define XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <unordered_map> | 12 #include <unordered_map> |
| 13 | 13 |
| 14 #include "xfa/fwl/core/cfwl_event.h" | 14 #include "xfa/fwl/core/cfwl_event.h" |
| 15 #include "xfa/fwl/core/ifwl_tooltip.h" | |
| 16 #include "xfa/fwl/core/ifwl_widget.h" | 15 #include "xfa/fwl/core/ifwl_widget.h" |
| 17 #include "xfa/fxgraphics/cfx_graphics.h" | 16 #include "xfa/fxgraphics/cfx_graphics.h" |
| 18 | 17 |
| 19 class CFWL_EventTarget; | 18 class CFWL_EventTarget; |
| 20 class CFWL_NoteLoop; | 19 class CFWL_NoteLoop; |
| 21 class CFWL_TargetImp; | 20 class CFWL_TargetImp; |
| 22 class IFWL_ToolTip; | |
| 23 class IFWL_Widget; | 21 class IFWL_Widget; |
| 24 | 22 |
| 25 class CFWL_NoteDriver { | 23 class CFWL_NoteDriver { |
| 26 public: | 24 public: |
| 27 CFWL_NoteDriver(); | 25 CFWL_NoteDriver(); |
| 28 ~CFWL_NoteDriver(); | 26 ~CFWL_NoteDriver(); |
| 29 | 27 |
| 30 void SendEvent(CFWL_Event* pNote); | 28 void SendEvent(CFWL_Event* pNote); |
| 31 | 29 |
| 32 void RegisterEventTarget(IFWL_Widget* pListener, IFWL_Widget* pEventSource); | 30 void RegisterEventTarget(IFWL_Widget* pListener, IFWL_Widget* pEventSource); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; | 69 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; |
| 72 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; | 70 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; |
| 73 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; | 71 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; |
| 74 IFWL_Widget* m_pHover; | 72 IFWL_Widget* m_pHover; |
| 75 IFWL_Widget* m_pFocus; | 73 IFWL_Widget* m_pFocus; |
| 76 IFWL_Widget* m_pGrab; | 74 IFWL_Widget* m_pGrab; |
| 77 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; | 75 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ | 78 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ |
| OLD | NEW |