blob: a9004fd46a7645b0bb0429188a8af2e044443d23 [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);
15 virtual ~Report();
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:
30 CJS_Report(JSFXObject pObject) : CJS_Object(pObject){};
31 virtual ~CJS_Report(){};
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_