summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_actionhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fsdk_actionhandler.h')
-rw-r--r--fpdfsdk/fsdk_actionhandler.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/fsdk_actionhandler.h b/fpdfsdk/fsdk_actionhandler.h
index 1aaf2f903d..0e5af1a41a 100644
--- a/fpdfsdk/fsdk_actionhandler.h
+++ b/fpdfsdk/fsdk_actionhandler.h
@@ -57,12 +57,14 @@ class CPDFSDK_ActionHandler {
PDFSDK_FieldAction* data);
private:
+ using RunScriptCallback = std::function<void(IJS_EventContext* context)>;
+
void RunScriptForAction(const CPDF_Action& action,
CPDFSDK_FormFillEnvironment* pFormFillEnv,
- std::function<void(IJS_EventContext* context)> cb);
+ const RunScriptCallback& cb);
void RunScript(CPDFSDK_FormFillEnvironment* pFormFillEnv,
const WideString& script,
- std::function<void(IJS_EventContext* context)> cb);
+ const RunScriptCallback& cb);
bool ExecuteDocumentOpenAction(const CPDF_Action& action,
CPDFSDK_FormFillEnvironment* pFormFillEnv,