summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_actionhandler.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-07 12:52:13 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-07 12:52:13 -0700
commit213a172779fddbd7e588ee2e2b3906ccc47d6896 (patch)
tree616a1277bf9f6cc007c2408a4cf0c0e7abfe67c3 /fpdfsdk/src/fsdk_actionhandler.cpp
parent4401d4095d1306fa844170d70ae7647bc10f2d2d (diff)
downloadpdfium-213a172779fddbd7e588ee2e2b3906ccc47d6896.tar.xz
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 .
Diffstat (limited to 'fpdfsdk/src/fsdk_actionhandler.cpp')
-rw-r--r--fpdfsdk/src/fsdk_actionhandler.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp
index a2a9eff817..3d1a1571a1 100644
--- a/fpdfsdk/src/fsdk_actionhandler.cpp
+++ b/fpdfsdk/src/fsdk_actionhandler.cpp
@@ -148,12 +148,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);
@@ -291,12 +291,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)
@@ -387,12 +387,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);
@@ -555,12 +555,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) {
@@ -615,12 +615,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);
@@ -640,12 +640,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) {