KJS::ScriptInterpreter

#include <kjs_binding.h>

Inheritance diagram for KJS::ScriptInterpreter:

Public Member Functions

 ScriptInterpreter (JSGlobalObject *global, khtml::ChildFrame *frame)
 
void clear ()
 
DOMObjectgetDOMObject (void *objectHandle)
 
bool isWindowOpenAllowed () const
 
void mark (bool isMain) override
 
KParts::ReadOnlyPartpart () 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 ()
 
- Public Member Functions inherited from KJS::Interpreter
 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 ExecStateglobalExec ()
 
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 Public Member Functions inherited from KJS::Interpreter
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

bool KJS::ScriptInterpreter::isWindowOpenAllowed ( ) const

"Smart" window.open policy

Definition at line 130 of file kjs_binding.cpp.

void KJS::ScriptInterpreter::mark ( bool  isMain)
overridevirtual

Mark objects in the DOMObject cache.

Reimplemented from KJS::Interpreter.

Definition at line 109 of file kjs_binding.cpp.

void KJS::ScriptInterpreter::setCurrentEvent ( DOM::Event evt)
inline

Set the event that is triggering the execution of a script, if any.

Definition at line 145 of file kjs_binding.h.

bool KJS::ScriptInterpreter::shouldInterruptScript ( ) const
override

CPU guard API.

This should be used instead of Interpreter methods as it manages the timeouts, including VG support

Definition at line 187 of file kjs_binding.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:46:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.