blob: d3877924c3bc8e41b12f3863083c7d9d26dada01 [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.
Tom Sepezc6ab1722015-02-05 15:27:25 -08004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07007#include "../../include/javascript/IJavaScript.h"
8#include "../../include/javascript/JS_Define.h"
9#include "../../include/javascript/JS_Object.h"
10#include "../../include/javascript/JS_Value.h"
11#include "../../include/javascript/report.h"
12
13/* ---------------------- report ---------------------- */
14
15BEGIN_JS_STATIC_CONST(CJS_Report)
16END_JS_STATIC_CONST()
17
18BEGIN_JS_STATIC_PROP(CJS_Report)
19END_JS_STATIC_PROP()
20
Tom Sepezc6ab1722015-02-05 15:27:25 -080021BEGIN_JS_STATIC_METHOD(CJS_Report)
Nico Weber9d8ec5a2015-08-04 13:00:21 -070022JS_STATIC_METHOD_ENTRY(save)
23JS_STATIC_METHOD_ENTRY(writeText)
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070024END_JS_STATIC_METHOD()
25
26IMPLEMENT_JS_CLASS(CJS_Report, Report)
Tom Sepezc6ab1722015-02-05 15:27:25 -080027
Nico Weber9d8ec5a2015-08-04 13:00:21 -070028Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070029
Nico Weber9d8ec5a2015-08-04 13:00:21 -070030Report::~Report() {}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070031
Nico Weber9d8ec5a2015-08-04 13:00:21 -070032FX_BOOL Report::writeText(IFXJS_Context* cc,
33 const CJS_Parameters& params,
34 CJS_Value& vRet,
35 CFX_WideString& sError) {
Tom Sepezc6ab1722015-02-05 15:27:25 -080036 // Unsafe, not supported.
37 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070038}
39
Nico Weber9d8ec5a2015-08-04 13:00:21 -070040FX_BOOL Report::save(IFXJS_Context* cc,
41 const CJS_Parameters& params,
42 CJS_Value& vRet,
43 CFX_WideString& sError) {
Tom Sepezc6ab1722015-02-05 15:27:25 -080044 // Unsafe, not supported.
45 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070046}