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

Side by Side Diff: core/fxge/apple/fx_mac_imp.cpp

Issue 2185533006: Splitting fx_ge_fontmap.cpp (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add missing includes 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 | « core/fxge/android/fx_android_font.cpp ('k') | core/fxge/ge/cfx_folderfontinfo.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 "core/fxge/apple/apple_int.h" 7 #include "core/fxge/apple/apple_int.h"
8 #include "core/fxge/ge/cfx_folderfontinfo.h"
8 #include "core/fxge/include/fx_ge.h" 9 #include "core/fxge/include/fx_ge.h"
10 #include "core/fxge/include/ifx_systemfontinfo.h"
9 11
10 #if _FX_OS_ == _FX_MACOSX_ 12 #if _FX_OS_ == _FX_MACOSX_
11 13
12 namespace { 14 namespace {
13 15
14 const struct { 16 const struct {
15 const FX_CHAR* m_pName; 17 const FX_CHAR* m_pName;
16 const FX_CHAR* m_pSubstName; 18 const FX_CHAR* m_pSubstName;
17 } g_Base14Substs[] = { 19 } g_Base14Substs[] = {
18 {"Courier", "Courier New"}, 20 {"Courier", "Courier New"},
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 m_pPlatformData = new CApplePlatform; 132 m_pPlatformData = new CApplePlatform;
131 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault(nullptr)); 133 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault(nullptr));
132 } 134 }
133 135
134 void CFX_GEModule::DestroyPlatform() { 136 void CFX_GEModule::DestroyPlatform() {
135 delete reinterpret_cast<CApplePlatform*>(m_pPlatformData); 137 delete reinterpret_cast<CApplePlatform*>(m_pPlatformData);
136 m_pPlatformData = nullptr; 138 m_pPlatformData = nullptr;
137 } 139 }
138 140
139 #endif // _FX_OS_ == _FX_MACOSX_ 141 #endif // _FX_OS_ == _FX_MACOSX_
OLDNEW
« no previous file with comments | « core/fxge/android/fx_android_font.cpp ('k') | core/fxge/ge/cfx_folderfontinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698