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 |
11 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
12 #include "fpdfsdk/javascript/JS_Define.h" | 11 #include "fpdfsdk/javascript/JS_Define.h" |
13 #include "fpdfsdk/javascript/JS_Object.h" | 12 #include "fpdfsdk/javascript/JS_Object.h" |
14 #include "fpdfsdk/javascript/JS_Value.h" | 13 #include "fpdfsdk/javascript/JS_Value.h" |
15 | 14 |
16 /* ---------------------- report ---------------------- */ | |
17 | |
18 BEGIN_JS_STATIC_CONST(CJS_Report) | 15 BEGIN_JS_STATIC_CONST(CJS_Report) |
19 END_JS_STATIC_CONST() | 16 END_JS_STATIC_CONST() |
20 | 17 |
21 BEGIN_JS_STATIC_PROP(CJS_Report) | 18 BEGIN_JS_STATIC_PROP(CJS_Report) |
22 END_JS_STATIC_PROP() | 19 END_JS_STATIC_PROP() |
23 | 20 |
24 BEGIN_JS_STATIC_METHOD(CJS_Report) | 21 BEGIN_JS_STATIC_METHOD(CJS_Report) |
25 JS_STATIC_METHOD_ENTRY(save) | 22 JS_STATIC_METHOD_ENTRY(save) |
26 JS_STATIC_METHOD_ENTRY(writeText) | 23 JS_STATIC_METHOD_ENTRY(writeText) |
27 END_JS_STATIC_METHOD() | 24 END_JS_STATIC_METHOD() |
(...skipping 12 matching lines...) Expand all Loading... |
40 return TRUE; | 37 return TRUE; |
41 } | 38 } |
42 | 39 |
43 FX_BOOL Report::save(IJS_Context* cc, | 40 FX_BOOL Report::save(IJS_Context* cc, |
44 const std::vector<CJS_Value>& params, | 41 const std::vector<CJS_Value>& params, |
45 CJS_Value& vRet, | 42 CJS_Value& vRet, |
46 CFX_WideString& sError) { | 43 CFX_WideString& sError) { |
47 // Unsafe, not supported. | 44 // Unsafe, not supported. |
48 return TRUE; | 45 return TRUE; |
49 } | 46 } |
OLD | NEW |