| 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> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class IFWL_ToolTip; | 22 class IFWL_ToolTip; |
| 23 class IFWL_Widget; | 23 class IFWL_Widget; |
| 24 | 24 |
| 25 class CFWL_NoteDriver { | 25 class CFWL_NoteDriver { |
| 26 public: | 26 public: |
| 27 CFWL_NoteDriver(); | 27 CFWL_NoteDriver(); |
| 28 ~CFWL_NoteDriver(); | 28 ~CFWL_NoteDriver(); |
| 29 | 29 |
| 30 void SendEvent(CFWL_Event* pNote); | 30 void SendEvent(CFWL_Event* pNote); |
| 31 | 31 |
| 32 void RegisterEventTarget(IFWL_Widget* pListener, | 32 void RegisterEventTarget(IFWL_Widget* pListener, IFWL_Widget* pEventSource); |
| 33 IFWL_Widget* pEventSource = nullptr, | |
| 34 uint32_t dwFilter = FWL_EVENT_ALL_MASK); | |
| 35 void UnregisterEventTarget(IFWL_Widget* pListener); | 33 void UnregisterEventTarget(IFWL_Widget* pListener); |
| 36 void ClearEventTargets(bool bRemoveAll); | 34 void ClearEventTargets(bool bRemoveAll); |
| 37 | 35 |
| 38 CFWL_NoteLoop* GetTopLoop() const; | 36 CFWL_NoteLoop* GetTopLoop() const; |
| 39 void PushNoteLoop(CFWL_NoteLoop* pNoteLoop); | 37 void PushNoteLoop(CFWL_NoteLoop* pNoteLoop); |
| 40 CFWL_NoteLoop* PopNoteLoop(); | 38 CFWL_NoteLoop* PopNoteLoop(); |
| 41 | 39 |
| 42 IFWL_Widget* GetFocus() const { return m_pFocus; } | 40 IFWL_Widget* GetFocus() const { return m_pFocus; } |
| 43 bool SetFocus(IFWL_Widget* pFocus, bool bNotify = false); | 41 bool SetFocus(IFWL_Widget* pFocus, bool bNotify = false); |
| 44 void SetGrab(IFWL_Widget* pGrab, bool bSet) { | 42 void SetGrab(IFWL_Widget* pGrab, bool bSet) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; | 71 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; |
| 74 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; | 72 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; |
| 75 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; | 73 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; |
| 76 IFWL_Widget* m_pHover; | 74 IFWL_Widget* m_pHover; |
| 77 IFWL_Widget* m_pFocus; | 75 IFWL_Widget* m_pFocus; |
| 78 IFWL_Widget* m_pGrab; | 76 IFWL_Widget* m_pGrab; |
| 79 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; | 77 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ | 80 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ |
| OLD | NEW |