| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 void RegisterEventTarget(CFWL_Widget* pListener, CFWL_Widget* pEventSource); | 30 void RegisterEventTarget(CFWL_Widget* pListener, CFWL_Widget* pEventSource); |
| 31 void UnregisterEventTarget(CFWL_Widget* pListener); | 31 void UnregisterEventTarget(CFWL_Widget* pListener); |
| 32 void ClearEventTargets(bool bRemoveAll); | 32 void ClearEventTargets(bool bRemoveAll); |
| 33 | 33 |
| 34 CFWL_NoteLoop* GetTopLoop() const; | 34 CFWL_NoteLoop* GetTopLoop() const; |
| 35 void PushNoteLoop(CFWL_NoteLoop* pNoteLoop); | 35 void PushNoteLoop(CFWL_NoteLoop* pNoteLoop); |
| 36 CFWL_NoteLoop* PopNoteLoop(); | 36 CFWL_NoteLoop* PopNoteLoop(); |
| 37 | 37 |
| 38 CFWL_Widget* GetFocus() const { return m_pFocus; } | 38 CFWL_Widget* GetFocus() const { return m_pFocus; } |
| 39 bool SetFocus(CFWL_Widget* pFocus, bool bNotify = false); | 39 bool SetFocus(CFWL_Widget* pFocus); |
| 40 void SetGrab(CFWL_Widget* pGrab, bool bSet) { | 40 void SetGrab(CFWL_Widget* pGrab, bool bSet) { |
| 41 m_pGrab = bSet ? pGrab : nullptr; | 41 m_pGrab = bSet ? pGrab : nullptr; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void Run(); | 44 void Run(); |
| 45 | 45 |
| 46 void NotifyTargetHide(CFWL_Widget* pNoteTarget); | 46 void NotifyTargetHide(CFWL_Widget* pNoteTarget); |
| 47 void NotifyTargetDestroy(CFWL_Widget* pNoteTarget); | 47 void NotifyTargetDestroy(CFWL_Widget* pNoteTarget); |
| 48 | 48 |
| 49 void RegisterForm(CFWL_Widget* pForm); | 49 void RegisterForm(CFWL_Widget* pForm); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; | 69 std::deque<std::unique_ptr<CFWL_Message>> m_noteQueue; |
| 70 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; | 70 CFX_ArrayTemplate<CFWL_NoteLoop*> m_noteLoopQueue; |
| 71 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; | 71 std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; |
| 72 CFWL_Widget* m_pHover; | 72 CFWL_Widget* m_pHover; |
| 73 CFWL_Widget* m_pFocus; | 73 CFWL_Widget* m_pFocus; |
| 74 CFWL_Widget* m_pGrab; | 74 CFWL_Widget* m_pGrab; |
| 75 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; | 75 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ | 78 #endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_ |
| OLD | NEW |