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

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

Issue 2473103003: Revert: Only create widgets if really needed (Closed)
Patch Set: Created 4 years, 1 month 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/cpdfsdk_interform.cpp ('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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 bool bChangeMark, 400 bool bChangeMark,
401 bool bResetAP, 401 bool bResetAP,
402 bool bRefresh); 402 bool bRefresh);
403 static void UpdateFormControl(CPDFSDK_FormFillEnvironment* pFormFillEnv, 403 static void UpdateFormControl(CPDFSDK_FormFillEnvironment* pFormFillEnv,
404 CPDF_FormControl* pFormControl, 404 CPDF_FormControl* pFormControl,
405 bool bChangeMark, 405 bool bChangeMark,
406 bool bResetAP, 406 bool bResetAP,
407 bool bRefresh); 407 bool bRefresh);
408 408
409 static CPDFSDK_Widget* GetWidget(CPDFSDK_FormFillEnvironment* pFormFillEnv, 409 static CPDFSDK_Widget* GetWidget(CPDFSDK_FormFillEnvironment* pFormFillEnv,
410 CPDF_FormControl* pFormControl, 410 CPDF_FormControl* pFormControl);
411 bool createIfNeeded);
412 static std::vector<CPDF_FormField*> GetFormFields( 411 static std::vector<CPDF_FormField*> GetFormFields(
413 CPDFSDK_FormFillEnvironment* pFormFillEnv, 412 CPDFSDK_FormFillEnvironment* pFormFillEnv,
414 const CFX_WideString& csFieldName); 413 const CFX_WideString& csFieldName);
415 414
416 static void DoDelay(CPDFSDK_FormFillEnvironment* pFormFillEnv, 415 static void DoDelay(CPDFSDK_FormFillEnvironment* pFormFillEnv,
417 CJS_DelayData* pData); 416 CJS_DelayData* pData);
418 417
419 bool AttachField(Document* pDocument, const CFX_WideString& csFieldName); 418 bool AttachField(Document* pDocument, const CFX_WideString& csFieldName);
420 void SetDelay(bool bDelay); 419 void SetDelay(bool bDelay);
421 420
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 JS_STATIC_METHOD(setLock, Field); 531 JS_STATIC_METHOD(setLock, Field);
533 JS_STATIC_METHOD(signatureGetModifications, Field); 532 JS_STATIC_METHOD(signatureGetModifications, Field);
534 JS_STATIC_METHOD(signatureGetSeedValue, Field); 533 JS_STATIC_METHOD(signatureGetSeedValue, Field);
535 JS_STATIC_METHOD(signatureInfo, Field); 534 JS_STATIC_METHOD(signatureInfo, Field);
536 JS_STATIC_METHOD(signatureSetSeedValue, Field); 535 JS_STATIC_METHOD(signatureSetSeedValue, Field);
537 JS_STATIC_METHOD(signatureSign, Field); 536 JS_STATIC_METHOD(signatureSign, Field);
538 JS_STATIC_METHOD(signatureValidate, Field); 537 JS_STATIC_METHOD(signatureValidate, Field);
539 }; 538 };
540 539
541 #endif // FPDFSDK_JAVASCRIPT_FIELD_H_ 540 #endif // FPDFSDK_JAVASCRIPT_FIELD_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698