Remove JavaScript.h
[pdfium.git] / fpdfsdk / src / javascript / report.cpp
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.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #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
15 BEGIN_JS_STATIC_CONST(CJS_Report)
16 END_JS_STATIC_CONST()
17
18 BEGIN_JS_STATIC_PROP(CJS_Report)
19 END_JS_STATIC_PROP()
20
21 BEGIN_JS_STATIC_METHOD(CJS_Report)
22 JS_STATIC_METHOD_ENTRY(save)
23 JS_STATIC_METHOD_ENTRY(writeText)
24 END_JS_STATIC_METHOD()
25
26 IMPLEMENT_JS_CLASS(CJS_Report, Report)
27
28 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
29
30 Report::~Report() {}
31
32 FX_BOOL Report::writeText(IFXJS_Context* cc,
33                           const CJS_Parameters& params,
34                           CJS_Value& vRet,
35                           CFX_WideString& sError) {
36   // Unsafe, not supported.
37   return TRUE;
38 }
39
40 FX_BOOL Report::save(IFXJS_Context* cc,
41                      const CJS_Parameters& params,
42                      CJS_Value& vRet,
43                      CFX_WideString& sError) {
44   // Unsafe, not supported.
45   return TRUE;
46 }