Home | History | Annotate | Download | only in javascript
      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/javascript/report.h"
      8 
      9 #include <vector>
     10 
     11 #include "fpdfsdk/javascript/JS_Define.h"
     12 #include "fpdfsdk/javascript/JS_Object.h"
     13 #include "fpdfsdk/javascript/JS_Value.h"
     14 
     15 JSConstSpec CJS_Report::ConstSpecs[] = {{0, JSConstSpec::Number, 0, 0}};
     16 
     17 JSPropertySpec CJS_Report::PropertySpecs[] = {{0, 0, 0}};
     18 
     19 JSMethodSpec CJS_Report::MethodSpecs[] = {{"save", save_static},
     20                                           {"writeText", writeText_static},
     21                                           {0, 0}};
     22 
     23 IMPLEMENT_JS_CLASS(CJS_Report, Report)
     24 
     25 Report::Report(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {}
     26 
     27 Report::~Report() {}
     28 
     29 bool Report::writeText(CJS_Runtime* pRuntime,
     30                        const std::vector<CJS_Value>& params,
     31                        CJS_Value& vRet,
     32                        CFX_WideString& sError) {
     33   // Unsafe, not supported.
     34   return true;
     35 }
     36 
     37 bool Report::save(CJS_Runtime* pRuntime,
     38                   const std::vector<CJS_Value>& params,
     39                   CJS_Value& vRet,
     40                   CFX_WideString& sError) {
     41   // Unsafe, not supported.
     42   return true;
     43 }
     44