Home | History | Annotate | Download | only in xfa
      1 // Copyright 2017 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 "fxjs/xfa/cjx_delta.h"
      8 
      9 #include <vector>
     10 
     11 #include "fxjs/cfxjse_value.h"
     12 #include "fxjs/js_resources.h"
     13 #include "xfa/fxfa/parser/cxfa_delta.h"
     14 
     15 const CJX_MethodSpec CJX_Delta::MethodSpecs[] = {{"restore", restore_static}};
     16 
     17 CJX_Delta::CJX_Delta(CXFA_Delta* delta) : CJX_Object(delta) {
     18   DefineMethods(MethodSpecs, FX_ArraySize(MethodSpecs));
     19 }
     20 
     21 CJX_Delta::~CJX_Delta() {}
     22 
     23 CJS_Return CJX_Delta::restore(CJS_V8* runtime,
     24                               const std::vector<v8::Local<v8::Value>>& params) {
     25   if (!params.empty())
     26     return CJS_Return(JSGetStringFromID(JSMessage::kParamError));
     27   return CJS_Return(true);
     28 }
     29 
     30 void CJX_Delta::currentValue(CFXJSE_Value* pValue,
     31                              bool bSetting,
     32                              XFA_Attribute eAttribute) {}
     33 
     34 void CJX_Delta::savedValue(CFXJSE_Value* pValue,
     35                            bool bSetting,
     36                            XFA_Attribute eAttribute) {}
     37 
     38 void CJX_Delta::target(CFXJSE_Value* pValue,
     39                        bool bSetting,
     40                        XFA_Attribute eAttribute) {}
     41