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

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

Issue 1394993006: Merge to XFA: Pass IJS_Runtime, not IJS_Context, to native object constructors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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/src/javascript/Document.cpp ('k') | fpdfsdk/src/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_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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/Document.cpp ('k') | fpdfsdk/src/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698