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

Side by Side Diff: fpdfsdk/src/javascript/Document.cpp

Issue 1196163006: Fix Javascript tests after commit f55771af6429. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | testing/resources/javascript/document_methods.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../include/javascript/JavaScript.h" 7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Define.h" 9 #include "../../include/javascript/JS_Define.h"
10 #include "../../include/javascript/JS_Object.h" 10 #include "../../include/javascript/JS_Object.h"
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 return TRUE; 1534 return TRUE;
1535 } 1535 }
1536 } 1536 }
1537 1537
1538 return FALSE; 1538 return FALSE;
1539 } 1539 }
1540 1540
1541 FX_BOOL Document::removeIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJ S_Value& vRet, CFX_WideString& sError) 1541 FX_BOOL Document::removeIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJ S_Value& vRet, CFX_WideString& sError)
1542 { 1542 {
1543 // Unsafe, no supported. 1543 // Unsafe, no supported.
1544 return FALSE; 1544 return TRUE;
1545 } 1545 }
1546 1546
1547 FX_BOOL Document::createDataObject(IFXJS_Context* cc, const CJS_Parameters& para ms, CJS_Value& vRet, CFX_WideString& sError) 1547 FX_BOOL Document::createDataObject(IFXJS_Context* cc, const CJS_Parameters& para ms, CJS_Value& vRet, CFX_WideString& sError)
1548 { 1548 {
1549 // Unsafe, not implemented. 1549 // Unsafe, not implemented.
1550 return TRUE; 1550 return TRUE;
1551 } 1551 }
1552 1552
1553 FX_BOOL Document::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE rror) 1553 FX_BOOL Document::media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE rror)
1554 { 1554 {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 */ 1799 */
1800 1800
1801 FX_BOOL Document::zoomType(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) 1801 FX_BOOL Document::zoomType(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)
1802 { 1802 {
1803 return TRUE; 1803 return TRUE;
1804 } 1804 }
1805 1805
1806 FX_BOOL Document::deletePages(IFXJS_Context* cc, const CJS_Parameters& params, C JS_Value& vRet, CFX_WideString& sError) 1806 FX_BOOL Document::deletePages(IFXJS_Context* cc, const CJS_Parameters& params, C JS_Value& vRet, CFX_WideString& sError)
1807 { 1807 {
1808 // Unsafe, no supported. 1808 // Unsafe, no supported.
1809 return FALSE; 1809 return TRUE;
1810 } 1810 }
1811 1811
1812 FX_BOOL Document::extractPages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError) 1812 FX_BOOL Document::extractPages(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError)
1813 { 1813 {
1814 // Unsafe, not supported. 1814 // Unsafe, not supported.
1815 return TRUE; 1815 return TRUE;
1816 } 1816 }
1817 1817
1818 FX_BOOL Document::insertPages(IFXJS_Context* cc, const CJS_Parameters& params, C JS_Value& vRet, CFX_WideString& sError) 1818 FX_BOOL Document::insertPages(IFXJS_Context* cc, const CJS_Parameters& params, C JS_Value& vRet, CFX_WideString& sError)
1819 { 1819 {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 { 1883 {
1884 m_DelayData.RemoveAt(DelArray[j]); 1884 m_DelayData.RemoveAt(DelArray[j]);
1885 } 1885 }
1886 } 1886 }
1887 1887
1888 CJS_Document* Document::GetCJSDoc() const 1888 CJS_Document* Document::GetCJSDoc() const
1889 { 1889 {
1890 return static_cast<CJS_Document*>(m_pJSObject); 1890 return static_cast<CJS_Document*>(m_pJSObject);
1891 } 1891 }
1892 1892
OLDNEW
« no previous file with comments | « no previous file | testing/resources/javascript/document_methods.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698