From 1986bdfb19614b1bf18941b89ded895e237b53ae Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 20 Dec 2017 18:58:21 +0000 Subject: Add comments for CPDF_AAction types. Change-Id: I7beca1aec8fe2dcd07a7bff7d173d2a5b39fa7b9 Reviewed-on: https://pdfium-review.googlesource.com/21830 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fpdfdoc/cpdf_aaction.cpp | 26 +++++++++++++++++++++++--- 1 file 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, -- cgit v1.2.3