#include "fxjs/cjs_color.h"
#include <algorithm>
#include "core/fxcrt/span.h"
#include "core/fxge/cfx_color.h"
#include "fxjs/cjs_event_context.h"
#include "fxjs/cjs_object.h"
#include "fxjs/cjs_runtime.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_define.h"
#include "v8/include/v8-container.h"
const JSPropertySpec CJS_Color::PropertySpecs[] = …;
const JSMethodSpec CJS_Color::MethodSpecs[] = …;
uint32_t CJS_Color::ObjDefnID = …;
const char CJS_Color::kName[] = …;
uint32_t CJS_Color::GetObjDefnID() { … }
void CJS_Color::DefineJSObjects(CFXJS_Engine* pEngine) { … }
v8::Local<v8::Array> CJS_Color::ConvertPWLColorToArray(CJS_Runtime* pRuntime,
const CFX_Color& color) { … }
CFX_Color CJS_Color::ConvertArrayToPWLColor(CJS_Runtime* pRuntime,
v8::Local<v8::Array> array) { … }
CJS_Color::CJS_Color(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
: … { … }
CJS_Color::~CJS_Color() = default;
CJS_Result CJS_Color::get_transparent(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_transparent(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_black(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_black(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_white(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_white(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_red(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_red(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_green(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_green(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_blue(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_blue(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_cyan(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_cyan(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_magenta(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_magenta(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_yellow(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_yellow(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_dark_gray(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_dark_gray(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_gray(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_gray(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::get_light_gray(CJS_Runtime* pRuntime) { … }
CJS_Result CJS_Color::set_light_gray(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp) { … }
CJS_Result CJS_Color::GetPropertyHelper(CJS_Runtime* pRuntime, CFX_Color* var) { … }
CJS_Result CJS_Color::SetPropertyHelper(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp,
CFX_Color* var) { … }
CJS_Result CJS_Color::convert(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJS_Color::equal(CJS_Runtime* pRuntime,
pdfium::span<v8::Local<v8::Value>> params) { … }