From 213a172779fddbd7e588ee2e2b3906ccc47d6896 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 7 Oct 2015 12:52:13 -0700 Subject: Rename IFXJS_Runtime and IFXJS_Context to IJS_. Nothing but sed. FXJS is a layer that makes it easier to define objects in V8, but has no knowledge of PDF-specific native objects. It could in theory be used to implement other sets of native objects. JS is the layer that implements PDF-specific native objects on top of FXJS. Therefore, the classes used to interface to JS should be named using IJS_. IFXJS_ is reserved for someday adding better API for FXJS iteslf. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1386173002 . --- fpdfsdk/src/javascript/global.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/src/javascript/global.h') diff --git a/fpdfsdk/src/javascript/global.h b/fpdfsdk/src/javascript/global.h index ac79ff2f3d..5ae9c9f9db 100644 --- a/fpdfsdk/src/javascript/global.h +++ b/fpdfsdk/src/javascript/global.h @@ -40,16 +40,16 @@ class JSGlobalAlternate : public CJS_EmbedObj { JSGlobalAlternate(CJS_Object* pJSObject); ~JSGlobalAlternate() override; - FX_BOOL setPersistent(IFXJS_Context* cc, + FX_BOOL setPersistent(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError); FX_BOOL QueryProperty(const FX_WCHAR* propname); - FX_BOOL DoProperty(IFXJS_Context* cc, + FX_BOOL DoProperty(IJS_Context* cc, const FX_WCHAR* propname, CJS_PropValue& vp, CFX_WideString& sError); - FX_BOOL DelProperty(IFXJS_Context* cc, + FX_BOOL DelProperty(IJS_Context* cc, const FX_WCHAR* propname, CFX_WideString& sError); void Initial(CPDFDoc_Environment* pApp); @@ -83,7 +83,7 @@ class CJS_Global : public CJS_Object { ~CJS_Global() override {} // CJS_Object - FX_BOOL InitInstance(IFXJS_Context* cc) override; + FX_BOOL InitInstance(IJS_Context* cc) override; DECLARE_SPECIAL_JS_CLASS(); JS_SPECIAL_STATIC_METHOD(setPersistent, JSGlobalAlternate, global); -- cgit v1.2.3