From ba038bc14bfeb4d011d57f388871f7f14c4c3c22 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 8 Oct 2015 12:03:00 -0700 Subject: Merge to XFA: Rename IFXJS_Runtime and IFXJS_Context to IJS_. Merge conflicts in: fpdfsdk/src/javascript/Document.cpp fpdfsdk/src/javascript/JS_Define.h New code in: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp (cherry picked from commit 213a172779fddbd7e588ee2e2b3906ccc47d6896) Original Review URL: https://codereview.chromium.org/1386173002 . R=thestig@chromium.org Review URL: https://codereview.chromium.org/1395713002 . --- fpdfsdk/src/fsdk_actionhandler.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'fpdfsdk/src/fsdk_actionhandler.cpp') diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp index c2e26f7501..6cb37b9c80 100644 --- a/fpdfsdk/src/fsdk_actionhandler.cpp +++ b/fpdfsdk/src/fsdk_actionhandler.cpp @@ -149,12 +149,12 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteLinkAction(const CPDF_Action& action, if (pEnv->IsJSInitiated()) { CFX_WideString swJS = action.GetJavaScript(); if (!swJS.IsEmpty()) { - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); //???? + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); //???? ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); pContext->OnLink_MouseUp(pDocument); @@ -292,12 +292,12 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteScreenAction( if (pEnv->IsJSInitiated()) { CFX_WideString swJS = action.GetJavaScript(); if (!swJS.IsEmpty()) { - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); // switch (type) @@ -388,12 +388,12 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteBookMark(const CPDF_Action& action, if (pEnv->IsJSInitiated()) { CFX_WideString swJS = action.GetJavaScript(); if (!swJS.IsEmpty()) { - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); pContext->OnBookmark_MouseUp(pBookmark); @@ -556,12 +556,12 @@ void CPDFSDK_ActionHandler::RunFieldJavaScript(CPDFSDK_Document* pDocument, ASSERT(pDocument != NULL); - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); switch (type) { @@ -616,12 +616,12 @@ void CPDFSDK_ActionHandler::RunDocumentOpenJavaScript( const CFX_WideString& script) { ASSERT(pDocument != NULL); - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); pContext->OnDoc_Open(pDocument, sScriptName); @@ -641,12 +641,12 @@ void CPDFSDK_ActionHandler::RunDocumentPageJavaScript( const CFX_WideString& script) { ASSERT(pDocument != NULL); - IFXJS_Runtime* pRuntime = pDocument->GetJsRuntime(); + IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); ASSERT(pRuntime != NULL); pRuntime->SetReaderDocument(pDocument); - IFXJS_Context* pContext = pRuntime->NewContext(); + IJS_Context* pContext = pRuntime->NewContext(); ASSERT(pContext != NULL); switch (type) { -- cgit v1.2.3