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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_widget.h

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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/lightwidget/cfwl_pushbutton.h ('k') | xfa/fwl/theme/cfwl_carettp.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_LIGHTWIDGET_CFWL_WIDGET_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_
9 9
10 #include "xfa/fwl/core/cfwl_event.h" 10 #include "xfa/fwl/core/cfwl_event.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void* GetPrivateData(void* module_id); 50 void* GetPrivateData(void* module_id);
51 FWL_Error Update(); 51 FWL_Error Update();
52 FWL_Error LockUpdate(); 52 FWL_Error LockUpdate();
53 FWL_Error UnlockUpdate(); 53 FWL_Error UnlockUpdate();
54 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 54 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
55 FWL_Error TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); 55 FWL_Error TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy);
56 FWL_Error TransformTo(CFWL_Widget* pWidget, CFX_RectF& rt); 56 FWL_Error TransformTo(CFWL_Widget* pWidget, CFX_RectF& rt);
57 FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); 57 FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE);
58 FWL_Error SetMatrix(const CFX_Matrix& matrix); 58 FWL_Error SetMatrix(const CFX_Matrix& matrix);
59 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 59 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
60 const CFX_Matrix* pMatrix = NULL); 60 const CFX_Matrix* pMatrix = nullptr);
61 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 61 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
62 FWL_Error Repaint(const CFX_RectF* pRect = NULL); 62 FWL_Error Repaint(const CFX_RectF* pRect = nullptr);
63 FWL_Error SetFocus(FX_BOOL bFocus); 63 FWL_Error SetFocus(FX_BOOL bFocus);
64 FWL_Error SetGrab(FX_BOOL bSet); 64 FWL_Error SetGrab(FX_BOOL bSet);
65 CFWL_Widget(); 65 CFWL_Widget();
66 66
67 void RegisterEventTarget(CFWL_Widget* pEventSource = NULL, 67 void RegisterEventTarget(CFWL_Widget* pEventSource = nullptr,
68 uint32_t dwFilter = FWL_EVENT_ALL_MASK); 68 uint32_t dwFilter = FWL_EVENT_ALL_MASK);
69 void DispatchEvent(CFWL_Event* pEvent); 69 void DispatchEvent(CFWL_Event* pEvent);
70 CFX_SizeF CalcTextSize(const CFX_WideString& wsText, 70 CFX_SizeF CalcTextSize(const CFX_WideString& wsText,
71 FX_BOOL bMultiLine = FALSE, 71 FX_BOOL bMultiLine = FALSE,
72 int32_t iLineWidth = -1); 72 int32_t iLineWidth = -1);
73 IFWL_Widget* m_pIface; 73 IFWL_Widget* m_pIface;
74 IFWL_WidgetDelegate* m_pDelegate; 74 IFWL_WidgetDelegate* m_pDelegate;
75 CFWL_WidgetMgr* m_pWidgetMgr; 75 CFWL_WidgetMgr* m_pWidgetMgr;
76 CFWL_WidgetProperties* m_pProperties; 76 CFWL_WidgetProperties* m_pProperties;
77 77
78 protected: 78 protected:
79 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); 79 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
80 }; 80 };
81 81
82 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ 82 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_pushbutton.h ('k') | xfa/fwl/theme/cfwl_carettp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698