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

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

Issue 2292503002: Refactor fx_font part 4 (Closed)
Patch Set: Comments Created 4 years, 3 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/fxge/ge/cfx_facecache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 #include <vector> 7 #include <vector>
8 8
9 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" 9 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h"
10 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" 10 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h"
11 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 11 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
12 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h" 12 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
16 #include "core/fpdfdoc/include/cpdf_filespec.h" 16 #include "core/fpdfdoc/include/cpdf_filespec.h"
17 #include "core/fpdfdoc/include/cpdf_formcontrol.h" 17 #include "core/fpdfdoc/include/cpdf_formcontrol.h"
18 #include "core/fpdfdoc/include/cpdf_interform.h" 18 #include "core/fpdfdoc/include/cpdf_interform.h"
19 #include "core/fxge/include/cfx_substfont.h"
19 #include "core/fxge/include/fx_font.h" 20 #include "core/fxge/include/fx_font.h"
20 #include "third_party/base/stl_util.h" 21 #include "third_party/base/stl_util.h"
21 22
22 namespace { 23 namespace {
23 24
24 const int nMaxRecursion = 32; 25 const int nMaxRecursion = 32;
25 26
26 const struct SupportFieldEncoding { 27 const struct SupportFieldEncoding {
27 const FX_CHAR* m_name; 28 const FX_CHAR* m_name;
28 uint16_t m_codePage; 29 uint16_t m_codePage;
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 FDF_ImportField(pField, L"", bNotify); 1627 FDF_ImportField(pField, L"", bNotify);
1627 } 1628 }
1628 if (bNotify && m_pFormNotify) 1629 if (bNotify && m_pFormNotify)
1629 m_pFormNotify->AfterFormImportData(this); 1630 m_pFormNotify->AfterFormImportData(this);
1630 return TRUE; 1631 return TRUE;
1631 } 1632 }
1632 1633
1633 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) { 1634 void CPDF_InterForm::SetFormNotify(IPDF_FormNotify* pNotify) {
1634 m_pFormNotify = pNotify; 1635 m_pFormNotify = pNotify;
1635 } 1636 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fxge/ge/cfx_facecache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698