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

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

Issue 1928963004: Cleanup IFWL_Adapter interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_app.h ('k') | xfa/fwl/lightwidget/cfwl_widget.h » ('j') | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 IFWL_Widget* GetParent(); 46 IFWL_Widget* GetParent();
47 FWL_ERR SetParent(IFWL_Widget* pParent); 47 FWL_ERR SetParent(IFWL_Widget* pParent);
48 IFWL_Widget* GetOwner(); 48 IFWL_Widget* GetOwner();
49 FWL_ERR SetOwner(IFWL_Widget* pOwner); 49 FWL_ERR SetOwner(IFWL_Widget* pOwner);
50 IFWL_Widget* GetOuter(); 50 IFWL_Widget* GetOuter();
51 uint32_t GetStyles(); 51 uint32_t GetStyles();
52 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); 52 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved);
53 uint32_t GetStylesEx(); 53 uint32_t GetStylesEx();
54 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); 54 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
55 uint32_t GetStates(); 55 uint32_t GetStates();
56 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); 56 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE);
57 FWL_ERR SetPrivateData(void* module_id, 57 FWL_ERR SetPrivateData(void* module_id,
58 void* pData, 58 void* pData,
59 PD_CALLBACK_FREEDATA callback); 59 PD_CALLBACK_FREEDATA callback);
60 void* GetPrivateData(void* module_id); 60 void* GetPrivateData(void* module_id);
61 FWL_ERR Update(); 61 FWL_ERR Update();
62 FWL_ERR LockUpdate(); 62 FWL_ERR LockUpdate();
63 FWL_ERR UnlockUpdate(); 63 FWL_ERR UnlockUpdate();
64 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 64 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
65 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); 65 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy);
66 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 66 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
(...skipping 19 matching lines...) Expand all
86 86
87 protected: 87 protected:
88 // Takes ownership of |pImpl|. 88 // Takes ownership of |pImpl|.
89 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } 89 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); }
90 90
91 private: 91 private:
92 std::unique_ptr<CFWL_WidgetImp> m_pImpl; 92 std::unique_ptr<CFWL_WidgetImp> m_pImpl;
93 }; 93 };
94 94
95 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 95 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_app.h ('k') | xfa/fwl/lightwidget/cfwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698