blob: 5b17dabc50cb305f5dcd31aedd8ec3c366190bf2 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// 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 Zhanga6d9f0e2015-06-13 00:48:38 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez19922bb2015-05-28 13:23:12 -07007#ifndef FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_
8#define FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07009
Tom Sepez9a3f8122015-04-07 15:35:48 -070010#include "JS_Define.h"
11
Nico Weber9d8ec5a2015-08-04 13:00:21 -070012class Report : public CJS_EmbedObj {
13 public:
14 Report(CJS_Object* pJSObject);
Lei Zhang2b1a2d52015-08-14 22:16:22 -070015 ~Report() override;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070016
Nico Weber9d8ec5a2015-08-04 13:00:21 -070017 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-Malek3f3b45c2014-05-23 17:28:10 -070026};
27
Nico Weber9d8ec5a2015-08-04 13:00:21 -070028class CJS_Report : public CJS_Object {
29 public:
Tom Sepez808a99e2015-09-10 12:28:37 -070030 CJS_Report(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
Lei Zhang2b1a2d52015-08-14 22:16:22 -070031 ~CJS_Report() override {}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070032
Nico Weber9d8ec5a2015-08-04 13:00:21 -070033 public:
34 DECLARE_JS_CLASS(CJS_Report);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070035
Nico Weber9d8ec5a2015-08-04 13:00:21 -070036 JS_STATIC_METHOD(save, Report)
37 JS_STATIC_METHOD(writeText, Report);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070038};
39
Tom Sepez19922bb2015-05-28 13:23:12 -070040#endif // FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_