summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/fwl_widgetimp.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-26 09:40:32 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-26 09:40:32 -0700
commitd2b93dfa15dbb7fd42b7cf05fc248d7f5c87f1ef (patch)
tree9b30522756508ff0a97a119a56260e0c36eb5fb7 /xfa/fwl/core/fwl_widgetimp.h
parent7f2abcc015583e63cceb52acde757cb2111420bd (diff)
downloadpdfium-d2b93dfa15dbb7fd42b7cf05fc248d7f5c87f1ef.tar.xz
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
Diffstat (limited to 'xfa/fwl/core/fwl_widgetimp.h')
-rw-r--r--xfa/fwl/core/fwl_widgetimp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/fwl/core/fwl_widgetimp.h b/xfa/fwl/core/fwl_widgetimp.h
index 1b1ccc4b74..3fdef9786c 100644
--- a/xfa/fwl/core/fwl_widgetimp.h
+++ b/xfa/fwl/core/fwl_widgetimp.h
@@ -73,10 +73,13 @@ class CFWL_WidgetImp {
virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider);
virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
virtual IFWL_App* GetOwnerApp() const;
+
FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp);
IFWL_Widget* GetInterface() const;
void SetInterface(IFWL_Widget* pInterface);
CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);
+ uint32_t GetEventKey() const;
+ void SetEventKey(uint32_t key);
protected:
friend class CFWL_WidgetImpDelegate;
@@ -160,6 +163,7 @@ class CFWL_WidgetImp {
IFWL_Widget* m_pOuter;
IFWL_Widget* m_pInterface;
int32_t m_iLock;
+ uint32_t m_nEventKey;
};
class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate {