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 #include "fpdfsdk/javascript/Field.h" | 7 #include "fpdfsdk/javascript/Field.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 JS_STATIC_METHOD_ENTRY(signatureGetModifications) | 107 JS_STATIC_METHOD_ENTRY(signatureGetModifications) |
108 JS_STATIC_METHOD_ENTRY(signatureGetSeedValue) | 108 JS_STATIC_METHOD_ENTRY(signatureGetSeedValue) |
109 JS_STATIC_METHOD_ENTRY(signatureInfo) | 109 JS_STATIC_METHOD_ENTRY(signatureInfo) |
110 JS_STATIC_METHOD_ENTRY(signatureSetSeedValue) | 110 JS_STATIC_METHOD_ENTRY(signatureSetSeedValue) |
111 JS_STATIC_METHOD_ENTRY(signatureSign) | 111 JS_STATIC_METHOD_ENTRY(signatureSign) |
112 JS_STATIC_METHOD_ENTRY(signatureValidate) | 112 JS_STATIC_METHOD_ENTRY(signatureValidate) |
113 END_JS_STATIC_METHOD() | 113 END_JS_STATIC_METHOD() |
114 | 114 |
115 IMPLEMENT_JS_CLASS(CJS_Field, Field) | 115 IMPLEMENT_JS_CLASS(CJS_Field, Field) |
116 | 116 |
| 117 CJS_DelayData::CJS_DelayData(FIELD_PROP prop, |
| 118 int idx, |
| 119 const CFX_WideString& name) |
| 120 : eProp(prop), nControlIndex(idx), sFieldName(name) {} |
| 121 |
| 122 CJS_DelayData::~CJS_DelayData() {} |
| 123 |
117 void CJS_Field::InitInstance(IJS_Runtime* pIRuntime) { | 124 void CJS_Field::InitInstance(IJS_Runtime* pIRuntime) { |
118 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); | 125 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); |
119 Field* pField = static_cast<Field*>(GetEmbedObject()); | 126 Field* pField = static_cast<Field*>(GetEmbedObject()); |
120 pField->SetIsolate(pRuntime->GetIsolate()); | 127 pField->SetIsolate(pRuntime->GetIsolate()); |
121 } | 128 } |
122 | 129 |
123 Field::Field(CJS_Object* pJSObject) | 130 Field::Field(CJS_Object* pJSObject) |
124 : CJS_EmbedObj(pJSObject), | 131 : CJS_EmbedObj(pJSObject), |
125 m_pJSDoc(nullptr), | 132 m_pJSDoc(nullptr), |
126 m_pDocument(nullptr), | 133 m_pDocument(nullptr), |
(...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3539 } | 3546 } |
3540 } | 3547 } |
3541 | 3548 |
3542 void Field::AddField(CPDFSDK_Document* pDocument, | 3549 void Field::AddField(CPDFSDK_Document* pDocument, |
3543 int nPageIndex, | 3550 int nPageIndex, |
3544 int nFieldType, | 3551 int nFieldType, |
3545 const CFX_WideString& sName, | 3552 const CFX_WideString& sName, |
3546 const CFX_FloatRect& rcCoords) { | 3553 const CFX_FloatRect& rcCoords) { |
3547 // Not supported. | 3554 // Not supported. |
3548 } | 3555 } |
OLD | NEW |