summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_aaction.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-20 18:58:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-20 18:58:21 +0000
commit1986bdfb19614b1bf18941b89ded895e237b53ae (patch)
tree13dfa6c77a06d920b84b76af96d3a5e2f726f82b /core/fpdfdoc/cpdf_aaction.cpp
parent3c855cf5fbd5f12adb5c8754a3241c966bc24cc7 (diff)
downloadpdfium-1986bdfb19614b1bf18941b89ded895e237b53ae.tar.xz
Add comments for CPDF_AAction types.
Change-Id: I7beca1aec8fe2dcd07a7bff7d173d2a5b39fa7b9 Reviewed-on: https://pdfium-review.googlesource.com/21830 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_aaction.cpp')
-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,