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

Side by Side Diff: fpdfsdk/include/javascript/Field.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 | « fpdfsdk/include/fxedit/fxet_list.h ('k') | fpdfsdk/include/javascript/IJavaScript.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 FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_
9 9
10 #include <string> // For std::wstring. 10 #include <string> // For std::wstring.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 private: 81 private:
82 CFX_ArrayTemplate<CFX_WideString*> m_Data; 82 CFX_ArrayTemplate<CFX_WideString*> m_Data;
83 }; 83 };
84 84
85 struct CJS_DelayData 85 struct CJS_DelayData
86 { 86 {
87 CFX_WideString sFieldName; 87 CFX_WideString sFieldName;
88 int nControlIndex; 88 int nControlIndex;
89 enum FIELD_PROP eProp; 89 enum FIELD_PROP eProp;
90 » FX_INT32» » » » num; 90 » int32_t»» » » num;
91 bool b; 91 bool b;
92 CFX_ByteString string; 92 CFX_ByteString string;
93 CFX_WideString widestring; 93 CFX_WideString widestring;
94 CPDF_Rect rect; 94 CPDF_Rect rect;
95 CPWL_Color color; 95 CPWL_Color color;
96 CFX_DWordArray wordarray; 96 CFX_DWordArray wordarray;
97 CJS_WideStringArray widestringarray; 97 CJS_WideStringArray widestringarray;
98 }; 98 };
99 99
100 class Field : public CJS_EmbedObj 100 class Field : public CJS_EmbedObj
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 public: 237 public:
238 FX_BOOL AttachFi eld(Document* pDocument, const CFX_WideString& csFieldName); 238 FX_BOOL AttachFi eld(Document* pDocument, const CFX_WideString& csFieldName);
239 void SetDelay (FX_BOOL bDelay); 239 void SetDelay (FX_BOOL bDelay);
240 void SetIsola te(v8::Isolate* isolate) {m_isolate = isolate;} 240 void SetIsola te(v8::Isolate* isolate) {m_isolate = isolate;}
241 protected: 241 protected:
242 void ParseFie ldName(const std::wstring &strFieldNameParsed,std::wstring &strFieldName,int & i ControlNo); 242 void ParseFie ldName(const std::wstring &strFieldNameParsed,std::wstring &strFieldName,int & i ControlNo);
243 void GetFormF ields(const CFX_WideString& csFieldName, CFX_PtrArray& FieldsArray); 243 void GetFormF ields(const CFX_WideString& csFieldName, CFX_PtrArray& FieldsArray);
244 CPDF_FormControl* GetSmartFieldCon trol(CPDF_FormField* pFormField); 244 CPDF_FormControl* GetSmartFieldCon trol(CPDF_FormField* pFormField);
245 FX_BOOL ValueIsO ccur(CPDF_FormField* pFormField, CFX_WideString csOptLabel); 245 FX_BOOL ValueIsO ccur(CPDF_FormField* pFormField, CFX_WideString csOptLabel);
246 246
247 » void» » » » » » » » AddDelay _Int(enum FIELD_PROP prop, FX_INT32 n); 247 » void» » » » » » » » AddDelay _Int(enum FIELD_PROP prop, int32_t n);
248 void AddDelay _Bool(enum FIELD_PROP prop,bool b); 248 void AddDelay _Bool(enum FIELD_PROP prop,bool b);
249 void AddDelay _String(enum FIELD_PROP prop, const CFX_ByteString& string); 249 void AddDelay _String(enum FIELD_PROP prop, const CFX_ByteString& string);
250 void AddDelay _WideString(enum FIELD_PROP prop, const CFX_WideString& string); 250 void AddDelay _WideString(enum FIELD_PROP prop, const CFX_WideString& string);
251 void AddDelay _Rect(enum FIELD_PROP prop, const CPDF_Rect& rect); 251 void AddDelay _Rect(enum FIELD_PROP prop, const CPDF_Rect& rect);
252 void AddDelay _Color(enum FIELD_PROP prop, const CPWL_Color& color); 252 void AddDelay _Color(enum FIELD_PROP prop, const CPWL_Color& color);
253 void AddDelay _WordArray(enum FIELD_PROP prop, const CFX_DWordArray& array); 253 void AddDelay _WordArray(enum FIELD_PROP prop, const CFX_DWordArray& array);
254 void AddDelay _WideStringArray(enum FIELD_PROP prop, const CJS_WideStringArray& array); 254 void AddDelay _WideStringArray(enum FIELD_PROP prop, const CJS_WideStringArray& array);
255 255
256 void DoDelay( ); 256 void DoDelay( );
257 public: 257 public:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 JS_STATIC_METHOD(setLock, Field); 350 JS_STATIC_METHOD(setLock, Field);
351 JS_STATIC_METHOD(signatureGetModifications, Field); 351 JS_STATIC_METHOD(signatureGetModifications, Field);
352 JS_STATIC_METHOD(signatureGetSeedValue, Field); 352 JS_STATIC_METHOD(signatureGetSeedValue, Field);
353 JS_STATIC_METHOD(signatureInfo, Field); 353 JS_STATIC_METHOD(signatureInfo, Field);
354 JS_STATIC_METHOD(signatureSetSeedValue, Field); 354 JS_STATIC_METHOD(signatureSetSeedValue, Field);
355 JS_STATIC_METHOD(signatureSign, Field); 355 JS_STATIC_METHOD(signatureSign, Field);
356 JS_STATIC_METHOD(signatureValidate, Field); 356 JS_STATIC_METHOD(signatureValidate, Field);
357 }; 357 };
358 358
359 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ 359 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fxedit/fxet_list.h ('k') | fpdfsdk/include/javascript/IJavaScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698