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

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

Issue 2010923002: Add opaque "layout item" to widgets for caller's use. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Cast to FFWidget. 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') | 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 78 uint32_t GetEventKey() const;
79 void SetEventKey(uint32_t key); 79 void SetEventKey(uint32_t key);
80 void* GetLayoutItem() const;
81 void SetLayoutItem(void* pItem);
80 FWL_Error SetPrivateData(void* module_id, 82 FWL_Error SetPrivateData(void* module_id,
81 void* pData, 83 void* pData,
82 PD_CALLBACK_FREEDATA callback); 84 PD_CALLBACK_FREEDATA callback);
83 void* GetPrivateData(void* module_id); 85 void* GetPrivateData(void* module_id);
84 FWL_Error Update(); 86 FWL_Error Update();
85 FWL_Error LockUpdate(); 87 FWL_Error LockUpdate();
86 FWL_Error UnlockUpdate(); 88 FWL_Error UnlockUpdate();
87 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 89 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
88 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); 90 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy);
89 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 91 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
(...skipping 20 matching lines...) Expand all
110 112
111 protected: 113 protected:
112 // Takes ownership of |pImpl|. 114 // Takes ownership of |pImpl|.
113 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } 115 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); }
114 116
115 private: 117 private:
116 std::unique_ptr<CFWL_WidgetImp> m_pImpl; 118 std::unique_ptr<CFWL_WidgetImp> m_pImpl;
117 }; 119 };
118 120
119 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 121 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.cpp ('k') | xfa/fwl/lightwidget/cfwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698