diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-18 11:45:36 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-18 19:19:22 +0000 |
commit | 1d52d1e5fb0b14782dd6b97eeee8c90106839452 (patch) | |
tree | 66f794d6559c0bd2ddd4dab2272ceabf01426fdc /xfa/fwl/cfwl_notedriver.h | |
parent | a77572303624a9ba9877f432bcb6ee2a16b9b34e (diff) | |
download | pdfium-1d52d1e5fb0b14782dd6b97eeee8c90106839452.tar.xz |
Use unique_ptr in CFWL_NoteDriver::m_eventTargets map
Invert CFWL_EventTarget::m_bInvalid for the sake of
positive logic.
Change-Id: I9ccc512ab2ff553e1033698f36bf3a297c4ee7c9
Reviewed-on: https://pdfium-review.googlesource.com/4251
Commit-Queue: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_notedriver.h')
-rw-r--r-- | xfa/fwl/cfwl_notedriver.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_notedriver.h b/xfa/fwl/cfwl_notedriver.h index e177494ff1..2ea3f97cc0 100644 --- a/xfa/fwl/cfwl_notedriver.h +++ b/xfa/fwl/cfwl_notedriver.h @@ -30,7 +30,7 @@ class CFWL_NoteDriver { void RegisterEventTarget(CFWL_Widget* pListener, CFWL_Widget* pEventSource); void UnregisterEventTarget(CFWL_Widget* pListener); - void ClearEventTargets(bool bRemoveAll); + void ClearEventTargets(); CFWL_NoteLoop* GetTopLoop() const; void PushNoteLoop(CFWL_NoteLoop* pNoteLoop); @@ -69,7 +69,8 @@ class CFWL_NoteDriver { std::vector<CFWL_Widget*> m_Forms; std::deque<std::unique_ptr<CFWL_Message>> m_NoteQueue; std::vector<CFWL_NoteLoop*> m_NoteLoopQueue; - std::unordered_map<uint32_t, CFWL_EventTarget*> m_eventTargets; + std::unordered_map<uint32_t, std::unique_ptr<CFWL_EventTarget>> + m_eventTargets; CFWL_Widget* m_pHover; CFWL_Widget* m_pFocus; CFWL_Widget* m_pGrab; |