| OLD | NEW |
| (Empty) |
| 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 "fpdfsdk/src/javascript/report.h" | |
| 8 | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
| 12 #include "fpdfsdk/src/javascript/JS_Define.h" | |
| 13 #include "fpdfsdk/src/javascript/JS_Object.h" | |
| 14 #include "fpdfsdk/src/javascript/JS_Value.h" | |
| 15 | |
| 16 /* ---------------------- report ---------------------- */ | |
| 17 | |
| 18 BEGIN_JS_STATIC_CONST(CJS_Report) | |
| 19 END_JS_STATIC_CONST() | |
| 20 | |
| 21 BEGIN_JS_STATIC_PROP(CJS_Report) | |
| 22 END_JS_STATIC_PROP() | |
| 23 | |
| 24 BEGIN_JS_STATIC_METHOD(CJS_Report) | |
| 25 JS_STATIC_METHOD_ENTRY(save) | |
| 26 JS_STATIC_METHOD_ENTRY(writeText) | |
| 27 END_JS_STATIC_METHOD() | |
| 28 | |
| 29 IMPLEMENT_JS_CLASS(CJS_Report, Report) | |
| 30 | |
| 31 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} | |
| 32 | |
| 33 Report::~Report() {} | |
| 34 | |
| 35 FX_BOOL Report::writeText(IJS_Context* cc, | |
| 36 const std::vector<CJS_Value>& params, | |
| 37 CJS_Value& vRet, | |
| 38 CFX_WideString& sError) { | |
| 39 // Unsafe, not supported. | |
| 40 return TRUE; | |
| 41 } | |
| 42 | |
| 43 FX_BOOL Report::save(IJS_Context* cc, | |
| 44 const std::vector<CJS_Value>& params, | |
| 45 CJS_Value& vRet, | |
| 46 CFX_WideString& sError) { | |
| 47 // Unsafe, not supported. | |
| 48 return TRUE; | |
| 49 } | |
| OLD | NEW |