summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/Document.cpp
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-01-29 15:44:20 -0800
committerWei Li <weili@chromium.org>2016-01-29 15:44:20 -0800
commit9b76113ae4567eb998618d049afde26d3f0175d5 (patch)
treeede02b9835770dafe91eaee727e328765e4ffd52 /fpdfsdk/src/javascript/Document.cpp
parent47f7199eee69abdd48c5ab16a5b8f5aef433a003 (diff)
downloadpdfium-9b76113ae4567eb998618d049afde26d3f0175d5.tar.xz
Merge to XFA: Member function name refactoring
This is needed by Cl 1634373003 as the name collision with virtual functions will be shown as warnings on Linux. Also, it is better to use different names for different cases. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1644633003 . (cherry picked from commit d45e7a51904164fb22049f0a7a80d2a94c06936b) Review URL: https://codereview.chromium.org/1648233002 .
Diffstat (limited to 'fpdfsdk/src/javascript/Document.cpp')
-rw-r--r--fpdfsdk/src/javascript/Document.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp
index 270330e5c0..0bd754af76 100644
--- a/fpdfsdk/src/javascript/Document.cpp
+++ b/fpdfsdk/src/javascript/Document.cpp
@@ -741,7 +741,7 @@ FX_BOOL Document::author(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Author");
+ vp << pDictionary->GetUnicodeTextBy("Author");
return TRUE;
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
@@ -762,15 +762,15 @@ FX_BOOL Document::info(IJS_Context* cc,
if (!pDictionary)
return FALSE;
- CFX_WideString cwAuthor = pDictionary->GetUnicodeText("Author");
- CFX_WideString cwTitle = pDictionary->GetUnicodeText("Title");
- CFX_WideString cwSubject = pDictionary->GetUnicodeText("Subject");
- CFX_WideString cwKeywords = pDictionary->GetUnicodeText("Keywords");
- CFX_WideString cwCreator = pDictionary->GetUnicodeText("Creator");
- CFX_WideString cwProducer = pDictionary->GetUnicodeText("Producer");
- CFX_WideString cwCreationDate = pDictionary->GetUnicodeText("CreationDate");
- CFX_WideString cwModDate = pDictionary->GetUnicodeText("ModDate");
- CFX_WideString cwTrapped = pDictionary->GetUnicodeText("Trapped");
+ CFX_WideString cwAuthor = pDictionary->GetUnicodeTextBy("Author");
+ CFX_WideString cwTitle = pDictionary->GetUnicodeTextBy("Title");
+ CFX_WideString cwSubject = pDictionary->GetUnicodeTextBy("Subject");
+ CFX_WideString cwKeywords = pDictionary->GetUnicodeTextBy("Keywords");
+ CFX_WideString cwCreator = pDictionary->GetUnicodeTextBy("Creator");
+ CFX_WideString cwProducer = pDictionary->GetUnicodeTextBy("Producer");
+ CFX_WideString cwCreationDate = pDictionary->GetUnicodeTextBy("CreationDate");
+ CFX_WideString cwModDate = pDictionary->GetUnicodeTextBy("ModDate");
+ CFX_WideString cwTrapped = pDictionary->GetUnicodeTextBy("Trapped");
v8::Isolate* isolate = GetIsolate(cc);
if (vp.IsGetting()) {
@@ -819,7 +819,7 @@ FX_BOOL Document::creationDate(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("CreationDate");
+ vp << pDictionary->GetUnicodeTextBy("CreationDate");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -840,7 +840,7 @@ FX_BOOL Document::creator(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Creator");
+ vp << pDictionary->GetUnicodeTextBy("Creator");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -896,7 +896,7 @@ FX_BOOL Document::keywords(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Keywords");
+ vp << pDictionary->GetUnicodeTextBy("Keywords");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -917,7 +917,7 @@ FX_BOOL Document::modDate(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("ModDate");
+ vp << pDictionary->GetUnicodeTextBy("ModDate");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -938,7 +938,7 @@ FX_BOOL Document::producer(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Producer");
+ vp << pDictionary->GetUnicodeTextBy("Producer");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -959,7 +959,7 @@ FX_BOOL Document::subject(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Subject");
+ vp << pDictionary->GetUnicodeTextBy("Subject");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;
@@ -983,7 +983,7 @@ FX_BOOL Document::title(IJS_Context* cc,
return FALSE;
if (vp.IsGetting()) {
- vp << pDictionary->GetUnicodeText("Title");
+ vp << pDictionary->GetUnicodeTextBy("Title");
} else {
if (!m_pDocument->GetPermissions(FPDFPERM_MODIFY))
return FALSE;