summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/Document.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-17 13:21:34 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-17 13:21:34 -0800
commit2da7bd4d78897bed52fe1304694f4e970db65e58 (patch)
treecf3f87f8808b908510a3cb80860e712e80c7266f /fpdfsdk/src/javascript/Document.cpp
parent7435e8e5c2f1163ec5eca79a3ac6c3920d490578 (diff)
downloadpdfium-2da7bd4d78897bed52fe1304694f4e970db65e58.tar.xz
Tidy up JS_Defines.h
This is a purely mechanical change, no new functionality. - Expand some macros which were merely a short-cut to save typing but reduced transparency. - Put GET_VALUE_TYPE() implementation into a .cpp file. This is a portion of the patch from issue 908033002 at patchset 40001 (http://crrev.com/908033002#ps40001) R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/927263003
Diffstat (limited to 'fpdfsdk/src/javascript/Document.cpp')
-rw-r--r--fpdfsdk/src/javascript/Document.cpp142
1 files changed, 71 insertions, 71 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp
index 701107f69f..c9f17ba75c 100644
--- a/fpdfsdk/src/javascript/Document.cpp
+++ b/fpdfsdk/src/javascript/Document.cpp
@@ -190,7 +190,7 @@ Document::~Document()
}
//the total number of fileds in document.
-FX_BOOL Document::numFields(OBJ_PROP_PARAMS)
+FX_BOOL Document::numFields(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (!vp.IsGetting()) return FALSE;
@@ -207,7 +207,7 @@ FX_BOOL Document::numFields(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::dirty(OBJ_PROP_PARAMS)
+FX_BOOL Document::dirty(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -233,7 +233,7 @@ FX_BOOL Document::dirty(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::ADBE(OBJ_PROP_PARAMS)
+FX_BOOL Document::ADBE(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -248,7 +248,7 @@ FX_BOOL Document::ADBE(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::pageNum(OBJ_PROP_PARAMS)
+FX_BOOL Document::pageNum(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -293,31 +293,31 @@ FX_BOOL Document::ParserParams(JSObject* pObj,CJS_AnnotObj& annotobj)
return TRUE;
}
-FX_BOOL Document::addAnnot(OBJ_METHOD_PARAMS)
+FX_BOOL Document::addAnnot(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Not supported.
return TRUE;
}
-FX_BOOL Document::addField(OBJ_METHOD_PARAMS)
+FX_BOOL Document::addField(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Not supported.
return TRUE;
}
-FX_BOOL Document::exportAsText(OBJ_METHOD_PARAMS)
+FX_BOOL Document::exportAsText(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::exportAsFDF(OBJ_METHOD_PARAMS)
+FX_BOOL Document::exportAsFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::exportAsXFDF(OBJ_METHOD_PARAMS)
+FX_BOOL Document::exportAsXFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
@@ -327,7 +327,7 @@ FX_BOOL Document::exportAsXFDF(OBJ_METHOD_PARAMS)
//comment:
//note: the paremter cName, this is clue how to treat if the cName is not a valiable filed name in this document
-FX_BOOL Document::getField(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getField(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
v8::Isolate* isolate = GetIsolate(cc);
ASSERT(m_pDocument != NULL);
@@ -368,7 +368,7 @@ FX_BOOL Document::getField(OBJ_METHOD_PARAMS)
}
//Gets the name of the nth field in the document
-FX_BOOL Document::getNthFieldName(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getNthFieldName(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -389,19 +389,19 @@ FX_BOOL Document::getNthFieldName(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::importAnFDF(OBJ_METHOD_PARAMS)
+FX_BOOL Document::importAnFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::importAnXFDF(OBJ_METHOD_PARAMS)
+FX_BOOL Document::importAnXFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::importTextData(OBJ_METHOD_PARAMS)
+FX_BOOL Document::importTextData(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
@@ -412,7 +412,7 @@ FX_BOOL Document::importTextData(OBJ_METHOD_PARAMS)
//note:
//int CPDFSDK_Document::mailForm(FX_BOOL bUI,String cto,string ccc,string cbcc,string cSubject,string cms);
-FX_BOOL Document::mailForm(OBJ_METHOD_PARAMS)
+FX_BOOL Document::mailForm(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -447,7 +447,7 @@ FX_BOOL Document::mailForm(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::print(OBJ_METHOD_PARAMS)
+FX_BOOL Document::print(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
CJS_Context* pContext = (CJS_Context*)cc;
ASSERT(pContext != NULL);
@@ -524,7 +524,7 @@ FX_BOOL Document::print(OBJ_METHOD_PARAMS)
//comment:
//note: if the filed name is not retional, adobe is dumb for it.
-FX_BOOL Document::removeField(OBJ_METHOD_PARAMS)
+FX_BOOL Document::removeField(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -578,7 +578,7 @@ FX_BOOL Document::removeField(OBJ_METHOD_PARAMS)
//comment:
//note: if the fields names r not rational, aodbe is dumb for it.
-FX_BOOL Document::resetForm(OBJ_METHOD_PARAMS)
+FX_BOOL Document::resetForm(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -639,14 +639,14 @@ FX_BOOL Document::resetForm(OBJ_METHOD_PARAMS)
}
-FX_BOOL Document::saveAs(OBJ_METHOD_PARAMS)
+FX_BOOL Document::saveAs(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::submitForm(OBJ_METHOD_PARAMS)
+FX_BOOL Document::submitForm(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -773,12 +773,12 @@ FX_BOOL Document::ExtractFolderName(CPDFSDK_Document *pDoc,CFX_ByteString &strFo
return FALSE;
}
-FX_BOOL Document::bookmarkRoot(OBJ_PROP_PARAMS)
+FX_BOOL Document::bookmarkRoot(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::mailDoc(OBJ_METHOD_PARAMS)
+FX_BOOL Document::mailDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -836,7 +836,7 @@ FX_BOOL Document::mailDoc(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::author(OBJ_PROP_PARAMS)
+FX_BOOL Document::author(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -860,7 +860,7 @@ FX_BOOL Document::author(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::info(OBJ_PROP_PARAMS)
+FX_BOOL Document::info(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -919,7 +919,7 @@ FX_BOOL Document::info(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::creationDate(OBJ_PROP_PARAMS)
+FX_BOOL Document::creationDate(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -944,7 +944,7 @@ FX_BOOL Document::creationDate(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::creator(OBJ_PROP_PARAMS)
+FX_BOOL Document::creator(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -968,7 +968,7 @@ FX_BOOL Document::creator(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::delay(OBJ_PROP_PARAMS)
+FX_BOOL Document::delay(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (vp.IsGetting())
{
@@ -1010,7 +1010,7 @@ FX_BOOL Document::delay(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::keywords(OBJ_PROP_PARAMS)
+FX_BOOL Document::keywords(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1034,7 +1034,7 @@ FX_BOOL Document::keywords(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::modDate(OBJ_PROP_PARAMS)
+FX_BOOL Document::modDate(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1058,7 +1058,7 @@ FX_BOOL Document::modDate(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::producer(OBJ_PROP_PARAMS)
+FX_BOOL Document::producer(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1082,7 +1082,7 @@ FX_BOOL Document::producer(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::subject(OBJ_PROP_PARAMS)
+FX_BOOL Document::subject(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1106,7 +1106,7 @@ FX_BOOL Document::subject(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::title(OBJ_PROP_PARAMS)
+FX_BOOL Document::title(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1133,7 +1133,7 @@ FX_BOOL Document::title(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::numPages(OBJ_PROP_PARAMS)
+FX_BOOL Document::numPages(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (vp.IsGetting())
{
@@ -1147,14 +1147,14 @@ FX_BOOL Document::numPages(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::external(OBJ_PROP_PARAMS)
+FX_BOOL Document::external(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
//In Chrome case,should always return true.
vp << TRUE;
return TRUE;
}
-FX_BOOL Document::filesize(OBJ_PROP_PARAMS)
+FX_BOOL Document::filesize(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (!vp.IsGetting())return FALSE;
@@ -1162,17 +1162,17 @@ FX_BOOL Document::filesize(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::mouseX(OBJ_PROP_PARAMS)
+FX_BOOL Document::mouseX(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::mouseY(OBJ_PROP_PARAMS)
+FX_BOOL Document::mouseY(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::baseURL(OBJ_PROP_PARAMS)
+FX_BOOL Document::baseURL(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (vp.IsGetting())
{
@@ -1186,7 +1186,7 @@ FX_BOOL Document::baseURL(OBJ_PROP_PARAMS)
}
}
-FX_BOOL Document::calculate(OBJ_PROP_PARAMS)
+FX_BOOL Document::calculate(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1211,7 +1211,7 @@ FX_BOOL Document::calculate(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::documentFileName(OBJ_PROP_PARAMS)
+FX_BOOL Document::documentFileName(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (!vp.IsGetting())
return FALSE;
@@ -1280,7 +1280,7 @@ CFX_WideString Document::CutString(CFX_WideString cbFrom)
return cbRet;
}
-FX_BOOL Document::path(OBJ_PROP_PARAMS)
+FX_BOOL Document::path(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (!vp.IsGetting()) return FALSE;
@@ -1289,22 +1289,22 @@ FX_BOOL Document::path(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::pageWindowRect(OBJ_PROP_PARAMS)
+FX_BOOL Document::pageWindowRect(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::layout(OBJ_PROP_PARAMS)
+FX_BOOL Document::layout(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::addLink(OBJ_METHOD_PARAMS)
+FX_BOOL Document::addLink(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::closeDoc(OBJ_METHOD_PARAMS)
+FX_BOOL Document::closeDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1315,41 +1315,41 @@ FX_BOOL Document::closeDoc(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::getPageBox(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getPageBox(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::getAnnot(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getAnnot(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::getAnnots(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getAnnots(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
vRet.SetNull();
return TRUE;
}
-FX_BOOL Document::getAnnot3D(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getAnnot3D(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
vRet.SetNull();
return TRUE;
}
-FX_BOOL Document::getAnnots3D(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getAnnots3D(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
vRet = VT_undefined;
return TRUE;
}
-FX_BOOL Document::getOCGs(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getOCGs(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::getLinks(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getLinks(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
return TRUE;
}
@@ -1460,7 +1460,7 @@ void IconTree::DeleteIconElement(CFX_WideString swIconName)
}
}
-FX_BOOL Document::addIcon(OBJ_METHOD_PARAMS)
+FX_BOOL Document::addIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
if (params.size() != 2)return FALSE;
@@ -1489,7 +1489,7 @@ FX_BOOL Document::addIcon(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::icons(OBJ_PROP_PARAMS)
+FX_BOOL Document::icons(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
if (vp.IsSetting())
return FALSE;
@@ -1529,7 +1529,7 @@ FX_BOOL Document::icons(OBJ_PROP_PARAMS)
return TRUE;
}
-FX_BOOL Document::getIcon(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
if (params.size() != 1)return FALSE;
if(!m_pIconTree)
@@ -1565,7 +1565,7 @@ FX_BOOL Document::getIcon(OBJ_METHOD_PARAMS)
return FALSE;
}
-FX_BOOL Document::removeIcon(OBJ_METHOD_PARAMS)
+FX_BOOL Document::removeIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
if (params.size() != 1)return FALSE;
if(!m_pIconTree)
@@ -1574,18 +1574,18 @@ FX_BOOL Document::removeIcon(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::createDataObject(OBJ_METHOD_PARAMS)
+FX_BOOL Document::createDataObject(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not implemented.
return TRUE;
}
-FX_BOOL Document::media(OBJ_PROP_PARAMS)
+FX_BOOL Document::media(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::calculateNow(OBJ_METHOD_PARAMS)
+FX_BOOL Document::calculateNow(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1599,12 +1599,12 @@ FX_BOOL Document::calculateNow(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::Collab(OBJ_PROP_PARAMS)
+FX_BOOL Document::Collab(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::getPageNthWord(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getPageNthWord(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1666,7 +1666,7 @@ FX_BOOL Document::getPageNthWord(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::getPageNthWordQuads(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getPageNthWordQuads(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1675,7 +1675,7 @@ FX_BOOL Document::getPageNthWordQuads(OBJ_METHOD_PARAMS)
return FALSE;
}
-FX_BOOL Document::getPageNumWords(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getPageNumWords(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
ASSERT(m_pDocument != NULL);
@@ -1721,7 +1721,7 @@ FX_BOOL Document::getPageNumWords(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::getPrintParams(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getPrintParams(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
CJS_Context* pContext = (CJS_Context*)cc;
ASSERT(pContext != NULL);
@@ -1811,7 +1811,7 @@ CFX_WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj, int nWordIndex
return swRet;
}
-FX_BOOL Document::zoom(OBJ_PROP_PARAMS)
+FX_BOOL Document::zoom(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
@@ -1827,12 +1827,12 @@ FX_BOOL Document::zoom(OBJ_PROP_PARAMS)
(refW, ReflowWidth)
*/
-FX_BOOL Document::zoomType(OBJ_PROP_PARAMS)
+FX_BOOL Document::zoomType(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError)
{
return TRUE;
}
-FX_BOOL Document::deletePages(OBJ_METHOD_PARAMS)
+FX_BOOL Document::deletePages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
v8::Isolate* isolate = GetIsolate(cc);
ASSERT(m_pDocument != NULL);
@@ -1885,25 +1885,25 @@ FX_BOOL Document::deletePages(OBJ_METHOD_PARAMS)
return TRUE;
}
-FX_BOOL Document::extractPages(OBJ_METHOD_PARAMS)
+FX_BOOL Document::extractPages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::insertPages(OBJ_METHOD_PARAMS)
+FX_BOOL Document::insertPages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::replacePages(OBJ_METHOD_PARAMS)
+FX_BOOL Document::replacePages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;
}
-FX_BOOL Document::getURL(OBJ_METHOD_PARAMS)
+FX_BOOL Document::getURL(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError)
{
// Unsafe, not supported.
return TRUE;