John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
Lei Zhang | a6d9f0e | 2015-06-13 00:48:38 -0700 | [diff] [blame] | 4 | |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Tom Sepez | 19922bb | 2015-05-28 13:23:12 -0700 | [diff] [blame] | 7 | #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_ |
| 8 | #define FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_ |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 9 | |
Tom Sepez | 9a3f812 | 2015-04-07 15:35:48 -0700 | [diff] [blame] | 10 | #include "JS_Define.h" |
| 11 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame^] | 12 | class Report : public CJS_EmbedObj { |
| 13 | public: |
| 14 | Report(CJS_Object* pJSObject); |
| 15 | virtual ~Report(); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 16 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame^] | 17 | public: |
| 18 | FX_BOOL save(IFXJS_Context* cc, |
| 19 | const CJS_Parameters& params, |
| 20 | CJS_Value& vRet, |
| 21 | CFX_WideString& sError); |
| 22 | FX_BOOL writeText(IFXJS_Context* cc, |
| 23 | const CJS_Parameters& params, |
| 24 | CJS_Value& vRet, |
| 25 | CFX_WideString& sError); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 26 | }; |
| 27 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame^] | 28 | class CJS_Report : public CJS_Object { |
| 29 | public: |
| 30 | CJS_Report(JSFXObject pObject) : CJS_Object(pObject){}; |
| 31 | virtual ~CJS_Report(){}; |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 32 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame^] | 33 | public: |
| 34 | DECLARE_JS_CLASS(CJS_Report); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 35 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame^] | 36 | JS_STATIC_METHOD(save, Report) |
| 37 | JS_STATIC_METHOD(writeText, Report); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 38 | }; |
| 39 | |
Tom Sepez | 19922bb | 2015-05-28 13:23:12 -0700 | [diff] [blame] | 40 | #endif // FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_ |