• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_logpseudomodel.h"
8 
9 #include <vector>
10 
11 #include "fxjs/cfxjse_value.h"
12 #include "xfa/fxfa/parser/cscript_logpseudomodel.h"
13 
14 const CJX_MethodSpec CJX_LogPseudoModel::MethodSpecs[] = {
15     {"message", message_static},
16     {"traceEnabled", traceEnabled_static},
17     {"traceActivate", traceActivate_static},
18     {"traceDeactivate", traceDeactivate_static},
19     {"trace", trace_static}};
20 
CJX_LogPseudoModel(CScript_LogPseudoModel * model)21 CJX_LogPseudoModel::CJX_LogPseudoModel(CScript_LogPseudoModel* model)
22     : CJX_Object(model) {
23   DefineMethods(MethodSpecs, FX_ArraySize(MethodSpecs));
24 }
25 
~CJX_LogPseudoModel()26 CJX_LogPseudoModel::~CJX_LogPseudoModel() {}
27 
message(CJS_V8 * runtime,const std::vector<v8::Local<v8::Value>> & params)28 CJS_Return CJX_LogPseudoModel::message(
29     CJS_V8* runtime,
30     const std::vector<v8::Local<v8::Value>>& params) {
31   return CJS_Return(true);
32 }
33 
traceEnabled(CJS_V8 * runtime,const std::vector<v8::Local<v8::Value>> & params)34 CJS_Return CJX_LogPseudoModel::traceEnabled(
35     CJS_V8* runtime,
36     const std::vector<v8::Local<v8::Value>>& params) {
37   return CJS_Return(true);
38 }
39 
traceActivate(CJS_V8 * runtime,const std::vector<v8::Local<v8::Value>> & params)40 CJS_Return CJX_LogPseudoModel::traceActivate(
41     CJS_V8* runtime,
42     const std::vector<v8::Local<v8::Value>>& params) {
43   return CJS_Return(true);
44 }
45 
traceDeactivate(CJS_V8 * runtime,const std::vector<v8::Local<v8::Value>> & params)46 CJS_Return CJX_LogPseudoModel::traceDeactivate(
47     CJS_V8* runtime,
48     const std::vector<v8::Local<v8::Value>>& params) {
49   return CJS_Return(true);
50 }
51 
trace(CJS_V8 * runtime,const std::vector<v8::Local<v8::Value>> & params)52 CJS_Return CJX_LogPseudoModel::trace(
53     CJS_V8* runtime,
54     const std::vector<v8::Local<v8::Value>>& params) {
55   return CJS_Return(true);
56 }
57