blob: 629b74972c2559b95b43c3f09d01b221d1d021ce [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
Tom Sepez37458412015-10-06 11:33:46 -07007#include "report.h"
8
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07009#include "../../include/javascript/IJavaScript.h"
Tom Sepez37458412015-10-06 11:33:46 -070010#include "JS_Define.h"
11#include "JS_Object.h"
12#include "JS_Value.h"
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070013
14/* ---------------------- report ---------------------- */
15
16BEGIN_JS_STATIC_CONST(CJS_Report)
17END_JS_STATIC_CONST()
18
19BEGIN_JS_STATIC_PROP(CJS_Report)
20END_JS_STATIC_PROP()
21
Tom Sepezc6ab1722015-02-05 15:27:25 -080022BEGIN_JS_STATIC_METHOD(CJS_Report)
Nico Weber9d8ec5a2015-08-04 13:00:21 -070023JS_STATIC_METHOD_ENTRY(save)
24JS_STATIC_METHOD_ENTRY(writeText)
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070025END_JS_STATIC_METHOD()
26
27IMPLEMENT_JS_CLASS(CJS_Report, Report)
Tom Sepezc6ab1722015-02-05 15:27:25 -080028
Nico Weber9d8ec5a2015-08-04 13:00:21 -070029Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070030
Nico Weber9d8ec5a2015-08-04 13:00:21 -070031Report::~Report() {}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070032
Nico Weber9d8ec5a2015-08-04 13:00:21 -070033FX_BOOL Report::writeText(IFXJS_Context* cc,
34 const CJS_Parameters& params,
35 CJS_Value& vRet,
36 CFX_WideString& sError) {
Tom Sepezc6ab1722015-02-05 15:27:25 -080037 // Unsafe, not supported.
38 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070039}
40
Nico Weber9d8ec5a2015-08-04 13:00:21 -070041FX_BOOL Report::save(IFXJS_Context* cc,
42 const CJS_Parameters& params,
43 CJS_Value& vRet,
44 CFX_WideString& sError) {
Tom Sepezc6ab1722015-02-05 15:27:25 -080045 // Unsafe, not supported.
46 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070047}