Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfxjse_class.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
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#ifndef FXJS_XFA_CFXJSE_CLASS_H_
8#define FXJS_XFA_CFXJSE_CLASS_H_
9
10#include "core/fxcrt/unowned_ptr.h"
11#include "fxjs/xfa/fxjse.h"
12#include "v8/include/v8-forward.h"
13#include "v8/include/v8-persistent-handle.h"
14
15class CFXJSE_Context;
17
19 public:
20 static CFXJSE_Class* Create(CFXJSE_Context* pContext,
21 const FXJSE_CLASS_DESCRIPTOR* pClassDescriptor,
22 bool bIsJSGlobal);
23
24 explicit CFXJSE_Class(const CFXJSE_Context* pContext);
26
27 bool IsName(ByteStringView name) const { return name == m_szClassName; }
28 const CFXJSE_Context* GetContext() const { return m_pContext; }
29 v8::Local<v8::FunctionTemplate> GetTemplate(v8::Isolate* pIsolate);
30
31 protected:
32 ByteString m_szClassName;
36};
37
38#endif // FXJS_XFA_CFXJSE_CLASS_H_
const FXJSE_CLASS_DESCRIPTOR kNormalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kGlobalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kVariablesClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kFormCalcDescriptor
bool IsName(ByteStringView name) const
const CFXJSE_Context * GetContext() const
static CFXJSE_Class * Create(CFXJSE_Context *pContext, const FXJSE_CLASS_DESCRIPTOR *pClassDescriptor, bool bIsJSGlobal)
UnownedPtr< const CFXJSE_Context > const m_pContext
v8::Global< v8::FunctionTemplate > m_hTemplate
ByteString m_szClassName
CFXJSE_Class(const CFXJSE_Context *pContext)
v8::Local< v8::FunctionTemplate > GetTemplate(v8::Isolate *pIsolate)
UnownedPtr< const FXJSE_CLASS_DESCRIPTOR > m_pClassDescriptor
CFXJSE_Class * GetClassByName(ByteStringView szName) const
bool HasReturn() const
Definition cjs_result.h:44
bool HasError() const
Definition cjs_result.h:41
static ByteString Format(const char *pFormat,...)
FXJSE_ClassPropType
Definition fxjse.h:31
Definition fxv8.h:22
void ThrowExceptionHelper(v8::Isolate *pIsolate, WideStringView str)
Definition fxv8.cpp:333
const char kClassTag[]
Definition fxjse.cpp:18
const char kFuncTag[]
Definition fxjse.cpp:17
FXJSE_PropTypeGetter dynPropTypeGetter
Definition fxjse.h:84
FXJSE_PropSetter dynPropSetter
Definition fxjse.h:86
const char * tag
Definition fxjse.h:80
FXJSE_MethodCallback dynMethodCall
Definition fxjse.h:87
const char * name
Definition fxjse.h:81
FXJSE_FuncCallback callbackProc
Definition fxjse.h:76
const char * tag
Definition fxjse.h:74