Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "../../../include/fxge/fx_ge.h" | 7 #include "../../../include/fxge/fx_ge.h" |
| 8 #include "apple_int.h" | 8 #include "apple_int.h" |
| 9 #if _FX_OS_ == _FX_MACOSX_ | 9 #if _FX_OS_ == _FX_MACOSX_ |
| 10 static const struct { | 10 static const struct { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 pInfo->AddPath("/System/Library/Fonts"); | 93 pInfo->AddPath("/System/Library/Fonts"); |
| 94 return pInfo; | 94 return pInfo; |
| 95 } | 95 } |
| 96 void CFX_GEModule::InitPlatform() | 96 void CFX_GEModule::InitPlatform() |
| 97 { | 97 { |
| 98 m_pPlatformData = new CApplePlatform; | 98 m_pPlatformData = new CApplePlatform; |
| 99 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); | 99 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); |
| 100 } | 100 } |
| 101 void CFX_GEModule::DestroyPlatform() | 101 void CFX_GEModule::DestroyPlatform() |
| 102 { | 102 { |
| 103 if (m_pPlatformData) { | 103 delete (CApplePlatform *) m_pPlatformData; |
|
Tom Sepez
2015/07/16 17:22:44
nit: no space before *, no space after )
Lei Zhang
2015/07/16 21:20:48
Done.
| |
| 104 delete (CApplePlatform *) m_pPlatformData; | |
| 105 } | |
| 106 m_pPlatformData = NULL; | 104 m_pPlatformData = NULL; |
| 107 } | 105 } |
| 108 #endif | 106 #endif |
| OLD | NEW |