diff options
Diffstat (limited to 'fxjs/ijs_event_context.h')
-rw-r--r-- | fxjs/ijs_event_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fxjs/ijs_event_context.h b/fxjs/ijs_event_context.h index 6050d65eca..8317bc29be 100644 --- a/fxjs/ijs_event_context.h +++ b/fxjs/ijs_event_context.h @@ -9,6 +9,8 @@ #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" +#include "fxjs/ijs_runtime.h" +#include "third_party/base/optional.h" class CPDF_Bookmark; class CPDF_FormField; @@ -22,7 +24,8 @@ class IJS_EventContext { public: virtual ~IJS_EventContext() {} - virtual bool RunScript(const WideString& script, WideString* info) = 0; + virtual Optional<IJS_Runtime::JS_Error> RunScript( + const WideString& script) = 0; virtual void OnApp_Init() = 0; |