diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-06 07:50:47 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-06 07:50:47 -0700 |
commit | 5b3d0208723f21c50b9922bdc500c9d78c359a25 (patch) | |
tree | f381d6ee565cb981680a0e66d5f7c04efb9a22e8 /fpdfsdk/include/javascript/IJavaScript.h | |
parent | 35902e725aa6cc83a317c3b6fdd1926b81b8e44b (diff) | |
download | pdfium-5b3d0208723f21c50b9922bdc500c9d78c359a25.tar.xz |
Make the vast majority of JS headers private to src/javascript.
The fpdfsdk/include/javascript/IJavascript.h is the sole API.
This required moving a creaton method to it from JS_Runtime.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1389783002 .
Diffstat (limited to 'fpdfsdk/include/javascript/IJavaScript.h')
-rw-r--r-- | fpdfsdk/include/javascript/IJavaScript.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h index 3791b886c4..4aeb76065b 100644 --- a/fpdfsdk/include/javascript/IJavaScript.h +++ b/fpdfsdk/include/javascript/IJavaScript.h @@ -133,6 +133,7 @@ class IFXJS_Context { class IFXJS_Runtime { public: + static IFXJS_Runtime* Create(CPDFDoc_Environment* pEnv); virtual ~IFXJS_Runtime() {} virtual IFXJS_Context* NewContext() = 0; @@ -140,6 +141,9 @@ class IFXJS_Runtime { virtual IFXJS_Context* GetCurrentContext() = 0; virtual void SetReaderDocument(CPDFSDK_Document* pReaderDoc) = 0; virtual CPDFSDK_Document* GetReaderDocument() = 0; + + protected: + IFXJS_Runtime() {} }; #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |