Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <memory>
#include "core/fxcrt/unowned_ptr.h"
#include "fxjs/cfxjs_engine.h"
#include "fxjs/cjs_result.h"
#include "fxjs/cjs_runtime.h"
#include "fxjs/js_resources.h"
#include "third_party/base/containers/span.h"
#include "v8/include/v8-local-handle.h"
Go to the source code of this file.
Macros | |
#define | JS_STATIC_PROP(err_name, prop_name, class_name) |
#define | JS_STATIC_METHOD(method_name, class_name) |
Functions | |
double | JS_DateParse (v8::Isolate *pIsolate, const WideString &str) |
v8::LocalVector< v8::Value > | ExpandKeywordParams (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > originals, size_t nKeywords,...) |
bool | IsExpandedParamKnown (v8::Local< v8::Value > value) |
template<class T > | |
static void | JSConstructor (CFXJS_Engine *pEngine, v8::Local< v8::Object > obj, v8::Local< v8::Object > proxy) |
void | JSDestructor (v8::Local< v8::Object > obj) |
template<class C > | |
UnownedPtr< C > | JSGetObject (v8::Isolate *isolate, v8::Local< v8::Object > obj) |
template<class C , CJS_Result(C::*)(CJS_Runtime *) M> | |
void | JSPropGetter (const char *prop_name_string, const char *class_name_string, v8::Local< v8::String > property, const v8::PropertyCallbackInfo< v8::Value > &info) |
template<class C , CJS_Result(C::*)(CJS_Runtime *, v8::Local< v8::Value >) M> | |
void | JSPropSetter (const char *prop_name_string, const char *class_name_string, v8::Local< v8::String > property, v8::Local< v8::Value > value, const v8::PropertyCallbackInfo< void > &info) |
template<class C , CJS_Result(C::*)(CJS_Runtime *, pdfium::span< v8::Local< v8::Value > >) M> | |
void | JSMethod (const char *method_name_string, const char *class_name_string, const v8::FunctionCallbackInfo< v8::Value > &info) |
#define JS_STATIC_METHOD | ( | method_name, | |
class_name ) |
Definition at line 155 of file js_define.h.
#define JS_STATIC_PROP | ( | err_name, | |
prop_name, | |||
class_name ) |
Definition at line 141 of file js_define.h.
v8::LocalVector< v8::Value > ExpandKeywordParams | ( | CJS_Runtime * | pRuntime, |
pdfium::span< v8::Local< v8::Value > > | originals, | ||
size_t | nKeywords, | ||
... ) |
Definition at line 63 of file js_define.cpp.
bool IsExpandedParamKnown | ( | v8::Local< v8::Value > | value | ) |
Definition at line 95 of file js_define.cpp.
double JS_DateParse | ( | v8::Isolate * | pIsolate, |
const WideString & | str ) |
Definition at line 31 of file js_define.cpp.
References fxjs::FX_LocalTime().
|
static |
Definition at line 46 of file js_define.h.
void JSDestructor | ( | v8::Local< v8::Object > | obj | ) |
Definition at line 27 of file js_define.cpp.
UnownedPtr< C > JSGetObject | ( | v8::Isolate * | isolate, |
v8::Local< v8::Object > | obj ) |
Definition at line 57 of file js_define.h.
void JSMethod | ( | const char * | method_name_string, |
const char * | class_name_string, | ||
const v8::FunctionCallbackInfo< v8::Value > & | info ) |
Definition at line 115 of file js_define.h.
References CFXJS_Engine::Error(), CJS_Result::Error(), CJS_Result::HasError(), CJS_Result::HasReturn(), and JSFormatErrorString().
void JSPropGetter | ( | const char * | prop_name_string, |
const char * | class_name_string, | ||
v8::Local< v8::String > | property, | ||
const v8::PropertyCallbackInfo< v8::Value > & | info ) |
Definition at line 69 of file js_define.h.
References CFXJS_Engine::Error(), CJS_Result::Error(), CJS_Result::HasError(), CJS_Result::HasReturn(), and JSFormatErrorString().
void JSPropSetter | ( | const char * | prop_name_string, |
const char * | class_name_string, | ||
v8::Local< v8::String > | property, | ||
v8::Local< v8::Value > | value, | ||
const v8::PropertyCallbackInfo< void > & | info ) |
Definition at line 93 of file js_define.h.
References CFXJS_Engine::Error(), CJS_Result::Error(), CJS_Result::HasError(), and JSFormatErrorString().