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

Side by Side Diff: fpdfsdk/include/fsdk_baseform.h

Issue 1544963002: Clean up misc nits found while fixing bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 11 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
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 FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 std::vector<CPDFSDK_Widget*>* widgets) const; 189 std::vector<CPDFSDK_Widget*>* widgets) const;
190 void GetWidgets(CPDF_FormField* pField, 190 void GetWidgets(CPDF_FormField* pField,
191 std::vector<CPDFSDK_Widget*>* widgets) const; 191 std::vector<CPDFSDK_Widget*>* widgets) const;
192 192
193 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); 193 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget);
194 void RemoveMap(CPDF_FormControl* pControl); 194 void RemoveMap(CPDF_FormControl* pControl);
195 195
196 void EnableCalculate(FX_BOOL bEnabled); 196 void EnableCalculate(FX_BOOL bEnabled);
197 FX_BOOL IsCalculateEnabled() const; 197 FX_BOOL IsCalculateEnabled() const;
198 198
199 #ifdef _WIN32
200 CPDF_Stream* LoadImageFromFile(const CFX_WideString& sFile);
201 #endif
202
203 void OnKeyStrokeCommit(CPDF_FormField* pFormField, 199 void OnKeyStrokeCommit(CPDF_FormField* pFormField,
204 CFX_WideString& csValue, 200 CFX_WideString& csValue,
205 FX_BOOL& bRC); 201 FX_BOOL& bRC);
206 void OnValidate(CPDF_FormField* pFormField, 202 void OnValidate(CPDF_FormField* pFormField,
207 CFX_WideString& csValue, 203 CFX_WideString& csValue,
208 FX_BOOL& bRC); 204 FX_BOOL& bRC);
209 void OnCalculate(CPDF_FormField* pFormField = NULL); 205 void OnCalculate(CPDF_FormField* pFormField = NULL);
210 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); 206 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated);
211 207
212 void ResetFieldAppearance(CPDF_FormField* pFormField, 208 void ResetFieldAppearance(CPDF_FormField* pFormField,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); 298 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot);
303 299
304 CPDFSDK_PageView* m_pPageView; 300 CPDFSDK_PageView* m_pPageView;
305 CFX_ByteString m_sType; 301 CFX_ByteString m_sType;
306 CFX_ByteString m_sSubType; 302 CFX_ByteString m_sSubType;
307 int m_nTabs; 303 int m_nTabs;
308 CPDFSDK_Annots m_Annots; 304 CPDFSDK_Annots m_Annots;
309 }; 305 };
310 306
311 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 307 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698