| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |