summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fpdfdoc/cpdf_aaction.cpp26
1 files changed, 23 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_aaction.cpp b/core/fpdfdoc/cpdf_aaction.cpp
index e8e211c342..2628ca009e 100644
--- a/core/fpdfdoc/cpdf_aaction.cpp
+++ b/core/fpdfdoc/cpdf_aaction.cpp
@@ -8,9 +8,29 @@
namespace {
-constexpr const char* g_sAATypes[] = {"E", "X", "D", "U", "Fo", "Bl", "PO",
- "PC", "PV", "PI", "O", "C", "K", "F",
- "V", "C", "WC", "WS", "DS", "WP", "DP"};
+constexpr const char* g_sAATypes[] = {
+ "E", // CursorEnter
+ "X", // CursorExit
+ "D", // ButtonDown
+ "U", // ButtonUp
+ "Fo", // GetFocus
+ "Bl", // LoseFocus
+ "PO", // PageOpen
+ "PC", // PageClose
+ "PV", // PageVisible
+ "PI", // PageInvisible
+ "O", // OpenPage
+ "C", // ClosePage
+ "K", // KeyStroke
+ "F", // Format
+ "V", // Validate
+ "C", // Calculate
+ "WC", // CloseDocument
+ "WS", // SaveDocument
+ "DS", // DocumentSaved
+ "WP", // PrintDocument
+ "DP", // DocumentPrinted
+};
// |g_sAATypes| should have as many elements as enum AActionType.
static_assert(FX_ArraySize(g_sAATypes) == CPDF_AAction::NumberOfActions,