| 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/src/javascript/Field.h" | 7 #include "fpdfsdk/javascript/Field.h" | 
| 8 | 8 | 
| 9 #include <algorithm> | 9 #include <algorithm> | 
| 10 #include <memory> | 10 #include <memory> | 
| 11 #include <string> | 11 #include <string> | 
| 12 #include <vector> | 12 #include <vector> | 
| 13 | 13 | 
| 14 #include "fpdfsdk/include/fsdk_mgr.h"  // For CPDFDoc_Environment. | 14 #include "fpdfsdk/include/fsdk_mgr.h"  // For CPDFDoc_Environment. | 
| 15 #include "fpdfsdk/include/javascript/IJavaScript.h" | 15 #include "fpdfsdk/include/javascript/IJavaScript.h" | 
| 16 #include "fpdfsdk/src/javascript/Document.h" | 16 #include "fpdfsdk/javascript/Document.h" | 
| 17 #include "fpdfsdk/src/javascript/Icon.h" | 17 #include "fpdfsdk/javascript/Icon.h" | 
| 18 #include "fpdfsdk/src/javascript/JS_Context.h" | 18 #include "fpdfsdk/javascript/JS_Context.h" | 
| 19 #include "fpdfsdk/src/javascript/JS_Define.h" | 19 #include "fpdfsdk/javascript/JS_Define.h" | 
| 20 #include "fpdfsdk/src/javascript/JS_EventHandler.h" | 20 #include "fpdfsdk/javascript/JS_EventHandler.h" | 
| 21 #include "fpdfsdk/src/javascript/JS_Object.h" | 21 #include "fpdfsdk/javascript/JS_Object.h" | 
| 22 #include "fpdfsdk/src/javascript/JS_Runtime.h" | 22 #include "fpdfsdk/javascript/JS_Runtime.h" | 
| 23 #include "fpdfsdk/src/javascript/JS_Value.h" | 23 #include "fpdfsdk/javascript/JS_Value.h" | 
| 24 #include "fpdfsdk/src/javascript/PublicMethods.h" | 24 #include "fpdfsdk/javascript/PublicMethods.h" | 
| 25 #include "fpdfsdk/src/javascript/color.h" | 25 #include "fpdfsdk/javascript/color.h" | 
| 26 | 26 | 
| 27 BEGIN_JS_STATIC_CONST(CJS_Field) | 27 BEGIN_JS_STATIC_CONST(CJS_Field) | 
| 28 END_JS_STATIC_CONST() | 28 END_JS_STATIC_CONST() | 
| 29 | 29 | 
| 30 BEGIN_JS_STATIC_PROP(CJS_Field) | 30 BEGIN_JS_STATIC_PROP(CJS_Field) | 
| 31 JS_STATIC_PROP_ENTRY(alignment) | 31 JS_STATIC_PROP_ENTRY(alignment) | 
| 32 JS_STATIC_PROP_ENTRY(borderStyle) | 32 JS_STATIC_PROP_ENTRY(borderStyle) | 
| 33 JS_STATIC_PROP_ENTRY(buttonAlignX) | 33 JS_STATIC_PROP_ENTRY(buttonAlignX) | 
| 34 JS_STATIC_PROP_ENTRY(buttonAlignY) | 34 JS_STATIC_PROP_ENTRY(buttonAlignY) | 
| 35 JS_STATIC_PROP_ENTRY(buttonFitBounds) | 35 JS_STATIC_PROP_ENTRY(buttonFitBounds) | 
| (...skipping 3555 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3591   } | 3591   } | 
| 3592 } | 3592 } | 
| 3593 | 3593 | 
| 3594 void Field::AddField(CPDFSDK_Document* pDocument, | 3594 void Field::AddField(CPDFSDK_Document* pDocument, | 
| 3595                      int nPageIndex, | 3595                      int nPageIndex, | 
| 3596                      int nFieldType, | 3596                      int nFieldType, | 
| 3597                      const CFX_WideString& sName, | 3597                      const CFX_WideString& sName, | 
| 3598                      const CFX_FloatRect& rcCoords) { | 3598                      const CFX_FloatRect& rcCoords) { | 
| 3599   // Not supported. | 3599   // Not supported. | 
| 3600 } | 3600 } | 
| OLD | NEW | 
|---|