Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: fpdfsdk/include/fsdk_actionhandler.h

Issue 2227173002: Merge CPDFSDK_FormActionHandler into CPDFSDK_ActionHandler (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Merge CPDFSDK_FormActionHandler into CPDFSDK_ActionHandler Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fsdk_actionhandler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_
8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ 8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 12
13 #include "core/fxcrt/include/fx_string.h" 13 #include "core/fxcrt/include/fx_string.h"
14 #include "fpdfsdk/include/fsdk_baseform.h" 14 #include "fpdfsdk/include/fsdk_baseform.h"
15 15
16 class CPDFSDK_Annot; 16 class CPDFSDK_Annot;
17 class CPDFSDK_Document; 17 class CPDFSDK_Document;
18 class CPDF_Bookmark; 18 class CPDF_Bookmark;
19 class CPDF_Dictionary; 19 class CPDF_Dictionary;
20 20
21 class CPDFSDK_FormActionHandler {
22 public:
23 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument);
24 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action,
25 CPDFSDK_Document* pDocument);
26 FX_BOOL DoAction_ResetForm(const CPDF_Action& action,
27 CPDFSDK_Document* pDocument);
28 FX_BOOL DoAction_ImportData(const CPDF_Action& action,
29 CPDFSDK_Document* pDocument);
30 };
31
32 class CPDFSDK_ActionHandler { 21 class CPDFSDK_ActionHandler {
33 public: 22 public:
34 CPDFSDK_ActionHandler();
35 ~CPDFSDK_ActionHandler();
36
37 FX_BOOL DoAction_DocOpen(const CPDF_Action& action, 23 FX_BOOL DoAction_DocOpen(const CPDF_Action& action,
38 CPDFSDK_Document* pDocument); 24 CPDFSDK_Document* pDocument);
39 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction, 25 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction,
40 CFX_WideString csJSName, 26 CFX_WideString csJSName,
41 CPDFSDK_Document* pDocument); 27 CPDFSDK_Document* pDocument);
42 FX_BOOL DoAction_Page(const CPDF_Action& action, 28 FX_BOOL DoAction_Page(const CPDF_Action& action,
43 enum CPDF_AAction::AActionType eType, 29 enum CPDF_AAction::AActionType eType,
44 CPDFSDK_Document* pDocument); 30 CPDFSDK_Document* pDocument);
45 FX_BOOL DoAction_Document(const CPDF_Action& action, 31 FX_BOOL DoAction_Document(const CPDF_Action& action,
46 enum CPDF_AAction::AActionType eType, 32 enum CPDF_AAction::AActionType eType,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 FX_BOOL IsValidDocView(CPDFSDK_Document* pDocument); 96 FX_BOOL IsValidDocView(CPDFSDK_Document* pDocument);
111 97
112 void DoAction_GoTo(CPDFSDK_Document* pDocument, const CPDF_Action& action); 98 void DoAction_GoTo(CPDFSDK_Document* pDocument, const CPDF_Action& action);
113 void DoAction_GoToR(CPDFSDK_Document* pDocument, const CPDF_Action& action); 99 void DoAction_GoToR(CPDFSDK_Document* pDocument, const CPDF_Action& action);
114 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action); 100 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action);
115 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action); 101 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action);
116 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action); 102 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action);
117 void DoAction_SetOCGState(CPDFSDK_Document* pDocument, 103 void DoAction_SetOCGState(CPDFSDK_Document* pDocument,
118 const CPDF_Action& action); 104 const CPDF_Action& action);
119 105
120 std::unique_ptr<CPDFSDK_FormActionHandler> m_pFormActionHandler; 106 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument);
107 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action,
108 CPDFSDK_Document* pDocument);
109 FX_BOOL DoAction_ResetForm(const CPDF_Action& action,
110 CPDFSDK_Document* pDocument);
111 FX_BOOL DoAction_ImportData(const CPDF_Action& action,
112 CPDFSDK_Document* pDocument);
121 }; 113 };
122 114
123 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ 115 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_actionhandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698