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_SRC_JAVASCRIPT_FIELD_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
9 | 9 |
10 #include <string> // For std::wstring. | 10 #include <string> // For std::wstring. |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 494 |
495 FX_BOOL m_bDelay; | 495 FX_BOOL m_bDelay; |
496 v8::Isolate* m_isolate; | 496 v8::Isolate* m_isolate; |
497 }; | 497 }; |
498 | 498 |
499 class CJS_Field : public CJS_Object { | 499 class CJS_Field : public CJS_Object { |
500 public: | 500 public: |
501 CJS_Field(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} | 501 CJS_Field(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
502 ~CJS_Field(void) override {} | 502 ~CJS_Field(void) override {} |
503 | 503 |
504 FX_BOOL InitInstance(IJS_Context* cc) override; | 504 void InitInstance(IJS_Runtime* pIRuntime) override; |
505 | 505 |
506 DECLARE_JS_CLASS(); | 506 DECLARE_JS_CLASS(); |
507 JS_STATIC_PROP(alignment, Field); | 507 JS_STATIC_PROP(alignment, Field); |
508 JS_STATIC_PROP(borderStyle, Field); | 508 JS_STATIC_PROP(borderStyle, Field); |
509 JS_STATIC_PROP(buttonAlignX, Field); | 509 JS_STATIC_PROP(buttonAlignX, Field); |
510 JS_STATIC_PROP(buttonAlignY, Field); | 510 JS_STATIC_PROP(buttonAlignY, Field); |
511 JS_STATIC_PROP(buttonFitBounds, Field); | 511 JS_STATIC_PROP(buttonFitBounds, Field); |
512 JS_STATIC_PROP(buttonPosition, Field); | 512 JS_STATIC_PROP(buttonPosition, Field); |
513 JS_STATIC_PROP(buttonScaleHow, Field); | 513 JS_STATIC_PROP(buttonScaleHow, Field); |
514 JS_STATIC_PROP(buttonScaleWhen, Field); | 514 JS_STATIC_PROP(buttonScaleWhen, Field); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 JS_STATIC_METHOD(setLock, Field); | 579 JS_STATIC_METHOD(setLock, Field); |
580 JS_STATIC_METHOD(signatureGetModifications, Field); | 580 JS_STATIC_METHOD(signatureGetModifications, Field); |
581 JS_STATIC_METHOD(signatureGetSeedValue, Field); | 581 JS_STATIC_METHOD(signatureGetSeedValue, Field); |
582 JS_STATIC_METHOD(signatureInfo, Field); | 582 JS_STATIC_METHOD(signatureInfo, Field); |
583 JS_STATIC_METHOD(signatureSetSeedValue, Field); | 583 JS_STATIC_METHOD(signatureSetSeedValue, Field); |
584 JS_STATIC_METHOD(signatureSign, Field); | 584 JS_STATIC_METHOD(signatureSign, Field); |
585 JS_STATIC_METHOD(signatureValidate, Field); | 585 JS_STATIC_METHOD(signatureValidate, Field); |
586 }; | 586 }; |
587 | 587 |
588 #endif // FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ | 588 #endif // FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
OLD | NEW |