25 CJS_App(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
69 static uint32_t ObjDefnID;
70 static const char kName[];
74 CJS_Result get_active_docs(CJS_Runtime* pRuntime);
75 CJS_Result set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
77 CJS_Result get_calculate(CJS_Runtime* pRuntime);
78 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
80 CJS_Result get_forms_version(CJS_Runtime* pRuntime);
81 CJS_Result set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
84 CJS_Result set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
86 CJS_Result get_fullscreen(CJS_Runtime* pRuntime);
87 CJS_Result set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
89 CJS_Result get_language(CJS_Runtime* pRuntime);
90 CJS_Result set_language(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
93 CJS_Result set_media(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
95 CJS_Result get_platform(CJS_Runtime* pRuntime);
96 CJS_Result set_platform(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
98 CJS_Result get_runtime_highlight(CJS_Runtime* pRuntime);
99 CJS_Result set_runtime_highlight(CJS_Runtime* pRuntime,
100 v8::Local<v8::Value> vp);
102 CJS_Result get_viewer_type(CJS_Runtime* pRuntime);
103 CJS_Result set_viewer_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
105 CJS_Result get_viewer_variation(CJS_Runtime* pRuntime);
106 CJS_Result set_viewer_variation(CJS_Runtime* pRuntime,
107 v8::Local<v8::Value> vp);
109 CJS_Result get_viewer_version(CJS_Runtime* pRuntime);
110 CJS_Result set_viewer_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
113 pdfium::span<v8::Local<v8::Value>> params);
115 pdfium::span<v8::Local<v8::Value>> params);
116 CJS_Result browseForDoc(CJS_Runtime* pRuntime,
117 pdfium::span<v8::Local<v8::Value>> params);
118 CJS_Result clearInterval(CJS_Runtime* pRuntime,
119 pdfium::span<v8::Local<v8::Value>> params);
120 CJS_Result clearTimeOut(CJS_Runtime* pRuntime,
121 pdfium::span<v8::Local<v8::Value>> params);
123 pdfium::span<v8::Local<v8::Value>> params);
124 CJS_Result execMenuItem(CJS_Runtime* pRuntime,
125 pdfium::span<v8::Local<v8::Value>> params);
126 CJS_Result findComponent(CJS_Runtime* pRuntime,
127 pdfium::span<v8::Local<v8::Value>> params);
129 pdfium::span<v8::Local<v8::Value>> params);
131 pdfium::span<v8::Local<v8::Value>> params);
133 pdfium::span<v8::Local<v8::Value>> params);
135 pdfium::span<v8::Local<v8::Value>> params);
137 pdfium::span<v8::Local<v8::Value>> params);
139 pdfium::span<v8::Local<v8::Value>> params);
141 pdfium::span<v8::Local<v8::Value>> params);
143 pdfium::span<v8::Local<v8::Value>> params);
145 pdfium::span<v8::Local<v8::Value>> params);
147 pdfium::span<v8::Local<v8::Value>> params);
149 pdfium::span<v8::Local<v8::Value>> params);
151 pdfium::span<v8::Local<v8::Value>> params);
153 pdfium::span<v8::Local<v8::Value>> params);
155 void RunJsScript(CJS_Runtime* pRuntime,
const WideString& wsScript);
156 void ClearTimerCommon(CJS_Runtime* pRuntime, v8::Local<v8::Value> param);
158 bool m_bCalculate =
true;
159 bool m_bRuntimeHighLight =
false;
160 std::set<std::unique_ptr<GlobalTimer>> m_Timers;
virtual std::optional< IJS_Runtime::JS_Error > RunScript(const WideString &script)=0