OLD | NEW |
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_JAVASCRIPT_FIELD_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_FIELD_H_ |
8 #define FPDFSDK_JAVASCRIPT_FIELD_H_ | 8 #define FPDFSDK_JAVASCRIPT_FIELD_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 FX_BOOL bChangeMark, | 418 FX_BOOL bChangeMark, |
419 FX_BOOL bResetAP, | 419 FX_BOOL bResetAP, |
420 FX_BOOL bRefresh); | 420 FX_BOOL bRefresh); |
421 static void UpdateFormControl(CPDFSDK_Document* pDocument, | 421 static void UpdateFormControl(CPDFSDK_Document* pDocument, |
422 CPDF_FormControl* pFormControl, | 422 CPDF_FormControl* pFormControl, |
423 FX_BOOL bChangeMark, | 423 FX_BOOL bChangeMark, |
424 FX_BOOL bResetAP, | 424 FX_BOOL bResetAP, |
425 FX_BOOL bRefresh); | 425 FX_BOOL bRefresh); |
426 | 426 |
427 static CPDFSDK_Widget* GetWidget(CPDFSDK_Document* pDocument, | 427 static CPDFSDK_Widget* GetWidget(CPDFSDK_Document* pDocument, |
428 CPDF_FormControl* pFormControl); | 428 CPDF_FormControl* pFormControl, |
| 429 bool createIfNeeded); |
429 static std::vector<CPDF_FormField*> GetFormFields( | 430 static std::vector<CPDF_FormField*> GetFormFields( |
430 CPDFSDK_Document* pDocument, | 431 CPDFSDK_Document* pDocument, |
431 const CFX_WideString& csFieldName); | 432 const CFX_WideString& csFieldName); |
432 | 433 |
433 static void DoDelay(CPDFSDK_Document* pDocument, CJS_DelayData* pData); | 434 static void DoDelay(CPDFSDK_Document* pDocument, CJS_DelayData* pData); |
434 | 435 |
435 FX_BOOL AttachField(Document* pDocument, const CFX_WideString& csFieldName); | 436 FX_BOOL AttachField(Document* pDocument, const CFX_WideString& csFieldName); |
436 void SetDelay(FX_BOOL bDelay); | 437 void SetDelay(FX_BOOL bDelay); |
437 void SetIsolate(v8::Isolate* isolate) { m_isolate = isolate; } | 438 void SetIsolate(v8::Isolate* isolate) { m_isolate = isolate; } |
438 | 439 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 JS_STATIC_METHOD(setLock, Field); | 552 JS_STATIC_METHOD(setLock, Field); |
552 JS_STATIC_METHOD(signatureGetModifications, Field); | 553 JS_STATIC_METHOD(signatureGetModifications, Field); |
553 JS_STATIC_METHOD(signatureGetSeedValue, Field); | 554 JS_STATIC_METHOD(signatureGetSeedValue, Field); |
554 JS_STATIC_METHOD(signatureInfo, Field); | 555 JS_STATIC_METHOD(signatureInfo, Field); |
555 JS_STATIC_METHOD(signatureSetSeedValue, Field); | 556 JS_STATIC_METHOD(signatureSetSeedValue, Field); |
556 JS_STATIC_METHOD(signatureSign, Field); | 557 JS_STATIC_METHOD(signatureSign, Field); |
557 JS_STATIC_METHOD(signatureValidate, Field); | 558 JS_STATIC_METHOD(signatureValidate, Field); |
558 }; | 559 }; |
559 | 560 |
560 #endif // FPDFSDK_JAVASCRIPT_FIELD_H_ | 561 #endif // FPDFSDK_JAVASCRIPT_FIELD_H_ |
OLD | NEW |