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

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

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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_timer.h ('k') | xfa/fwl/core/ifwl_widgetmgr.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 "xfa/fwl/core/fwl_error.h" 10 #include "xfa/fwl/core/fwl_error.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 25 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
26 FWL_ERR GetGlobalRect(CFX_RectF& rect); 26 FWL_ERR GetGlobalRect(CFX_RectF& rect);
27 FWL_ERR SetWidgetRect(const CFX_RectF& rect); 27 FWL_ERR SetWidgetRect(const CFX_RectF& rect);
28 FWL_ERR GetClientRect(CFX_RectF& rect); 28 FWL_ERR GetClientRect(CFX_RectF& rect);
29 IFWL_Widget* GetParent(); 29 IFWL_Widget* GetParent();
30 FWL_ERR SetParent(IFWL_Widget* pParent); 30 FWL_ERR SetParent(IFWL_Widget* pParent);
31 IFWL_Widget* GetOwner(); 31 IFWL_Widget* GetOwner();
32 FWL_ERR SetOwner(IFWL_Widget* pOwner); 32 FWL_ERR SetOwner(IFWL_Widget* pOwner);
33 IFWL_Widget* GetOuter(); 33 IFWL_Widget* GetOuter();
34 FX_DWORD GetStyles(); 34 uint32_t GetStyles();
35 FWL_ERR ModifyStyles(FX_DWORD dwStylesAdded, FX_DWORD dwStylesRemoved); 35 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved);
36 FX_DWORD GetStylesEx(); 36 uint32_t GetStylesEx();
37 FWL_ERR ModifyStylesEx(FX_DWORD dwStylesExAdded, FX_DWORD dwStylesExRemoved); 37 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
38 FX_DWORD GetStates(); 38 uint32_t GetStates();
39 FWL_ERR SetStates(FX_DWORD dwStates, FX_BOOL bSet = TRUE); 39 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE);
40 FWL_ERR SetPrivateData(void* module_id, 40 FWL_ERR SetPrivateData(void* module_id,
41 void* pData, 41 void* pData,
42 PD_CALLBACK_FREEDATA callback); 42 PD_CALLBACK_FREEDATA callback);
43 void* GetPrivateData(void* module_id); 43 void* GetPrivateData(void* module_id);
44 FWL_ERR Update(); 44 FWL_ERR Update();
45 FWL_ERR LockUpdate(); 45 FWL_ERR LockUpdate();
46 FWL_ERR UnlockUpdate(); 46 FWL_ERR UnlockUpdate();
47 FX_DWORD HitTest(FX_FLOAT fx, FX_FLOAT fy); 47 uint32_t HitTest(FX_FLOAT fx, FX_FLOAT fy);
48 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); 48 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy);
49 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 49 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
50 FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); 50 FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE);
51 FWL_ERR SetMatrix(const CFX_Matrix& matrix); 51 FWL_ERR SetMatrix(const CFX_Matrix& matrix);
52 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL); 52 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL);
53 IFWL_ThemeProvider* GetThemeProvider(); 53 IFWL_ThemeProvider* GetThemeProvider();
54 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 54 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
55 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); 55 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider);
56 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 56 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
57 IFWL_NoteThread* GetOwnerThread() const; 57 IFWL_NoteThread* GetOwnerThread() const;
58 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); 58 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);
59 }; 59 };
60 60
61 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; 61 typedef CFX_MapPtrTemplate<uint32_t, uint32_t> CFX_MapAccelerators;
62 62
63 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); 63 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel);
64 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); 64 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel);
65 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, 65 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom,
66 CFX_MapAccelerators* pMapAccel); 66 CFX_MapAccelerators* pMapAccel);
67 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); 67 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable);
68 68
69 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 69 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_timer.h ('k') | xfa/fwl/core/ifwl_widgetmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698