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/util.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/src/javascript/util.cpp') diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp index c83aa6f5bc..6a48c09a08 100644 --- a/fpdfsdk/src/javascript/util.cpp +++ b/fpdfsdk/src/javascript/util.cpp @@ -20,7 +20,7 @@ #include #endif -static v8::Isolate* GetIsolate(IFXJS_Context* cc) { +static v8::Isolate* GetIsolate(IJS_Context* cc) { CJS_Context* pContext = (CJS_Context*)cc; ASSERT(pContext != NULL); @@ -124,7 +124,7 @@ int util::ParstDataType(std::wstring* sFormat) { return -1; } -FX_BOOL util::printf(IFXJS_Context* cc, +FX_BOOL util::printf(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) { @@ -187,7 +187,7 @@ FX_BOOL util::printf(IFXJS_Context* cc, return TRUE; } -FX_BOOL util::printd(IFXJS_Context* cc, +FX_BOOL util::printd(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) { @@ -400,7 +400,7 @@ void util::printd(const std::wstring& cFormat2, cPurpose = cFormat; } -FX_BOOL util::printx(IFXJS_Context* cc, +FX_BOOL util::printx(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) { @@ -500,7 +500,7 @@ void util::printx(const std::string& cFormat, } } -FX_BOOL util::scand(IFXJS_Context* cc, +FX_BOOL util::scand(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) { @@ -551,7 +551,7 @@ int64_t FX_atoi64(const char* nptr) { return sign == '-' ? -total : total; } -FX_BOOL util::byteToChar(IFXJS_Context* cc, +FX_BOOL util::byteToChar(IJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) { -- cgit v1.2.3