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

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

Issue 2251453002: Only create widgets if really needed. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 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/fsdk_baseform.h ('k') | fpdfsdk/javascript/Field.cpp » ('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_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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | fpdfsdk/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698