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

Side by Side Diff: xfa/fxfa/app/xfa_fontmgr.cpp

Issue 2383543002: Move core/fpdfapi/fpdf_parser/include to core/fpdfapi/fpdf_parser (Closed)
Patch Set: Created 4 years, 2 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 | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/include/xfa_ffapp.h » ('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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 "xfa/fxfa/include/xfa_fontmgr.h" 7 #include "xfa/fxfa/include/xfa_fontmgr.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "core/fpdfapi/fpdf_font/cpdf_font.h" 13 #include "core/fpdfapi/fpdf_font/cpdf_font.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 14 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 15 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
16 #include "xfa/fgas/font/fgas_gefont.h" 16 #include "xfa/fgas/font/fgas_gefont.h"
17 #include "xfa/fxfa/include/xfa_ffapp.h" 17 #include "xfa/fxfa/include/xfa_ffapp.h"
18 #include "xfa/fxfa/include/xfa_ffdoc.h" 18 #include "xfa/fxfa/include/xfa_ffdoc.h"
19 19
20 namespace { 20 namespace {
21 21
22 // The 5 names per entry are: PsName, Normal, Bold, Italic, BoldItalic. 22 // The 5 names per entry are: PsName, Normal, Bold, Italic, BoldItalic.
23 const char* const g_XFAPDFFontName[][5] = { 23 const char* const g_XFAPDFFontName[][5] = {
24 {"Adobe PI Std", "AdobePIStd", "AdobePIStd", "AdobePIStd", "AdobePIStd"}, 24 {"Adobe PI Std", "AdobePIStd", "AdobePIStd", "AdobePIStd", "AdobePIStd"},
25 {"Myriad Pro Light", "MyriadPro-Light", "MyriadPro-Semibold", 25 {"Myriad Pro Light", "MyriadPro-Light", "MyriadPro-Semibold",
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 m_PDFFontMgrMap[hDoc].reset(new CXFA_PDFFontMgr(hDoc)); 2050 m_PDFFontMgrMap[hDoc].reset(new CXFA_PDFFontMgr(hDoc));
2051 } 2051 }
2052 2052
2053 void CXFA_FontMgr::ReleaseDocFonts(CXFA_FFDoc* hDoc) { 2053 void CXFA_FontMgr::ReleaseDocFonts(CXFA_FFDoc* hDoc) {
2054 m_PDFFontMgrMap.erase(hDoc); 2054 m_PDFFontMgrMap.erase(hDoc);
2055 } 2055 }
2056 2056
2057 void CXFA_FontMgr::SetDefFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr) { 2057 void CXFA_FontMgr::SetDefFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr) {
2058 m_pDefFontMgr = std::move(pFontMgr); 2058 m_pDefFontMgr = std::move(pFontMgr);
2059 } 2059 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/include/xfa_ffapp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698