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 "fpdfsdk/javascript/report.h" | 7 #include "fpdfsdk/javascript/report.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 JS_STATIC_METHOD_ENTRY(save) | 22 JS_STATIC_METHOD_ENTRY(save) |
23 JS_STATIC_METHOD_ENTRY(writeText) | 23 JS_STATIC_METHOD_ENTRY(writeText) |
24 END_JS_STATIC_METHOD() | 24 END_JS_STATIC_METHOD() |
25 | 25 |
26 IMPLEMENT_JS_CLASS(CJS_Report, Report) | 26 IMPLEMENT_JS_CLASS(CJS_Report, Report) |
27 | 27 |
28 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} | 28 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} |
29 | 29 |
30 Report::~Report() {} | 30 Report::~Report() {} |
31 | 31 |
32 FX_BOOL Report::writeText(IJS_Context* cc, | 32 bool Report::writeText(IJS_Context* cc, |
33 const std::vector<CJS_Value>& params, | 33 const std::vector<CJS_Value>& params, |
34 CJS_Value& vRet, | 34 CJS_Value& vRet, |
35 CFX_WideString& sError) { | 35 CFX_WideString& sError) { |
36 // Unsafe, not supported. | 36 // Unsafe, not supported. |
37 return TRUE; | 37 return true; |
38 } | 38 } |
39 | 39 |
40 FX_BOOL Report::save(IJS_Context* cc, | 40 bool Report::save(IJS_Context* cc, |
41 const std::vector<CJS_Value>& params, | 41 const std::vector<CJS_Value>& params, |
42 CJS_Value& vRet, | 42 CJS_Value& vRet, |
43 CFX_WideString& sError) { | 43 CFX_WideString& sError) { |
44 // Unsafe, not supported. | 44 // Unsafe, not supported. |
45 return TRUE; | 45 return true; |
46 } | 46 } |
OLD | NEW |