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

Side by Side Diff: xfa/fxfa/include/fxfa_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, 5 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/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_ffdoc.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_FXFA_INCLUDE_FXFA_WIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 FX_BOOL LoadImageImage(); 63 FX_BOOL LoadImageImage();
64 FX_BOOL LoadImageEditImage(); 64 FX_BOOL LoadImageEditImage();
65 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); 65 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi);
66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); 66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi);
67 CXFA_TextLayout* GetCaptionTextLayout(); 67 CXFA_TextLayout* GetCaptionTextLayout();
68 CXFA_TextLayout* GetTextLayout(); 68 CXFA_TextLayout* GetTextLayout();
69 CFX_DIBitmap* GetImageImage(); 69 CFX_DIBitmap* GetImageImage();
70 CFX_DIBitmap* GetImageEditImage(); 70 CFX_DIBitmap* GetImageEditImage();
71 void SetImageImage(CFX_DIBitmap* newImage); 71 void SetImageImage(CFX_DIBitmap* newImage);
72 void SetImageEditImage(CFX_DIBitmap* newImage); 72 void SetImageEditImage(CFX_DIBitmap* newImage);
73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); 73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = nullptr);
74 74
75 CXFA_Node* GetDatasets(); 75 CXFA_Node* GetDatasets();
76 CFGAS_GEFont* GetFDEFont(); 76 CFGAS_GEFont* GetFDEFont();
77 FX_FLOAT GetFontSize(); 77 FX_FLOAT GetFontSize();
78 FX_ARGB GetTextColor(); 78 FX_ARGB GetTextColor();
79 FX_FLOAT GetLineHeight(); 79 FX_FLOAT GetLineHeight();
80 CXFA_WidgetLayoutData* GetWidgetLayoutData(); 80 CXFA_WidgetLayoutData* GetWidgetLayoutData();
81 81
82 protected: 82 protected:
83 void ProcessScriptTestValidate(CXFA_Validate validate, 83 void ProcessScriptTestValidate(CXFA_Validate validate,
(...skipping 30 matching lines...) Expand all
114 FX_FLOAT& fCalcHeight); 114 FX_FLOAT& fCalcHeight);
115 void InitLayoutData(); 115 void InitLayoutData();
116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); 116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight);
117 117
118 CXFA_FFDocView* m_pDocView; 118 CXFA_FFDocView* m_pDocView;
119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData; 119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData;
120 uint32_t m_nRecursionDepth; 120 uint32_t m_nRecursionDepth;
121 }; 121 };
122 122
123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_ffdoc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698