summaryrefslogtreecommitdiff
path: root/fxjs/cjs_printparamsobj.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-05 22:27:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-05 22:27:22 +0000
commitf743552fbdb17f974c9b1675af81210fe0ffcc50 (patch)
treed0eccefff3c758151428e18eb803e93d8864046a /fxjs/cjs_printparamsobj.h
parent998fee395fc8a543968c7db3db9e3cf81dee57fc (diff)
downloadpdfium-f743552fbdb17f974c9b1675af81210fe0ffcc50.tar.xz
Fold CJS_EmbedObj classes into CJS_Object classes
This CL removes the CJS_EmbedObj class and various subclasses and folds the subclasses into their CJS_Object counterparts. Change-Id: If6b882a4995c0b1bf83ac783f5c27ba9216c2d5c Reviewed-on: https://pdfium-review.googlesource.com/25410 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_printparamsobj.h')
-rw-r--r--fxjs/cjs_printparamsobj.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/fxjs/cjs_printparamsobj.h b/fxjs/cjs_printparamsobj.h
index aa2b365888..97028dd557 100644
--- a/fxjs/cjs_printparamsobj.h
+++ b/fxjs/cjs_printparamsobj.h
@@ -9,32 +9,34 @@
#include "fxjs/JS_Define.h"
-class PrintParamsObj : public CJS_EmbedObj {
- public:
- explicit PrintParamsObj(CJS_Object* pJSObject);
- ~PrintParamsObj() override {}
-
- public:
- bool bUI;
- int nStart;
- int nEnd;
- bool bSilent;
- bool bShrinkToFit;
- bool bPrintAsImage;
- bool bReverse;
- bool bAnnotations;
-};
-
class CJS_PrintParamsObj : public CJS_Object {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_PrintParamsObj(v8::Local<v8::Object> pObject);
- ~CJS_PrintParamsObj() override = default;
+ ~CJS_PrintParamsObj() override;
+
+ bool GetUI() const { return bUI; }
+ int GetStart() const { return nStart; }
+ int GetEnd() const { return nEnd; }
+ bool GetSilent() const { return bSilent; }
+ bool GetShrinkToFit() const { return bShrinkToFit; }
+ bool GetPrintAsImage() const { return bPrintAsImage; }
+ bool GetReverse() const { return bReverse; }
+ bool GetAnnotations() const { return bAnnotations; }
private:
static int ObjDefnID;
+
+ bool bUI = true;
+ int nStart = 0;
+ int nEnd = 0;
+ bool bSilent = false;
+ bool bShrinkToFit = false;
+ bool bPrintAsImage = false;
+ bool bReverse = false;
+ bool bAnnotations = true;
};
#endif // FXJS_CJS_PRINTPARAMSOBJ_H_