summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_widget.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-26 17:35:54 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-26 17:35:54 -0700
commit54ab2343c338f55735c37ed6751040791e1df1e2 (patch)
tree59851961d740cb6c913dbdd42d54a8d64bfbf5de /xfa/fwl/core/ifwl_widget.h
parent3bd3841291b46bd7ae31cfb8dc8035e5b4ed4e40 (diff)
downloadpdfium-54ab2343c338f55735c37ed6751040791e1df1e2.tar.xz
Add opaque "layout item" to widgets for caller's use.
This avoids another use of CFX_PrivateData. Note that in the old code, we'd be calling through a m_pImpl onto the same underlying object as we passed as the "key" argument when setting the value, which explains why the get calls, happening one object lower, pass the same argument as which they are being inovked against. Review-Url: https://codereview.chromium.org/2010923002
Diffstat (limited to 'xfa/fwl/core/ifwl_widget.h')
-rw-r--r--xfa/fwl/core/ifwl_widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xfa/fwl/core/ifwl_widget.h b/xfa/fwl/core/ifwl_widget.h
index 1c469b276c..e9da806291 100644
--- a/xfa/fwl/core/ifwl_widget.h
+++ b/xfa/fwl/core/ifwl_widget.h
@@ -77,6 +77,8 @@ class IFWL_Widget {
void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE);
uint32_t GetEventKey() const;
void SetEventKey(uint32_t key);
+ void* GetLayoutItem() const;
+ void SetLayoutItem(void* pItem);
FWL_Error SetPrivateData(void* module_id,
void* pData,
PD_CALLBACK_FREEDATA callback);