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/fsdk_baseform.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/src/fsdk_baseform.cpp') diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp index eab9f91076..ff71c2bcee 100644 --- a/fpdfsdk/src/fsdk_baseform.cpp +++ b/fpdfsdk/src/fsdk_baseform.cpp @@ -1757,7 +1757,7 @@ void CPDFSDK_InterForm::OnCalculate(CPDF_FormField* pFormField) { m_bBusy = TRUE; if (IsCalculateEnabled()) { - IFXJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(m_pDocument); @@ -1775,7 +1775,7 @@ void CPDFSDK_InterForm::OnCalculate(CPDF_FormField* pFormField) { if (action) { CFX_WideString csJS = action.GetJavaScript(); if (!csJS.IsEmpty()) { - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); CFX_WideString sOldValue = pField->GetValue(); @@ -1817,7 +1817,7 @@ CFX_WideString CPDFSDK_InterForm::OnFormat(CPDF_FormField* pFormField, return sValue; } - IFXJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(m_pDocument); @@ -1840,7 +1840,7 @@ CFX_WideString CPDFSDK_InterForm::OnFormat(CPDF_FormField* pFormField, if (!script.IsEmpty()) { CFX_WideString Value = sValue; - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); pContext->OnField_Format(pFormField, Value, TRUE); -- cgit v1.2.3