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

Side by Side Diff: xfa/fwl/core/ifwl_widget.h

Issue 2012143003: Remove one (of several) usages of SetPrivateData from IFWL_Widget (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove casts Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_
8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 IFWL_Widget* GetOwner(); 68 IFWL_Widget* GetOwner();
69 FWL_Error SetOwner(IFWL_Widget* pOwner); 69 FWL_Error SetOwner(IFWL_Widget* pOwner);
70 IFWL_Widget* GetOuter(); 70 IFWL_Widget* GetOuter();
71 uint32_t GetStyles(); 71 uint32_t GetStyles();
72 FWL_Error ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); 72 FWL_Error ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved);
73 uint32_t GetStylesEx(); 73 uint32_t GetStylesEx();
74 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, 74 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded,
75 uint32_t dwStylesExRemoved); 75 uint32_t dwStylesExRemoved);
76 uint32_t GetStates(); 76 uint32_t GetStates();
77 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); 77 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE);
78 uint32_t GetEventKey() const;
79 void SetEventKey(uint32_t key);
78 FWL_Error SetPrivateData(void* module_id, 80 FWL_Error SetPrivateData(void* module_id,
79 void* pData, 81 void* pData,
80 PD_CALLBACK_FREEDATA callback); 82 PD_CALLBACK_FREEDATA callback);
81 void* GetPrivateData(void* module_id); 83 void* GetPrivateData(void* module_id);
82 FWL_Error Update(); 84 FWL_Error Update();
83 FWL_Error LockUpdate(); 85 FWL_Error LockUpdate();
84 FWL_Error UnlockUpdate(); 86 FWL_Error UnlockUpdate();
85 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 87 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
86 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); 88 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy);
87 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 89 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
(...skipping 20 matching lines...) Expand all
108 110
109 protected: 111 protected:
110 // Takes ownership of |pImpl|. 112 // Takes ownership of |pImpl|.
111 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } 113 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); }
112 114
113 private: 115 private:
114 std::unique_ptr<CFWL_WidgetImp> m_pImpl; 116 std::unique_ptr<CFWL_WidgetImp> m_pImpl;
115 }; 117 };
116 118
117 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 119 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698