Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: xfa/fwl/core/fwl_widgetimp.cpp

Issue 2012143003: Remove one (of several) usages of SetPrivateData from IFWL_Widget (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698