Index: xfa/fwl/core/fwl_widgetimp.cpp |
diff --git a/xfa/fwl/core/fwl_widgetimp.cpp b/xfa/fwl/core/fwl_widgetimp.cpp |
index adf548f24e02efb7be2357f71d88c30858f51fea..833ed48b246506b610b8059c0eb3fa2ad1e9b011 100644 |
--- a/xfa/fwl/core/fwl_widgetimp.cpp |
+++ b/xfa/fwl/core/fwl_widgetimp.cpp |
@@ -97,6 +97,15 @@ uint32_t IFWL_Widget::GetStates() { |
void IFWL_Widget::SetStates(uint32_t dwStates, FX_BOOL bSet) { |
static_cast<CFWL_WidgetImp*>(GetImpl())->SetStates(dwStates, bSet); |
} |
+ |
+uint32_t IFWL_Widget::GetEventKey() const { |
+ return static_cast<CFWL_WidgetImp*>(GetImpl())->GetEventKey(); |
Lei Zhang
2016/05/26 01:32:20
GetImpl() and many other calls to it in this file
Tom Sepez
2016/05/26 16:15:55
Done.
|
+} |
+ |
+void IFWL_Widget::SetEventKey(uint32_t key) { |
+ static_cast<CFWL_WidgetImp*>(GetImpl())->SetEventKey(key); |
+} |
+ |
FWL_Error IFWL_Widget::SetPrivateData(void* module_id, |
void* pData, |
PD_CALLBACK_FREEDATA callback) { |
@@ -506,6 +515,15 @@ IFWL_Widget* CFWL_WidgetImp::GetInterface() const { |
void CFWL_WidgetImp::SetInterface(IFWL_Widget* pInterface) { |
m_pInterface = pInterface; |
} |
+ |
+uint32_t CFWL_WidgetImp::GetEventKey() const { |
+ return m_nEventKey; |
+} |
+ |
+void CFWL_WidgetImp::SetEventKey(uint32_t key) { |
+ m_nEventKey = key; |
+} |
+ |
CFWL_WidgetImp::CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties, |
IFWL_Widget* pOuter) |
: m_pProperties(new CFWL_WidgetImpProperties), |
@@ -514,7 +532,8 @@ CFWL_WidgetImp::CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties, |
m_pCurDelegate(NULL), |
m_pOuter(pOuter), |
m_pInterface(NULL), |
- m_iLock(0) { |
+ m_iLock(0), |
+ m_nEventKey(0) { |
*m_pProperties = properties; |
m_pWidgetMgr = CFWL_WidgetMgr::GetInstance(); |
ASSERT(m_pWidgetMgr != NULL); |