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
15
class
CFXJSE_Context
;
16
struct
FXJSE_CLASS_DESCRIPTOR
;
17
18
class
CFXJSE_Class
{
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);
25
~
CFXJSE_Class
();
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
;
33
UnownedPtr
<
const
FXJSE_CLASS_DESCRIPTOR
>
m_pClassDescriptor
;
34
UnownedPtr
<
const
CFXJSE_Context
>
const
m_pContext
;
35
v8
::
Global
<
v8
::
FunctionTemplate
>
m_hTemplate
;
36
};
37
38
#
endif
// FXJS_XFA_CFXJSE_CLASS_H_
kNormalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kNormalClassDescriptor
Definition
cfxjse_engine.cpp:55
kGlobalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kGlobalClassDescriptor
Definition
cfxjse_engine.cpp:44
kVariablesClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kVariablesClassDescriptor
Definition
cfxjse_engine.cpp:66
kFormCalcDescriptor
const FXJSE_CLASS_DESCRIPTOR kFormCalcDescriptor
Definition
cfxjse_formcalc_context.cpp:1358
CFXJSE_Class
Definition
cfxjse_class.h:18
CFXJSE_Class::IsName
bool IsName(ByteStringView name) const
Definition
cfxjse_class.h:27
CFXJSE_Class::GetContext
const CFXJSE_Context * GetContext() const
Definition
cfxjse_class.h:28
CFXJSE_Class::Create
static CFXJSE_Class * Create(CFXJSE_Context *pContext, const FXJSE_CLASS_DESCRIPTOR *pClassDescriptor, bool bIsJSGlobal)
Definition
cfxjse_class.cpp:270
CFXJSE_Class::m_pContext
UnownedPtr< const CFXJSE_Context > const m_pContext
Definition
cfxjse_class.h:34
CFXJSE_Class::m_hTemplate
v8::Global< v8::FunctionTemplate > m_hTemplate
Definition
cfxjse_class.h:35
CFXJSE_Class::m_szClassName
ByteString m_szClassName
Definition
cfxjse_class.h:32
CFXJSE_Class::CFXJSE_Class
CFXJSE_Class(const CFXJSE_Context *pContext)
Definition
cfxjse_class.cpp:330
CFXJSE_Class::GetTemplate
v8::Local< v8::FunctionTemplate > GetTemplate(v8::Isolate *pIsolate)
Definition
cfxjse_class.cpp:335
CFXJSE_Class::~CFXJSE_Class
~CFXJSE_Class()
CFXJSE_Class::m_pClassDescriptor
UnownedPtr< const FXJSE_CLASS_DESCRIPTOR > m_pClassDescriptor
Definition
cfxjse_class.h:33
CFXJSE_Context
Definition
cfxjse_context.h:25
CFXJSE_Context::GetClassByName
CFXJSE_Class * GetClassByName(ByteStringView szName) const
Definition
cfxjse_context.cpp:228
CFXJSE_ScopeUtil_IsolateHandleRootContext
Definition
cfxjse_isolatetracker.h:75
CFXJSE_Value
Definition
cfxjse_value.h:24
CJS_Result
Definition
cjs_result.h:14
CJS_Result::HasReturn
bool HasReturn() const
Definition
cjs_result.h:44
CJS_Result::HasError
bool HasError() const
Definition
cjs_result.h:41
fxcrt::ByteString::Format
static ByteString Format(const char *pFormat,...)
Definition
bytestring.cpp:106
fxcrt::UnownedPtr
Definition
unowned_ptr.h:75
FXJSE_ClassPropType
FXJSE_ClassPropType
Definition
fxjse.h:31
FXJSE_ClassPropType::kMethod
@ kMethod
FXJSE_ClassPropType::kNone
@ kNone
FXJSE_ClassPropType::kProperty
@ kProperty
fxv8
Definition
fxv8.h:22
fxv8::ThrowExceptionHelper
void ThrowExceptionHelper(v8::Isolate *pIsolate, WideStringView str)
Definition
fxv8.cpp:333
pdfium::fxjse
Definition
fxjse.h:17
pdfium::fxjse::kClassTag
const char kClassTag[]
Definition
fxjse.cpp:18
pdfium::fxjse::kFuncTag
const char kFuncTag[]
Definition
fxjse.cpp:17
std
Definition
qfloat16.h:492
FXJSE_CLASS_DESCRIPTOR
Definition
fxjse.h:79
FXJSE_CLASS_DESCRIPTOR::dynPropTypeGetter
FXJSE_PropTypeGetter dynPropTypeGetter
Definition
fxjse.h:84
FXJSE_CLASS_DESCRIPTOR::methNum
int32_t methNum
Definition
fxjse.h:83
FXJSE_CLASS_DESCRIPTOR::dynPropSetter
FXJSE_PropSetter dynPropSetter
Definition
fxjse.h:86
FXJSE_CLASS_DESCRIPTOR::tag
const char * tag
Definition
fxjse.h:80
FXJSE_CLASS_DESCRIPTOR::dynMethodCall
FXJSE_MethodCallback dynMethodCall
Definition
fxjse.h:87
FXJSE_CLASS_DESCRIPTOR::name
const char * name
Definition
fxjse.h:81
FXJSE_FUNCTION_DESCRIPTOR
Definition
fxjse.h:73
FXJSE_FUNCTION_DESCRIPTOR::callbackProc
FXJSE_FuncCallback callbackProc
Definition
fxjse.h:76
FXJSE_FUNCTION_DESCRIPTOR::tag
const char * tag
Definition
fxjse.h:74
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cfxjse_class.h
Generated on Sat Sep 21 2024 00:59:20 for Qt by
1.12.0