From d2b93dfa15dbb7fd42b7cf05fc248d7f5c87f1ef Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 26 May 2016 09:40:32 -0700 Subject: Remove one (of several) usages of SetPrivateData from IFWL_Widget Allow an upper layer to store an "event key" directly in the widget. Also fix some dubious logic in key allocation. Review-Url: https://codereview.chromium.org/2012143003 --- xfa/fwl/core/ifwl_widget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xfa/fwl/core/ifwl_widget.h') diff --git a/xfa/fwl/core/ifwl_widget.h b/xfa/fwl/core/ifwl_widget.h index 8bbf8da469..1c469b276c 100644 --- a/xfa/fwl/core/ifwl_widget.h +++ b/xfa/fwl/core/ifwl_widget.h @@ -75,6 +75,8 @@ class IFWL_Widget { uint32_t dwStylesExRemoved); uint32_t GetStates(); void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); + uint32_t GetEventKey() const; + void SetEventKey(uint32_t key); FWL_Error SetPrivateData(void* module_id, void* pData, PD_CALLBACK_FREEDATA callback); -- cgit v1.2.3