Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: fpdfsdk/src/fsdk_actionhandler.cpp

Issue 1386173002: Rename IFXJS_Runtime and IFXJS_Context to IJS_. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Comment in fxjs_v8.h Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/include/jsapi/fxjs_v8.h ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fsdk_actionhandler.cpp
diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp
index a2a9eff81767b964ea2e4fad478ef50d93be61d8..3d1a1571a1840b5b9504b48139975eaf4a4ab968 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) {
« no previous file with comments | « fpdfsdk/include/jsapi/fxjs_v8.h ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698