KJS::ScriptInterpreter
#include <kjs_binding.h>

Public Member Functions | |
ScriptInterpreter (JSGlobalObject *global, khtml::ChildFrame *frame) | |
void | clear () |
DOMObject * | getDOMObject (void *objectHandle) |
bool | isWindowOpenAllowed () const |
void | mark (bool isMain) override |
KParts::ReadOnlyPart * | part () const |
void | putDOMObject (void *objectHandle, DOMObject *obj) |
int | rtti () override |
void | setCurrentEvent (DOM::Event *evt) |
void | setInlineCode (bool inlineCode) |
void | setProcessingTimerCallback (bool timerCallback) |
bool | shouldInterruptScript () const override |
void | startCPUGuard () |
void | stopCPUGuard () |
![]() | |
Interpreter (JSGlobalObject *globalObject) | |
JSObject * | builtinArray () const |
JSObject * | builtinArrayPrototype () const |
JSObject * | builtinBoolean () const |
JSObject * | builtinBooleanPrototype () const |
JSObject * | builtinDate () const |
JSObject * | builtinDatePrototype () const |
JSObject * | builtinError () const |
JSObject * | builtinErrorPrototype () const |
JSObject * | builtinEvalError () const |
JSObject * | builtinFunction () const |
JSObject * | builtinFunctionPrototype () const |
JSObject * | builtinNumber () const |
JSObject * | builtinNumberPrototype () const |
JSObject * | builtinObject () const |
JSObject * | builtinObjectPrototype () const |
JSObject * | builtinRegExp () const |
JSObject * | builtinRegExpPrototype () const |
JSObject * | builtinString () const |
JSObject * | builtinStringPrototype () const |
Completion | checkSyntax (const UString &sourceURL, int startingLineNumber, const UString &code) |
Completion | evaluate (const UString &sourceURL, int startingLineNumber, const UChar *code, int codeLength, JSValue *thisV=nullptr) |
virtual ExecState * | globalExec () |
JSGlobalObject * | globalObject () const |
Package * | globalPackage () |
virtual bool | isSafeScript (const Interpreter *) |
void | setCompatMode (CompatMode mode) |
void | setGlobalPackage (Package *p) |
Static Public Member Functions | |
static void | forgetDOMObject (void *objectHandle) |
static void | turnOffCPUGuard () |
![]() | |
static bool | collect () |
static void | markSourceCachedObjects () |
static bool | normalizeCode (const UString &codeIn, UString *codeOut, int *errLine=nullptr, UString *errMsg=nullptr) |
Detailed Description
We inherit from Interpreter, to save a pointer to the HTML part that the interpreter runs for.
The interpreter also stores the DOM object - >KJS::DOMObject cache.
Definition at line 96 of file kjs_binding.h.
Member Function Documentation
◆ isWindowOpenAllowed()
bool KJS::ScriptInterpreter::isWindowOpenAllowed | ( | ) | const |
"Smart" window.open policy
Definition at line 129 of file kjs_binding.cpp.
◆ mark()
|
overridevirtual |
Mark objects in the DOMObject cache.
Reimplemented from KJS::Interpreter.
Definition at line 108 of file kjs_binding.cpp.
◆ setCurrentEvent()
|
inline |
Set the event that is triggering the execution of a script, if any.
Definition at line 145 of file kjs_binding.h.
◆ shouldInterruptScript()
|
override |
CPU guard API.
This should be used instead of Interpreter methods as it manages the timeouts, including VG support
Definition at line 186 of file kjs_binding.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:57:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.