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

Side by Side Diff: core/fpdfdoc/cpdf_aaction.cpp

Issue 2192823002: Splitting fpdfdoc/doc_* part I (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fpdf_doc_II
Patch Set: Stddef not stdint 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 | « BUILD.gn ('k') | core/fpdfdoc/cpdf_action.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #include "core/fpdfdoc/include/cpdf_aaction.h"
8
9 namespace {
10
11 const FX_CHAR* g_sAATypes[] = {"E", "X", "D", "U", "Fo", "Bl", "PO", "PC",
12 "PV", "PI", "O", "C", "K", "F", "V", "C",
13 "WC", "WS", "DS", "WP", "DP", ""};
14
15 } // namespace
16
17 FX_BOOL CPDF_AAction::ActionExist(AActionType eType) const {
18 return m_pDict && m_pDict->KeyExist(g_sAATypes[eType]);
19 }
20
21 CPDF_Action CPDF_AAction::GetAction(AActionType eType) const {
22 return m_pDict ? CPDF_Action(m_pDict->GetDictBy(g_sAATypes[eType]))
23 : CPDF_Action();
24 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fpdfdoc/cpdf_action.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698